/* ==========================================================================
   LP General Page - Layout & Header Styles
   Extracted from page-lp-general.php inline <style> block
   ========================================================================== */

/* Dropdown Styles for Header */
.nav-item-has-children {
    position: relative;
}

/* Override SWELL Theme Defaults */
ul.nav-dropdown {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 9999;
    flex-direction: column;
}

/* Show on hover */
.nav-item-has-children:hover > ul.nav-dropdown,
.nav-item-has-children:focus-within > ul.nav-dropdown {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Force Vertical List Items */
ul.nav-dropdown li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}
ul.nav-dropdown li:last-child {
    border-bottom: none;
}

/* Links */
ul.nav-dropdown a {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    text-align: left;
    background: transparent;
}
ul.nav-dropdown a:hover {
    background: #f5f5f5 !important;
    color: #007cba !important;
}

/* Icon spacing */
ul.nav-dropdown i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #888;
}

/* FIX: YouTube Icon Minimum Size */
ul.nav-dropdown i.fa-youtube {
    font-size: 20px;
    width: 24px;
    vertical-align: middle;
}

/* Live Schedule Widget Styles */
.live-schedule-widget {
    margin-top: 20px;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.live-schedule-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.live-schedule-item {
    flex: 0 0 230px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    scroll-snap-align: start;
    transition: transform 0.2s;
}
.live-schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}
.ls-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}
.ls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ls-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
}
.ls-badge.is-live {
    background: #f00;
    font-weight: bold;
}
.ls-info {
    padding: 8px;
}
.ls-date {
    font-size: 10px;
    color: #888;
    margin-bottom: 3px;
}
.ls-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ls-member {
    font-size: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ls-empty {
    text-align: center;
    padding: 20px;
    color: #888;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Mobile Adjustments for Header */
@media (max-width: 960px) {
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 20px;
    }
    .live-schedule-item {
        flex: 0 0 160px;
    }

    /* Mobile: Disable Hover */
    .nav-item-has-children:hover > ul.nav-dropdown {
        display: none !important;
    }

    /* Active State: Force Block & Static */
    .nav-item-has-children.is-active > ul.nav-dropdown {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        min-width: 0 !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fafafa !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Reset desktop styles for mobile */
    ul.nav-dropdown {
        position: static !important;
        left: 0 !important;
        transform: none !important;
        min-width: 100% !important;
        display: none !important;
    }
}
