/* 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 Card Formatting */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.media-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.media-card-img {
    width: 100%;
    height: 180px;
    background: var(--gray2);
    object-fit: cover;
}

.media-card-body {
    padding: 20px;
}

/* 4. Glassmorphism Upgrades */
.glass-nav {
    background: rgba(10, 22, 40, 0.85) !important;
    backdrop-filter: blur(15px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
}
