/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .results-actions .btn {
        width: 100%;
    }

    .comparison-view {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .file-item {
        flex-direction: column;
        text-align: center;
    }

    .file-actions {
        justify-content: center;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-stats {
        justify-content: center;
    }

    .result-actions {
        justify-content: center;
    }

    .processing-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-actions,
    .results-actions,
    .file-actions,
    .result-actions {
        display: none;
    }

    .hero-section {
        background: none;
        color: var(--text-primary);
    }

    .hero-title {
        color: var(--text-primary);
        background: none;
        -webkit-text-fill-color: initial;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    }

    .btn-secondary {
        border-width: 3px;
    }

    .upload-area {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .spinner {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #60a5fa;
        --secondary-color: #94a3b8;
        --accent-color: #34d399;
        --background-color: #0f172a;
        --surface-color: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
    }

    .hero-section {
        background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    }

    .upload-area:hover {
        background-color: rgba(96, 165, 250, 0.05);
    }

    .upload-area.dragover {
        background-color: rgba(96, 165, 250, 0.1);
    }
}

