/* ============================================================
   منصة شاعر للنشر الرقمي والمحتوى الإعلامي المتكامل
   أنماط التصميم الرسومي والتجاوب الكامل (CSS Framework)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.45);
    --gold-accent: #d97706;
    --gold-glow: rgba(217, 119, 6, 0.4);
    --accent-color: #059669;
    --accent-glow: rgba(5, 150, 105, 0.35);
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #cbd5e1;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --card-hover-shadow: 0 22px 35px -8px rgba(15, 23, 42, 0.16), 0 12px 16px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --header-height: 72px;
    --footer-height: 48px;
    --sidebar-width: 68px;
}

/* ==================== 3D ANIMATIONS & KEYFRAMES ==================== */
@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0);
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.12));
    }
    50% {
        transform: translateY(-8px) rotateX(8deg) rotateY(-8deg) translateZ(20px);
        filter: drop-shadow(0 18px 24px rgba(0,0,0,0.22));
    }
}

@keyframes float3DAlt {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateZ(0deg);
        filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
    }
    50% {
        transform: translateY(-6px) rotateY(12deg) rotateZ(-3deg);
        filter: drop-shadow(0 16px 20px rgba(0,0,0,0.2));
    }
}

@keyframes pulse3DGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25), inset 0 2px 4px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45), inset 0 2px 6px rgba(255,255,255,0.9), inset 0 -3px 8px rgba(0,0,0,0.2);
    }
}

@keyframes shimmerSweeper {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }
    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

/* Reset & Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* App Layout Grid */
#app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--footer-height));
}

/* Sidebar Styling (Matches dark side-strip in screenshot) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
    z-index: 100;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.sidebar-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    position: relative;
}

.sidebar-btn:hover, .sidebar-btn.active {
    background-color: var(--sidebar-hover);
    color: #38bdf8;
    transform: translateX(-2px);
}

.sidebar-btn.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background-color: #38bdf8;
    border-radius: 4px 0 0 4px;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* Header Banner (Matches top banner in screenshot) */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    overflow-y: auto;
}

.top-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.header-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.search-box input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Category Filter Bar - 3D Floating Orb Tabs */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    overflow-x: auto;
    position: sticky;
    top: 72px;
    z-index: 80;
}

.tab-item {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: #475569;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.tab-item:hover {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    color: #2563eb;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
    border-color: #93c5fd;
}

.tab-item.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.12);
}

.tab-item.active i {
    animation: float3DAlt 3s ease-in-out infinite;
}

/* Main Cards Grid & Dynamic Containers */
.dashboard-container {
    padding: 24px;
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ============================================================
   RESPONSIVE LAYOUT SYSTEM (Desktop, Laptop, Tablet, Mobile)
   ============================================================ */

/* [1] Large Desktops & 4K Displays (Min 1400px) */
@media (min-width: 1400px) {
    .dashboard-container {
        padding: 30px 40px;
    }
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* [2] Standard Desktops & Laptops (1024px to 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .dashboard-container {
        padding: 24px;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* [3] Tablets in Landscape & Portrait (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-wrapper {
        padding: 0;
    }
    .top-header {
        padding: 12px 18px;
    }
    .dashboard-container {
        padding: 16px 14px;
    }
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .filter-tabs {
        padding: 10px 18px;
    }
    .modal-container {
        max-width: 90vw;
        max-height: 90vh;
    }
}

/* [4] Mobile Phones & Phablets (Max 767px) - Zero Excess Edges ("لا توجد حواف زائدة") */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    #app-root, .main-layout {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Remove outer wrapper padding to eliminate wasted borders */
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Edge-to-edge native app-like header */
    .top-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    .header-title-container {
        gap: 10px !important;
    }

    .app-header-logo {
        width: 44px !important;
        height: 44px !important;
    }

    .header-title {
        font-size: 0.94rem !important;
        line-height: 1.35 !important;
    }

    .header-subtitle {
        font-size: 0.74rem !important;
    }

    .header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .search-box {
        flex: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .search-box input {
        padding: 7px 32px 7px 10px !important;
        font-size: 0.82rem !important;
        border-radius: 8px !important;
    }

    .search-box i {
        right: 10px !important;
        font-size: 0.85rem !important;
    }

    #header-messages-btn {
        flex-shrink: 0 !important;
        padding: 7px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    /* Edge-to-edge smooth category tabs */
    .filter-tabs {
        padding: 8px 10px !important;
        margin: 0 !important;
        gap: 8px !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        position: sticky !important;
        top: 0 !important;
    }

    .tab-item {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }

    /* Edge-to-edge dashboard container with tight, clean gutter */
    .dashboard-container {
        padding: 10px 8px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2 Columns on mobile cards grid */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .grid-card {
        padding: 14px 6px 12px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .card-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        border-radius: 14px !important;
        margin-bottom: 4px !important;
    }

    .card-title {
        font-size: 0.85rem !important;
        margin-top: 2px !important;
    }

    .card-count {
        font-size: 0.72rem !important;
    }

    .card-badge {
        top: 6px !important;
        left: 6px !important;
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    /* Single column for video category parent cards on mobile */
    .video-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 0 0 14px 0 !important;
        width: 100% !important;
    }

    .video-cat-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .cat-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.35rem !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    /* Section detail bar */
    .section-header-bar {
        padding: 10px 12px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 10px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .section-header-bar h2 {
        font-size: 0.98rem !important;
    }

    .back-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Items grid on mobile */
    .items-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .media-item-card {
        border-radius: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .item-thumb-container {
        height: 175px !important;
    }

    .item-body {
        padding: 12px 10px !important;
    }

    .inside-folder-banner {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        gap: 10px !important;
    }

    /* Footer edge-to-edge */
    .app-footer {
        padding: 10px 12px !important;
        font-size: 0.76rem !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 4px !important;
        text-align: center !important;
    }

    .app-footer .footer-sep {
        display: none !important;
    }

    /* Mobile bottom-sheet modals */
    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    .modal-container {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 18px 18px 0 0 !important;
        margin: 0 !important;
        max-height: 94vh !important;
        border: none !important;
    }

    .modal-header {
        padding: 12px 16px !important;
    }

    .auth-card {
        border-radius: 18px 18px 0 0 !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }

    .auth-header {
        padding: 20px 16px !important;
    }

    .auth-body {
        padding: 16px !important;
    }

    #video-player-container {
        border-radius: 14px 14px 0 0 !important;
    }

    .video-element {
        height: 240px !important;
        min-height: 200px !important;
    }
}

/* [5] Extra-Small Mobile Screens (Max 360px) */
@media (max-width: 360px) {
    .cards-grid {
        gap: 6px !important;
    }
    .grid-card {
        padding: 10px 4px 10px !important;
    }
    .card-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.3rem !important;
    }
    .card-title {
        font-size: 0.8rem !important;
    }
    .header-title {
        font-size: 0.86rem !important;
    }
}

/* Screen Orientation Handling (Mobile Landscape Mode) */
@media (max-height: 500px) and (orientation: landscape) {
    .top-header {
        padding: 8px 12px !important;
    }
    .modal-container {
        max-height: 96vh !important;
    }
    .video-player-box {
        max-height: 70vh !important;
    }
}

/* ==================== 3D INTERACTIVE GRID CARD ==================== */
.grid-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
}

/* Glossy highlight line on top */
.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Light shimmer sweep animation */
.grid-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(30deg);
    opacity: 0;
    pointer-events: none;
}

.grid-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(4deg);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(147, 197, 253, 0.8);
}

.grid-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, #d97706, #2563eb, #059669);
}

.grid-card:hover::after {
    opacity: 1;
    animation: shimmerSweeper 1.2s ease forwards;
}

/* ==================== 3D ICON MASTER WRAPPER ==================== */
.card-icon-wrapper {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform-style: preserve-3d;
    animation: float3D 4.5s ease-in-out infinite;
    cursor: pointer;
}

/* 3D Underlay Base Plate */
.card-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Dynamic 3D Popout on Card Hover */
.grid-card:hover .card-icon-wrapper {
    transform: translateZ(35px) scale(1.15) rotateY(15deg) rotateX(-5deg);
    animation-play-state: paused;
}

.grid-card:hover .card-icon-wrapper::before {
    opacity: 0.8;
    filter: blur(16px);
}

.grid-card:hover .card-icon-wrapper i {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.card-icon-wrapper i {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
    letter-spacing: -0.2px;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.45);
    animation: badgeFloat 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.card-count {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* ==================== 3D ICON LUXURY PALETTES ==================== */
/* 1. Videos (Sapphire Deep Blue 3D) */
.icon-videos {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e3a8a 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 2. Audio (Emerald Mint 3D) */
.icon-audio {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #064e3b 100%);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 0.6s;
}

/* 3. Books (Royal Gold & Amber 3D) */
.icon-books {
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #78350f 100%);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 1.2s;
}

/* 4. Docs & Archive (Cyan & Ocean Blue 3D) */
.icon-docs {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 50%, #0c4a6e 100%);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 1.8s;
}

/* 5. Magazines (Purple Amethyst 3D) */
.icon-magazines {
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4c1d95 100%);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 2.4s;
}

/* 6. Photos (Ruby Rose 3D) */
.icon-photos {
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e 0%, #db2777 50%, #831843 100%);
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 3s;
}

/* 7. Upload & Admin Approvals (Jade Matrix 3D) */
.icon-upload {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #14532d 100%);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation-delay: 3.6s;
}

.icon-stats {
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
}

.icon-settings {
    color: #ffffff;
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 12px 24px rgba(100, 116, 139, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
}

.icon-trash {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
}

/* ==================== 3D FOLDER CARDS ==================== */
.audio-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 14px;
    perspective: 1000px;
}

.folder-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 2px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    transform-style: preserve-3d;
}

.folder-card:hover {
    transform: translateY(-8px) scale(1.03) rotateX(4deg);
    box-shadow: var(--card-hover-shadow);
}

.folder-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    animation: float3DAlt 4s ease-in-out infinite;
}

.folder-card:hover .folder-icon-wrapper {
    transform: translateZ(30px) scale(1.18) rotateY(15deg);
}

.folder-card.yellow-folder { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(145deg, #ffffff, #fffbeb); }
.folder-card.yellow-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #fbbf24, #d97706); 
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.yellow-folder:hover { border-color: #d97706; }

.folder-card.green-folder { border-color: rgba(16, 185, 129, 0.4); background: linear-gradient(145deg, #ffffff, #ecfdf5); }
.folder-card.green-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #34d399, #059669); 
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.green-folder:hover { border-color: #059669; }

.folder-card.blue-folder { border-color: rgba(59, 130, 246, 0.4); background: linear-gradient(145deg, #ffffff, #eff6ff); }
.folder-card.blue-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #60a5fa, #2563eb); 
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.blue-folder:hover { border-color: #2563eb; }

.folder-card.purple-folder { border-color: rgba(139, 92, 246, 0.4); background: linear-gradient(145deg, #ffffff, #f5f3ff); }
.folder-card.purple-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #a78bfa, #7c3aed); 
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.purple-folder:hover { border-color: #7c3aed; }

.folder-card.pink-folder { border-color: rgba(236, 72, 153, 0.4); background: linear-gradient(145deg, #ffffff, #fdf2f8); }
.folder-card.pink-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #f472b6, #db2777); 
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.pink-folder:hover { border-color: #db2777; }

.folder-card.red-folder { border-color: rgba(239, 68, 68, 0.4); background: linear-gradient(145deg, #ffffff, #fef2f2); }
.folder-card.red-folder .folder-icon-wrapper { 
    color: #ffffff; 
    background: linear-gradient(135deg, #f87171, #dc2626); 
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35), inset 0 2px 3px rgba(255,255,255,0.5); 
}
.folder-card.red-folder:hover { border-color: #dc2626; }

.folder-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.folder-count-badge {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.inside-folder-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    border: 2px solid #e2e8f0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
    gap: 16px;
}

/* Content Items List View (When browsing a specific section) */
.section-view-container {
    display: none;
    padding: 20px;
}

.section-view-container.active {
    display: block;
}

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
}

.back-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e5e7eb;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.media-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.media-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.item-thumb-container {
    height: 170px;
    width: 100%;
    background-color: #111827;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.media-item-card:hover .play-overlay-btn {
    transform: scale(1.15);
    background: #2563eb;
}

.card-actions-bar {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.btn-card-action {
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card-action:hover {
    transform: scale(1.05);
}

.btn-card-action.edit-btn {
    background: #2563eb;
}

.btn-card-action.edit-btn:hover {
    background: #1d4ed8;
}

.btn-card-action.delete-btn {
    background: #dc2626;
}

.btn-card-action.delete-btn:hover {
    background: #b91c1c;
}

.item-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.item-badge {
    font-size: 0.75rem;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    align-self: flex-start;
}

.item-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
}

.item-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Bar (Matches exact screenshot footer style) */
.app-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.app-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-footer .copyright-owner {
    color: #1e293b;
    font-weight: 800;
}

/* Auth Modal / Glassmorphic Login */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    background: linear-gradient(135deg, #1e3a8a, #059669);
    padding: 30px 24px;
    color: #ffffff;
    text-align: center;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: #ffffff;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.auth-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.form-input {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-block:hover {
    opacity: 0.92;
}

.guest-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-hover);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
}

/* Modals & Media Players */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 16px 24px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Custom Cinematic Video Player */
.video-player-box {
    background: #000000;
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 440px;
    min-height: 360px;
    object-fit: contain;
    outline: none;
    background: #000000;
    display: block;
}

.custom-video-controls {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.video-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 3px;
    width: 0%;
    position: relative;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.time-display {
    font-size: 0.85rem;
    font-family: monospace;
}

/* Picture-in-Picture Floating Mode (Universal PiP widget for ALL Browsers) */
.modal-overlay.pip-floating-mode {
    background: transparent !important;
    backdrop-filter: none !important;
    pointer-events: none;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
}

.modal-overlay.pip-floating-mode .modal-container {
    pointer-events: auto;
    width: 360px !important;
    max-width: 90vw !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #2563eb !important;
    border-radius: 16px !important;
    animation: floatIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes floatIn {
    from { transform: scale(0.7) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Audio Player High-End UI */
.audio-player-modal {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.audio-art {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    background: #ffffff;
    padding: 8px;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    animation: spin 12s linear infinite paused;
    transition: all 0.3s ease;
}

.audio-art.playing {
    animation-play-state: running;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.75);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audio-info {
    text-align: center;
}

.audio-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.audio-artist {
    font-size: 0.9rem;
    color: #9ca3af;
}

.waveform-sim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    width: 100%;
}

.bar {
    width: 4px;
    background: #38bdf8;
    border-radius: 2px;
    height: 20%;
    transition: height 0.15s ease;
}

.bar.animating {
    animation: wave 1.2s ease-in-out infinite alternate;
}

@keyframes wave {
    0% { height: 15%; }
    100% { height: 100%; }
}

/* Document & PDF Viewer */
.doc-viewer-frame {
    width: 100%;
    height: 70vh;
    border: none;
    background: #f9fafb;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #111827;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 4px solid #2563eb;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive Chat Modal */
@media (max-width: 767px) {
    /* Mobile Chat Modal & Fixed Input Bar */
    #messages-modal .modal-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 98vh !important;
        max-height: 98vh !important;
        margin: 0 !important;
        border-radius: 14px 14px 0 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100000 !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.3) !important;
    }
    #messages-modal > div > div:nth-child(2) {
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    #messages-modal div[style*="width: 250px"] {
        width: 100% !important;
        height: auto !important;
        max-height: 75px !important;
        flex-shrink: 0 !important;
        border-left: none !important;
        border-bottom: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
    }
    #staff-recipients-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 8px !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch;
    }
    #staff-recipients-list > div {
        flex-shrink: 0 !important;
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
    }
    #chat-messages-container {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 12px 10px !important;
        -webkit-overflow-scrolling: touch;
    }
    #chat-send-form {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        z-index: 1000 !important;
        padding: 10px !important;
        border-top: 2px solid #cbd5e1 !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.08) !important;
    }
    #chat-input-text {
        font-size: 0.95rem !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }
    #chat-send-form .btn-primary {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   Fixed Video Categories Styling (سنوات الدم، سنوات العبث، توثيق المديريات)
   ============================================================ */
.video-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.video-cat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.video-cat-card.cat-blood {
    border-color: #fecaca;
    background: linear-gradient(145deg, #ffffff 50%, #fef2f2);
}
.video-cat-card.cat-blood:hover {
    border-color: #dc2626;
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.2);
}
.video-cat-card.cat-blood .cat-icon-wrapper {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: #ffffff;
}

.video-cat-card.cat-absurdity {
    border-color: #fed7aa;
    background: linear-gradient(145deg, #ffffff 50%, #fffbeb);
}
.video-cat-card.cat-absurdity:hover {
    border-color: #d97706;
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.2);
}
.video-cat-card.cat-absurdity .cat-icon-wrapper {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
}

.video-cat-card.cat-directorates {
    border-color: #bae6fd;
    background: linear-gradient(145deg, #ffffff 50%, #f0f9ff);
}
.video-cat-card.cat-directorates:hover {
    border-color: #0284c7;
    box-shadow: 0 12px 25px rgba(2, 132, 199, 0.2);
}
.video-cat-card.cat-directorates .cat-icon-wrapper {
    background: linear-gradient(135deg, #1e3a8a, #0284c7);
    color: #ffffff;
}

.cat-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
}

