/* 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;
}

.textarea-input {
    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: 150px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.textarea-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-primary {
    background-color: #3b82f6;
    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;
}

.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-danger {
    background-color: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #dc2626;
    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-danger:hover {
    background-color: #991b1b;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-hidden {
    display: none;
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-grid {
    display: flex;
    gap: 16px;
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    text-align: center;
    transition: border-color 150ms ease;
}

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

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.platform-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.platform-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: border-color 150ms ease;
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    min-width: 90px;
}

.platform-count {
    flex: 1;
    font-size: 14px;
    color: #9ca3af;
}

.platform-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.badge-ok {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-over {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.hashtag-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 13px;
    color: #6b7280;
}

.sort-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.sort-btn:hover {
    color: #e5e7eb;
    border-color: #6b7280;
}

.sort-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.hashtag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.hashtag-list::-webkit-scrollbar {
    width: 6px;
}

.hashtag-list::-webkit-scrollbar-track {
    background: #141414;
    border-radius: 3px;
}

.hashtag-list::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

.hashtag-list::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

.hashtag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    transition: border-color 150ms ease;
}

.hashtag-item:hover {
    border-color: #4b5563;
}

.hashtag-text {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.hashtag-chars {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.dupe-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    flex-shrink: 0;
}

.hashtag-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.hashtag-remove:hover {
    color: #ef4444;
}

.copy-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stripped-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stripped-output {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
    min-height: 60px;
    white-space: pre-wrap;
    word-break: break-word;
}

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

.pro-section .section-header {
    margin-bottom: 0;
}

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

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-tag {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 150ms ease;
}

.category-group[data-category="brand"] .category-tag {
    border-color: #6366f1;
    color: #a5b4fc;
}

.category-group[data-category="niche"] .category-tag {
    border-color: #8b5cf6;
    color: #c4b5fd;
}

.category-group[data-category="community"] .category-tag {
    border-color: #06b6d4;
    color: #67e8f9;
}

.category-group[data-category="location"] .category-tag {
    border-color: #10b981;
    color: #6ee7b7;
}

.category-group[data-category="trending"] .category-tag {
    border-color: #f59e0b;
    color: #fcd34d;
}

.category-group[data-category="descriptive"] .category-tag {
    border-color: #ec4899;
    color: #f9a8d4;
}

.banned-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banned-summary {
    font-size: 14px;
    color: #9ca3af;
}

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

.banned-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
}

.banned-tag {
    font-size: 14px;
    font-weight: 500;
    color: #fca5a5;
}

.banned-reason {
    font-size: 12px;
    color: #9ca3af;
    flex: 1;
}

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

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

.empty-sets-text {
    font-size: 14px;
    color: #6b7280;
}

.saved-set-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    transition: border-color 150ms ease;
}

.saved-set-item:hover {
    border-color: #4b5563;
}

.set-info {
    flex: 1;
    min-width: 0;
}

.set-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.set-count {
    font-size: 12px;
    color: #6b7280;
}

.set-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.set-action-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.set-action-btn:hover {
    color: #e5e7eb;
    border-color: #6b7280;
}

.set-action-btn.delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.save-set-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.save-set-controls .text-input {
    flex: 1;
}

.text-input {
    background-color: #1a1a1a;
    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: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.select-input {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select-input option {
    background-color: #1a1a1a;
}

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

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

.mix-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mix-select-group > label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.mix-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #374151;
}

.mix-summary {
    font-size: 14px;
    color: #9ca3af;
}

.mix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mix-tag {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

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

.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;
}

.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;
}

.copied-feedback {
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
}

@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;
    }

    .stats-grid {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

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

    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-controls {
        flex-wrap: wrap;
    }

    .action-buttons {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        width: 100%;
    }

    .copy-actions {
        flex-direction: column;
    }

    .save-set-controls {
        flex-direction: column;
    }

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

        padding: 0 16px;
    }

    .pro-section {
        padding: 16px;
    }

    .platform-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .platform-name {
        min-width: auto;
    }

    .platform-count {
        flex: none;
        width: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex: 1 1 calc(50% - 8px);
    }

    .hashtag-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hashtag-chars {
        order: 3;
    }
}