/* ========================================
   RESPONSIVE STYLES (OPTIMIZED)
   Combined: mobile.css + tablet.css + desktop.css
   Optimized for Performance - Reduces HTTP Requests
   ======================================== */

/* ========================================
   MOBILE STYLES (< 768px)
   ======================================== */

@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Hide desktop elements */
    .hide-mobile {
        display: none !important;
    }
    
    /* Fix bottom-nav overlap */
    body {
        padding-bottom: 80px !important;
    }
    
    main {
        padding-bottom: 80px !important;
    }
    
    /* Ensure last section has extra padding */
    section:last-of-type,
    footer {
        padding-bottom: 100px !important;
    }
}

/* ========================================
   TABLET STYLES (768px - 1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Container */
    .container {
        padding: 0 2rem;
        max-width: 720px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Spacing */
    section {
        padding: 4rem 0;
    }
    
    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hide tablet elements */
    .hide-tablet {
        display: none !important;
    }
}

/* ========================================
   DESKTOP STYLES (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    /* Container */
    .container {
        padding: 0 3rem;
        max-width: 1400px;
    }
    
    /* Typography */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hide desktop elements */
    .hide-desktop {
        display: none !important;
    }
    
    /* Hover effects */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Extra Large Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4rem;
    }
}
