/* ============================================
   FridgeSmart Landing Page - Responsive Styles
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
        --font-size-h3: 22px;
        --spacing-xxxl: 80px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Hero */
    .hero {
        padding: calc(70px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Carousel arrows closer */
    .carousel-prev {
        left: -40px;
    }

    .carousel-next {
        right: -40px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --font-size-h1: 32px;
        --font-size-h2: 28px;
        --font-size-h3: 20px;
        --font-size-h4: 18px;
        --spacing-md: 20px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
        --spacing-xxxl: 64px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-h3);
    }

    .phone-mockup {
        max-width: 280px;
    }

    /* Features */
    .features {
        padding: var(--spacing-xxl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-icon img {
        width: 56px;
        height: 56px;
    }

    /* Screenshots */
    .screenshots {
        padding: var(--spacing-xxl) 0;
    }

    .screenshot-carousel {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .screenshot-phone {
        max-width: 240px;
    }

    .screenshot-label {
        font-size: var(--font-size-base);
    }

    .screenshot-caption {
        font-size: var(--font-size-base);
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    /* Download */
    .download {
        padding: var(--spacing-xxl) 0;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-badge img {
        height: 50px;
    }

    .download-info {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    /* About */
    .about {
        padding: var(--spacing-xxl) 0;
    }

    .about-description {
        font-size: var(--font-size-base);
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-sm);
    }

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

    .footer-brand {
        margin-bottom: var(--spacing-md);
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

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

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 28px;
        --font-size-h2: 24px;
        --spacing-md: 16px;
        --spacing-lg: 20px;
        --spacing-xl: 28px;
        --spacing-xxl: 40px;
        --spacing-xxxl: 56px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Navigation */
    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    /* Hero */
    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--font-size-small);
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .phone-mockup {
        max-width: 220px;
    }

    /* Features */
    .feature-icon img {
        width: 48px;
        height: 48px;
    }

    /* Screenshots */
    .screenshot-phone {
        max-width: 200px;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Download */
    .store-badge img {
        height: 45px;
    }

    .store-badge-placeholder {
        padding: 12px 24px;
        font-size: var(--font-size-base);
    }

    /* About */
    .about-feature {
        flex-direction: column;
        text-align: center;
    }

    .about-feature-icon {
        font-size: 28px;
    }

    /* Social links */
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(70px + var(--spacing-md)) 0 var(--spacing-md);
    }

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

    .phone-mockup {
        max-width: 200px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-buttons,
    .download-buttons,
    .footer {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: var(--spacing-md) 0;
    }

    .section-title,
    .hero-title,
    .feature-title {
        color: black;
    }
}
