/* Mobile Optimizations CSS */
/* This file contains mobile-specific optimizations for the CBV website */

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Mobile navigation optimizations */
    .mobile-menu {
        display: block;
    }
    
    .header-content nav {
        display: none;
    }
    
    /* Mobile typography adjustments */
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
        --p-size: 0.9rem;
    }
    
    /* Mobile spacing adjustments */
    .content-wrapper {
        padding: 1rem;
    }
    
    /* Mobile button adjustments */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile image optimizations */
    .hero-image {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile grid adjustments */
    .character-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile modal adjustments */
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    /* Lore → Stories section mobile fixes */
    .stories-section {
        padding: 1rem;
        margin-top: 6rem;
    }

    /* Override inline negative margin on Stories wrapper inside #lore */
    #lore .content-wrapper[style*="margin-top: -4rem"] {
        margin-top: 3rem !important;
    }

    /* Fallback: if structure changes, move Stories below the SVG divider */
    #lore .custom-shape-divider-bottom-1761755461 + .content-wrapper {
        margin-top: 3rem !important;
    }

    .stories-grid {
        gap: 1rem;
    }

    .story-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    /* Story visual assets */
    .story-visual img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    /* Override fixed story image height from desktop */
    .story-image {
        height: auto;
        max-height: 240px;
    }

    /* Typographic tweaks for compact layout */
    .story-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .story-info p {
        font-size: 0.95rem;
        text-align: center;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        padding: 2rem;
    }
}
