/* Tool-specific styles only - base styles are in tool-layout.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.text-input-area {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    min-height: 200px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input-area:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.text-input-area::placeholder {
    color: #6b7280;
}

.text-input-area:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.platform-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.platform-btn:hover {
    background-color: #374151;
}

.platform-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

.custom-limit-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 80px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    -moz-appearance: textfield;
}

.custom-limit-input::-webkit-outer-spin-button,
.custom-limit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-limit-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.custom-limit-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.numbering-toggle {
    display: flex;
    gap: 4px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 4px;
    width: fit-content;
}

.toggle-btn {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.toggle-btn:hover {
    color: #e5e7eb;
}

.toggle-btn.active {
    background-color: #667eea;
    color: #ffffff;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

label.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #667eea;
    border-color: #667eea;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

label.checkbox-label input[type="checkbox"]:disabled + .checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.setting-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-content > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.pro-feature {
    position: relative;
    opacity: 0.6;
}

.pro-feature.unlocked {
    opacity: 1;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    flex: 1 1 0;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.stat-highlight {
    color: #667eea;
}

.button-primary {
    background-color: #667eea;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    width: 100%;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-ghost {
    background: none;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.button-ghost:hover {
    border-color: #667eea;
    color: #667eea;
}

.button-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-ghost.copied {
    border-color: #10b981;
    color: #10b981;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.output-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #d1d5db;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-number {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.post-counts {
    display: flex;
    gap: 16px;
}

.post-char-count {
    font-size: 13px;
    color: #9ca3af;
}

.post-char-count.near-limit {
    color: #fbbf24;
}

.post-char-count.at-limit {
    color: #ef4444;
}

.post-word-count {
    font-size: 13px;
    color: #6b7280;
}

.post-image-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
}

.post-image-note input {
    background-color: #141414;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    flex: 1;
    outline: none;
    transition: border-color 150ms ease;
}

.post-image-note input:focus {
    border-color: #667eea;
}

.post-image-note input::placeholder {
    color: #4b5563;
}

.post-image-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.pro-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
}

.scheduling-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scheduling-interval {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scheduling-interval label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.schedule-item-label {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    min-width: 60px;
}

.schedule-item input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    flex: 1;
    outline: none;
    transition: border-color 150ms ease;
}

.schedule-item input:focus {
    border-color: #667eea;
}

.export-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-btn {
    width: 100%;
}

.image-placeholders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-placeholder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.image-placeholder-item label {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    min-width: 60px;
}

.image-placeholder-item input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    flex: 1;
    outline: none;
    transition: border-color 150ms ease;
}

.image-placeholder-item input:focus {
    border-color: #667eea;
}

.image-placeholder-item input::placeholder {
    color: #4b5563;
}

.batch-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batch-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.batch-input-group code {
    background-color: #0a0a0a;
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #374151;
    padding-top: 20px;
}

.batch-thread-group {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.batch-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.batch-thread-header:hover {
    background-color: #111111;
}

.batch-thread-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.batch-thread-count {
    font-size: 13px;
    color: #9ca3af;
}

.batch-thread-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.batch-thread-posts {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.batch-thread-posts.expanded {
    display: flex;
}

.batch-post-preview {
    padding: 12px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-left: 2px solid #667eea;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #d1d5db;
    white-space: pre-wrap;
    word-break: break-word;
}

.pro-cta-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 150ms ease;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    border: 1px solid #667eea;
    color: #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 1;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.toast.toast-hidden {
    opacity: 0;
    pointer-events: none;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .platform-selector {
        gap: 6px;
    }

    .platform-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .output-section {
        padding: 16px;
    }

    .post-card {
        padding: 16px;
    }

    .pro-section {
        padding: 16px;
    }

    .stats-bar {
        gap: 8px;
    }

    .stat-item {
        flex: 1 1 calc(33% - 6px);
        min-width: 80px;
        padding: 10px;
    }

    .stat-value {
        font-size: 16px;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

        padding: 0 16px;
    }

    .numbering-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        text-align: center;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-item input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .platform-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 4px);
    }

    .batch-thread-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .batch-thread-actions {
        width: 100%;
    }
}