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

.tool-main {
    margin-top: 60px; /* Critical: proper spacing below nav */
    background: #0a0a0a;
    min-height: 100vh;
    padding-bottom: 120px; /* Space for pro CTA bar */
}

.hero-header {
    text-align: center;
    padding: 48px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    color: #ffffff;
    margin-bottom: 8px;
}

.hero-header p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #e5e7eb;
    margin: 0;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.input-section {
    margin-bottom: 48px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.input-group textarea {
    width: 100%;
    min-height: 240px;
    background: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

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

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

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

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 150ms ease;
}

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

.btn-pro {
    color: #0a0a0a;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.btn-pro:hover {
    opacity: 0.9;
}

.validation-results {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.validation-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 16px 0;
}

.validation-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.validation-item.error {
    background: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
}

.validation-item.warning {
    background: #451a03;
    border: 1px solid #f59e0b;
    color: #fbbf24;
}

.validation-item.success {
    background: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
}

.validation-item.info {
    background: #1e3a8a;
    border: 1px solid #3b82f6;
    color: #93c5fd;
}

.output-section {
    border-top: 1px solid #374151;
    padding-top: 48px;
}

.preview-container {
    margin-bottom: 48px;
}

.preview-container h3 {
    font-size: 22px;
    font-weight: 600;
    color: #d1d5db;
    margin: 0 0 24px 0;
}

.preview-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #374151;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 150ms ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #d1d5db;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-btn.pro-feature {
    opacity: 0.7;
}

.tab-btn.pro-feature:hover {
    opacity: 0.9;
}

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

.preview-content {
    position: relative;
}

.platform-preview {
    display: none;
    margin-bottom: 24px;
}

.platform-preview.active {
    display: block;
}

.preview-frame {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
}

.facebook-frame {
    border: 1px solid #e0e3e7;
}

.facebook-frame .preview-image {
    aspect-ratio: 1.91/1;
    overflow: hidden;
}

.facebook-frame .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facebook-frame .preview-text {
    padding: 12px;
    color: #1c1e21;
}

.facebook-frame .preview-url {
    font-size: 12px;
    color: #8a8d91;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.facebook-frame .preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 4px;
    line-height: 1.3;
}

.facebook-frame .preview-description {
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}

.twitter-frame {
    border: 1px solid #38444d;
}

.twitter-frame .preview-image {
    aspect-ratio: 2/1;
    overflow: hidden;
    background: #17202a;
}

.twitter-frame .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitter-frame .preview-text {
    padding: 12px;
    background: #192734;
    color: #ffffff;
}

.twitter-frame .preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.twitter-frame .preview-description {
    font-size: 14px;
    color: #8b98a5;
    margin-bottom: 4px;
    line-height: 1.4;
}

.twitter-frame .preview-url {
    font-size: 13px;
    color: #8b98a5;
}

.pro-section {
    margin-bottom: 48px;
    position: relative;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #d1d5db;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 24px 0;
}

.pro-locked {
    position: relative;
}

.pro-overlay {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
}

.pro-message h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fbbf24;
    margin: 0 0 8px 0;
}

.pro-message p {
    font-size: 14px;
    color: #d1d5db;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    width: 100%;
}

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

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

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

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

.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: #d1d5db;
}

.modal-body {
    padding: 24px;
}

.pro-features-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 16px 0;
}

.pro-features-list ul {
    margin: 0 0 24px 0;
    padding-left: 20px;
}

.pro-features-list li {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .tool-main {
        padding-bottom: 80px; /* Reduced space on mobile */
    }
    
    .hero-header {
        padding: 32px 16px;
    }
    
    .hero-header h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .tool-container {
        padding: 0 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-pro {
        width: 100%;
        text-align: center;
    }
    
    .preview-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cta-text {
        font-size: 13px;
    }
    
    .bug-report-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}