/* media.css - Advanced Mobile & Media Formatting */

/* 1. Horizontal Categories Slider (Slider Bar) */
.category-slider-wrap {
    width: 100%;
    background: var(--navy);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: none; /* Desktop hidden */
    position: sticky;
    top: 64px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-slider-wrap::-webkit-scrollbar {
    display: none;
}

.category-slider {
    padding: 0 15px;
    display: inline-flex;
    gap: 12px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.cat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cat-item:active .cat-icon,
.cat-item.active .cat-icon {
    border-color: var(--green);
    background: rgba(0, 194, 122, 0.2);
    transform: scale(0.95);
}

/* 2. Premium Mobile Menu */
@media (max-width: 900px) {
    .category-slider-wrap {
        display: block;
    }

    /* Mobile Floating Action Button */
    .mobile-fab {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
        background: var(--green);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--navy);
        font-size: 1.5rem;
        box-shadow: 0 10px 25px rgba(0, 194, 122, 0.4);
        z-index: 2000;
        text-decoration: none;
        animation: pulse-green 2s infinite;
    }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 194, 122, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 194, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 194, 122, 0); }
}

/* 3. Media Content & Sidebar Refinements */
.media-wrapper {
    border-top: 1px solid var(--gray2);
    padding-top: 40px;
}

.media-content {
    border-left: 1px solid var(--gray2);
    padding-left: 40px;
}

.sidebar-widget {
    border: none;
    background: var(--gray1);
    transition: var(--transition);
}

.sidebar-widget:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sidebar-widget h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--green);
}

.sidebar-ad {
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .media-content {
        border-left: none;
        padding-left: 0;
    }
    
    .media-wrapper {
        gap: 60px;
    }
}

/* 4. Glassmorphism Upgrades */
.glass-nav {
    background: rgba(10, 22, 40, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
