/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Mobile First Approach */

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .checker-card {
        padding: var(--spacing-sm);
    }
    
    .results-due-date {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 99;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu li a {
        display: block;
        padding: var(--spacing-md);
        width: 100%;
    }
    
    .checker-tabs {
        padding-bottom: var(--spacing-sm);
    }
    
    .tab-button {
        font-size: 14px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .tab-button span {
        display: none;
    }
    
    .tab-button i {
        font-size: 20px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .countdown-item {
        min-width: 60px;
        padding: var(--spacing-sm);
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .trimester-progress {
        grid-template-columns: 1fr;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checker-card {
        padding: var(--spacing-lg);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .navbar-menu {
        display: flex;
    }
    
    .checker-tabs {
        justify-content: center;
    }
    
    .tab-button {
        flex: 0 1 auto;
    }
}

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .tab-button,
    .week-pill,
    .faq-question {
        min-height: 48px;
        min-width: 48px;
    }
    
    .form-input,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .navbar-menu {
        max-height: calc(100vh - 70px);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .results-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .site-header,
    .site-footer,
    .checker-tabs,
    .btn,
    .email-capture,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .checker-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .results-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

