/* Mobile First Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: top 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    /* Grid Adjustments */
    .info-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recipes-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post.featured {
        grid-column: span 1;
    }
    
    .blog-tips {
        grid-column: span 1;
    }
    
    /* Article */
    .article-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .article-image {
        margin: 0 auto;
    }
    
    .article-meta {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Recipe Content */
    .recipe-content .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    /* Cards */
    .info-card,
    .service-card,
    .review-card {
        padding: 1.5rem;
    }
    
    /* Forms */
    .form-group {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-banner {
        padding: 1.5rem 1rem;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.8rem 0.5rem;
    }
    
    /* Tips and Grids */
    .tips-grid,
    .nutrition-grid,
    .serving-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .article-info h1 {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .info-card,
    .service-card,
    .review-card,
    .recipe-card {
        padding: 1.2rem;
    }
    
    .blog-post .post-content {
        padding: 1.2rem;
    }
    
    /* Recipe Elements */
    .recipe-image,
    .post-image {
        height: 120px;
    }
    
    .recipe-emoji {
        font-size: 3rem;
    }
    
    .article-image {
        width: 100px;
        height: 100px;
    }
    
    .article-image .recipe-emoji {
        font-size: 2.5rem;
    }
    
    /* Article Meta */
    .article-meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .meta-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
    }
    
    /* Recipe Instructions */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Ingredients */
    .ingredient-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .ingredient-amount {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .ingredient-name {
        margin-left: 0;
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Legal Pages */
    .legal-body {
        padding: 2rem 1.5rem;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Recipe Sidebar */
    .related-recipe {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        align-self: center;
    }
    
    /* Time Breakdown */
    .time-item {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    /* Equipment List */
    .equipment-item {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    /* Blog Tips */
    .tips-list {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-content {
        padding: 0 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .article-info h1 {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Recipe Cards */
    .recipe-image,
    .post-image {
        height: 100px;
    }
    
    .recipe-emoji {
        font-size: 2.5rem;
    }
    
    /* Article Elements */
    .article-image {
        width: 80px;
        height: 80px;
    }
    
    .article-image .recipe-emoji {
        font-size: 2rem;
    }
    
    /* Cards */
    .info-card,
    .service-card,
    .review-card,
    .recipe-card,
    .blog-post .post-content {
        padding: 1rem;
    }
    
    /* Recipe Instructions */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    /* Legal Pages */
    .legal-body {
        padding: 1.5rem 1rem;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content h3 {
        font-size: 1.2rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .article-header {
        padding: 1.5rem 0;
    }
    
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .sidebar-widget,
    .hero-buttons,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }
    
    .hero h1,
    .hero p {
        color: #000 !important;
    }
    
    .article-header {
        background: none !important;
        color: #000 !important;
    }
    
    .article-info h1,
    .article-category,
    .article-description {
        color: #000 !important;
    }
    
    .recipe-content .container {
        display: block;
    }
    
    .recipe-main {
        max-width: none;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .step {
        break-inside: avoid;
    }
    
    .legal-body {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-progress {
        animation: none;
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* For now, we'll maintain the light theme */
}

/* Focus Styles for Accessibility */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid #e67e22;
        outline-offset: 2px;
    }
}
