/**
 * Responsive CSS
 *
 * @package Digital_Future_Lab
 */

/* Tablet & Below (768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }

    /* Spacing */
    :root {
        --spacing-lg: 32px;
        --spacing-xl: 48px;
        --spacing-2xl: 64px;
        --container-padding: 16px;
    }

    /* Header */
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Mission Cards */
    .mission-cards {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }

    /* Newsletter CTA */
    .newsletter-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
    }

    .newsletter-input-wrapper .btn {
        width: 100%;
    }

    /* Footer */
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-menu {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .legal-menu {
        flex-direction: column;
        align-items: center;
    }

    /* Post Cards */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Activities Grid */
    .activities-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Post Navigation */
    .post-navigation {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 18px;
    }

    .testimonial-author {
        flex-direction: column;
    }

    /* Error 404 */
    .error-404-nav {
        flex-direction: column;
    }

    .error-404-nav .btn {
        width: 100%;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }

    /* Spacing */
    :root {
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-2xl: 48px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Stats */
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Testimonials */
    .testimonial-content {
        padding: var(--spacing-md);
    }

    .testimonial-text {
        font-size: 16px;
    }

    .quote-icon {
        font-size: 48px;
    }

    /* Mobile Menu */
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .container-wide {
        max-width: 1440px;
    }

    /* Typography */
    h1 { font-size: 64px; }
    h2 { font-size: 48px; }

    /* Hero */
    .hero {
        min-height: 100vh;
    }

    .hero-subtitle {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .scroll-indicator,
    .newsletter-cta,
    .post-navigation,
    .comments-area,
    .breadcrumb,
    .social-links,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    pre, blockquote {
        page-break-inside: avoid;
    }

    .entry-content {
        max-width: 100%;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000;
        --text-secondary: #333;
        --border-gray: #000;
    }

    .btn {
        border-width: 2px;
    }

    a {
        text-decoration: underline;
    }
}

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

    .scroll-indicator {
        animation: none;
    }

    .animate-fadeInUp,
    .animate-fadeIn {
        animation: none;
        opacity: 1;
    }
}

/* Dark Mode (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0F172A;
        --light-gray: #1E293B;
        --text-primary: #F1F5F9;
        --text-secondary: #CBD5E1;
        --border-gray: #334155;
    }

    body {
        background: var(--white);
        color: var(--text-primary);
    }

    .card,
    .post-card,
    .activity-card,
    .project-card {
        background: var(--light-gray);
    }

    .mission-card,
    .testimonial-content {
        background: #1E293B;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .search-field,
    .newsletter-form input {
        background: var(--light-gray);
        color: var(--text-primary);
        border-color: var(--border-gray);
    }
}
