/* ============================================
   SwipeFinder.pro - Responsive Styles
   Mobile-First Approach
   ============================================ */

/* Tablet Devices (max-width: 992px) */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero h1 {
        font-size: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-green);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Search Bar */
    .search-bar {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    /* Grids */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

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

    .social-links {
        justify-content: center;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Recipe Card */
    .recipe-image {
        height: 200px;
    }

    /* Category Card */
    .category-card {
        height: 200px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .recipe-content,
    .blog-content {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .newsletter,
    .search-bar,
    .menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .recipe-card,
    .blog-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
