/* 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 {
    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: #646cff;
    box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.15);
}

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

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

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

.platform-pill {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.platform-pill:hover {
    background-color: #2a2a2a;
    border-color: #374151;
}

.platform-pill.active {
    background-color: #646cff;
    border-color: #646cff;
    color: #ffffff;
}

.method-selector {
    display: flex;
    gap: 0;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
}

.radio-pill {
    flex: 1;
    cursor: pointer;
    display: flex;
}

.radio-pill input[type="radio"] {
    display: none;
}

.radio-pill-label {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 150ms ease;
    border-right: 1px solid #2a2a2a;
}

.radio-pill:last-child .radio-pill-label {
    border-right: none;
}

.radio-pill input[type="radio"]:checked + .radio-pill-label {
    background-color: #646cff;
    color: #ffffff;
}

.radio-pill:hover .radio-pill-label {
    color: #e5e7eb;
}

.radio-pill input[type="radio"]:disabled + .radio-pill-label {
    opacity: 0.4;
    cursor: not-allowed;
    color: #6b7280;
}

.radio-pill:has(input[type="radio"]:disabled) {
    cursor: not-allowed;
}

.metrics-group {
    gap: 16px;
}

.metric-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

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

.button-primary {
    background-color: #646cff;
    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;
    flex: 1;
}

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

.output-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-align: center;
}

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

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

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

.benchmark-title {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.benchmark-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #9ca3af;
}

.benchmark-bar-container {
    padding: 8px 0;
}

.benchmark-bar {
    position: relative;
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.benchmark-zone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-low {
    flex: 1;
    background-color: #ef4444;
}

.zone-average {
    flex: 1;
}

.zone-good {
    flex: 1;
    background-color: #22c55e;
}

.zone-excellent {
    flex: 1;
    background-color: #646cff;
}

.zone-label {
    font-size: 0;
    visibility: hidden;
}

.benchmark-indicator {
    position: absolute;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    transform: translateX(-6px);
    transition: left 300ms ease;
    z-index: 2;
}

.benchmark-bar-container::after {
    content: '';
    display: block;
    clear: both;
}

.benchmark-rating {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    text-align: center;
}

.high-rate-note {
    font-size: 13px;
    color: #f59e0b;
    padding: 8px 12px;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
}

.copy-section {
    display: flex;
}

.copy-section .button-secondary {
    width: 100%;
}

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

.pro-section.locked {
    opacity: 0.6;
}

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

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

.pro-section-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

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

.pro-section-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

.multipost-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.multipost-entry {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.multipost-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multipost-metric-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.multipost-metric-field > label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.multipost-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.multipost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.multipost-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2a2a;
    white-space: nowrap;
}

.multipost-table td {
    padding: 10px 12px;
    color: #e5e7eb;
    border-bottom: 1px solid #1a1a1a;
    white-space: nowrap;
}

.multipost-table tbody tr:nth-child(odd) {
    background-color: #141414;
}

.multipost-table tbody tr:nth-child(even) {
    background-color: #1a1a1a;
}

.multipost-table tbody tr.best-post {
    border-left: 3px solid #22c55e;
}

.multipost-table tbody tr.worst-post {
    border-left: 3px solid #f59e0b;
}

.multipost-table tbody tr .remove-post-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 150ms ease;
}

.multipost-table tbody tr .remove-post-btn:hover {
    color: #ef4444;
}

.multipost-table tfoot td {
    padding: 12px;
    font-weight: 600;
    color: #ffffff;
    border-top: 1px solid #374151;
    background-color: #1a1a1a;
}

.multipost-empty {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 24px;
}

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

.chart-wrapper {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 16px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper canvas {
    width: 100% !important;
    max-height: 300px;
}

.trends-empty {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 24px;
}

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

.ratecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ratecard-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2a2a;
}

.ratecard-table th:not(:first-child) {
    text-align: right;
}

.ratecard-table td {
    padding: 12px;
    color: #e5e7eb;
    border-bottom: 1px solid #1a1a1a;
}

.ratecard-table td:not(:first-child) {
    text-align: right;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ratecard-table tbody tr {
    background-color: #141414;
    transition: background-color 150ms ease;
}

.ratecard-table tbody tr:nth-child(even) {
    background-color: #1a1a1a;
}

.ratecard-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

input[type="range"].slider {
    width: 100%;
    height: 4px;
    background-color: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: block;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #646cff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"].slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #646cff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"].slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.3);
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    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;
}

.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: #059669;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.toast.toast-visible {
    opacity: 1;
}

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

.success-message {
    background-color: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
    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;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

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

    .platform-selector {
        gap: 6px;
    }

    .platform-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .method-selector {
        flex-direction: column;
    }

    .radio-pill-label {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }

    .radio-pill:last-child .radio-pill-label {
        border-bottom: none;
    }

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

    .benchmark-section {
        padding: 16px;
    }

    .benchmark-info {
        flex-direction: column;
        gap: 4px;
    }

    .pro-section {
        padding: 16px;
    }

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

        padding: 0 16px;
    }

    .ratecard-table {
        font-size: 13px;
    }

    .ratecard-table th,
    .ratecard-table td {
        padding: 8px;
    }

    .multipost-table {
        font-size: 12px;
    }

    .multipost-table th,
    .multipost-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .stat-card-value {
        font-size: 24px;
    }

    .benchmark-bar {
        height: 10px;
        border-radius: 5px;
    }
}

.modal-hidden {
    display: none;
}