/* Mobile First Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .about-content {
        gap: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .features-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .review-card {
        padding: 2rem 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        min-width: auto;
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-category .switch {
        align-self: flex-end;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 40px 15px;
    }
    
    .recipe-ingredients,
    .recipe-tips {
        margin: 1.5rem -15px;
        border-radius: 0;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .feature-card,
    .review-card {
        padding: 1.5rem 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .article-content {
        padding: 30px 10px;
    }
    
    .recipe-ingredients {
        padding: 1.5rem;
    }
    
    .recipe-tips {
        padding: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image svg,
    .about-image svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal,
    .social-links,
    .hero-buttons,
    .newsletter {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .hero {
        padding: 20px 0;
        background: none;
    }
    
    .hero-content h2 {
        font-size: 24pt;
        color: black;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
        color: black;
    }
    
    a {
        color: black;
        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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
    .modal-content {
        background-color: #2c3e50;
        color: white;
    }
    
    .modal-header {
        border-bottom-color: #34495e;
    }
    
    .modal-footer {
        border-top-color: #34495e;
    }
    
    .cookie-category {
        border-color: #34495e;
        background-color: #34495e;
    }
    
    .close-btn {
        color: #bdc3c7;
    }
    
    .close-btn:hover {
        color: white;
    }
}

/* Focus Indicators for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    button:focus-visible,
    input:focus-visible,
    a:focus-visible {
        outline: 2px solid #DC143C;
        outline-offset: 2px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}
