/* Mobile Responsive Styles for Forkly Daily */

/* Mobile First Approach */
@media (max-width: 768px) {
    
    /* Header & Navigation */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        justify-content: center;
    }
    
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .navbar-menu a {
        padding: 0.8rem 1rem;
        display: block;
        border-radius: 5px;
        background: var(--light-bg);
        margin-bottom: 0.5rem;
    }
    
    .header {
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    body {
        margin-top: 0;
    }
    
    /* Hero Section */
    .hero {
        min-height: 70vh;
        margin-top: 0;
        background-attachment: scroll;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Grid adjustments */
    .row {
        margin: 0;
    }
    
    .column {
        padding: 1rem 0;
    }
    
    /* Recipe cards mobile layout */
    .recipe-card {
        margin-bottom: 2rem;
    }
    
    .recipe-image {
        height: 180px;
    }
    
    /* Gallery grid mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Contact form mobile */
    .contact-form-fields {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .column {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        flex-direction: row;
        gap: 2rem;
    }
    
    /* Workshop cards mobile */
    .workshop-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .workshop-date {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Logo adjustments */
    .logo {
        height: 40px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    /* Text alignment mobile */
    .mobile-center {
        text-align: center;
    }
    
    /* Spacing adjustments */
    .mb-mobile-2 {
        margin-bottom: 2rem !important;
    }
    
    .mt-mobile-2 {
        margin-top: 2rem !important;
    }
    
    /* Images mobile */
    .responsive-image {
        margin-bottom: 1.5rem;
    }
    
    /* About preview section mobile */
    .about-preview .column {
        order: 2;
    }
    
    .about-preview .column:first-child {
        order: 1;
    }
    
    /* Workshops preview mobile */
    .workshops-preview .column:first-child {
        order: 2;
    }
    
    .workshops-preview .column:last-child {
        order: 1;
    }
    
    /* Contact section mobile layout */
    .contact-form .column:first-child {
        order: 2;
    }
    
    .contact-form .column:last-child {
        order: 1;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 2rem 0;
        margin-top: 0;
    }
    
    /* Category cards mobile */
    .category-image {
        height: 150px;
    }
    
    /* Tips box mobile */
    .tips-box {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Newsletter mobile */
    .newsletter-box {
        padding: 1.5rem;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .hero-title {
        font-size: 3rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
    }
    
    .recipe-image {
        height: 220px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .contact-form-fields {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 35px;
    }
    
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .recipe-card h3 {
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .recipe-card p {
        padding: 0 0.8rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .workshop-card {
        padding: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer .column {
        margin-bottom: 1.5rem;
    }
    
    .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer p,
    .footer a {
        font-size: 0.9rem;
    }
    
    .category-image {
        height: 120px;
    }
    
    .tips-box {
        padding: 1rem;
    }
    
    .newsletter-box {
        padding: 1rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 50vh;
    }
    
    .navbar {
        flex-direction: row;
        padding: 0.5rem 0;
    }
    
    .navbar-menu {
        flex-direction: row;
        gap: 1rem;
    }
    
    .navbar-menu a {
        background: none;
        margin-bottom: 0;
        padding: 0.5rem;
    }
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    
    .btn:hover {
        transform: none;
    }
    
    .recipe-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .responsive-image:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .navbar-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-form-fields input,
    .contact-form-fields textarea {
        min-height: 48px;
        padding: 1rem;
    }
    
    .checkbox-label {
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    
    .header,
    .footer,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
    
    .section {
        padding: 1rem 0;
        background: white !important;
    }
    
    .recipe-card,
    .workshop-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}