/* Global Mobile Responsive Fixes for Murphy Radio */
/* Prevents horizontal scrolling on mobile devices */

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* Global container fixes */
.container {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Header and navigation fixes */
header {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Section fixes */
section, 
.news-section,
.live-section, 
.music-section,
.movie-section,
.band-section,
.hero {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Mobile specific fixes */
@media screen and (max-width: 768px) {
    /* Prevent any element from exceeding viewport width */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Grid and layout fixes */
    .news-grid,
    .live-grid,
    .videos-grid,
    .albums-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Item layout fixes */
    .news-item,
    .live-item {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .news-date,
    .live-date {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    /* Video container fixes */
    .video-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    /* Album grid fixes */
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Navigation fixes */
    .nav-links {
        max-width: 90vw;
    }
    
    /* Image and media fixes */
    img, 
    iframe,
    video {
        max-width: 100%;
        height: auto;
    }
    
    /* Text content fixes */
    .hero-content,
    .section-content {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* Extra small mobile screens */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    .nav-links {
        width: 280px;
        max-width: 85vw;
    }
}
