/**
 * GenZ News - Mobile Responsive Fixes
 * Fixes header logo alignment and menu issues on mobile screens
 */

/* ============================================
   MOBILE HEADER FIXES
   ============================================ */

/* Fix logo alignment on mobile */
@media screen and (max-width: 1190px) {
    .header-top .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 90px;
        padding: 10px 15px;
    }
    
    .logo {
        float: none;
        height: auto;
        max-height: 60px;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .logo a {
        display: flex;
        align-items: center;
    }
    
    .logo a img {
        height: auto;
        max-height: 55px;
        width: auto;
        max-width: 100%;
    }
}

@media screen and (max-width: 890px) {
    .header-top .container {
        min-height: 70px;
    }
    
    .logo {
        max-height: 50px;
    }
    
    .logo a img {
        max-height: 45px;
    }
}

@media screen and (max-width: 590px) {
    .header-top .container {
        min-height: 60px;
        padding: 8px 10px;
    }
    
    .logo {
        max-height: 45px;
    }
    
    .logo a img {
        max-height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .header-top .container {
        min-height: 55px;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .logo a img {
        max-height: 35px;
    }
}

/* ============================================
   MOBILE MENU FIXES
   ============================================ */

/* Fix header bottom menu alignment */
@media screen and (max-width: 1190px) {
    .header-bottom .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 50px;
        line-height: 50px;
        padding: 0 15px;
    }
    
    .icon-home {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }
    
    .collap-main-nav {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        padding: 0 15px;
        cursor: pointer;
    }
    
    .collap-main-nav img {
        margin-top: 0;
    }
    
    .search-btn {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 890px) {
    .header-bottom .container {
        height: 45px;
        line-height: 45px;
    }
    
    .icon-home,
    .collap-main-nav,
    .search-btn {
        height: 45px;
        width: 45px;
    }
}

@media screen and (max-width: 590px) {
    .header-bottom .container {
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
    }
    
    .icon-home,
    .collap-main-nav,
    .search-btn {
        height: 40px;
        width: 40px;
    }
    
    .collap-main-nav {
        padding: 0 10px;
    }
}

/* Fix second menu toggle button */
@media screen and (max-width: 1190px) {
    .collap-nav-second {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        width: 50px;
        line-height: normal;
        margin-left: 0;
    }
}

@media screen and (max-width: 590px) {
    .collap-nav-second {
        height: 40px;
        width: 40px;
    }
}

/* ============================================
   TOP MENU BAR FIXES
   ============================================ */

@media screen and (max-width: 590px) {
    .header-menu-top {
        display: none;
    }
}

/* ============================================
   SEARCH BUTTON ALIGNMENT
   ============================================ */

@media screen and (max-width: 1190px) {
    .search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .search-btn i {
        font-size: 18px;
    }
}

/* ============================================
   IMPROVE MOBILE NAVIGATION PANEL
   ============================================ */

@media screen and (max-width: 1190px) {
    .main-nav {
        width: 280px;
        left: -280px;
    }
    
    .main-nav.main-nav-active {
        left: 0;
    }
    
    .main-nav-inner > ul > li > a {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .main-nav-inner > ul > li ul li a {
        padding: 10px 20px 10px 35px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .main-nav {
        width: 260px;
        left: -260px;
    }
}

/* ============================================
   BODY OVERLAY WHEN MENU IS OPEN
   ============================================ */

@media screen and (max-width: 1190px) {
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
    }
}

/* ============================================
   RESPONSIVE VIDEO CONTAINERS
   ============================================ */

.video-responsive,
.wp-block-embed,
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-responsive::before,
.wp-block-embed::before,
.embed-responsive::before {
    display: block;
    content: "";
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-responsive iframe,
.wp-block-embed iframe,
.embed-responsive iframe,
.video-responsive video,
.wp-block-embed video,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 4:3 aspect ratio variant */
.video-responsive.video-4by3::before,
.embed-responsive.embed-responsive-4by3::before {
    padding-top: 75%;
}

/* Video caption styling */
.video-caption,
.wp-caption-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Improve video loading placeholder */
.video-responsive iframe[src*="youtube"],
.video-responsive iframe[src*="vimeo"] {
    background-color: #000;
}

/* Lazy load video placeholder */
.video-lazy {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-lazy::after {
    content: '\f144';
    font-family: 'FontAwesome';
    font-size: 64px;
    color: var(--color-1st);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-lazy:hover::after {
    opacity: 1;
}
