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

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100vh);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Article Content */
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Section Padding */
    :root {
        --section-padding: 60px 0;
    }
}

/* Small Tablet */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Features */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Recipes Grid */
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Article */
    .article-header {
        padding: 40px 0;
    }
    
    .article-meta {
        justify-content: center;
    }
    
    .article-intro {
        font-size: 1.1rem;
    }
    
    .article-main-image {
        width: 120px;
        height: 120px;
    }
    
    /* Recipe Steps */
    .recipe-step {
        padding: 1rem;
    }
    
    .ingredients-list,
    .tips-list {
        padding: 1rem;
    }
    
    /* Nutrition Grid */
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar */
    .article-sidebar {
        position: static;
    }
    
    .recipe-summary,
    .related-articles,
    .course-promotion {
        padding: 1rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card.featured {
        transform: none;
    }
    
    /* Section Padding */
    :root {
        --section-padding: 40px 0;
    }
}

/* Mobile */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Recipe Cards */
    .recipe-image {
        padding: 1.5rem;
    }
    
    .recipe-svg {
        width: 80px;
        height: 80px;
    }
    
    .recipe-content {
        padding: 1rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-banner .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Navigation Brand */
    .brand-text {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Article */
    .article-intro {
        font-size: 1rem;
    }
    
    .article-main-image {
        width: 100px;
        height: 100px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-list {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Comment Form */
    .comment-form {
        padding: 1.5rem;
    }
    
    /* Legal Content */
    .legal-text {
        padding: 0 10px;
    }
    
    /* Contact Hours */
    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        width: 35px;
        height: 35px;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Section Padding */
    :root {
        --section-padding: 30px 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .brand-text {
        font-size: 1rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Cookie Banner */
    .cookie-banner .btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Recipe Cards */
    .recipe-svg {
        width: 60px;
        height: 60px;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure SVGs scale properly on high DPI displays */
    .logo,
    .footer-logo,
    .feature-icon,
    .recipe-svg,
    .contact-icon,
    .stat-icon,
    .related-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .page-header {
        padding: 40px 0 30px;
    }
    
    :root {
        --section-padding: 30px 0;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 0;
    }
    
    input,
    select,
    textarea {
        min-height: 44px;
    }
    
    /* Reduce hover effects on touch devices */
    .feature-card:hover,
    .recipe-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cookie-banner {
        transition: none;
    }
    
    .nav-list {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Currently maintaining light theme for food presentation
       Dark mode implementation can be added here if needed */
}

/* Print Responsive */
@media print {
    .container {
        padding: 0;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ensure readable font sizes */
    body {
        font-size: 11pt;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}
