/* ===== المتغيرات ===== */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #EC4899;
    --accent: #10B981;
    --candy: #F472B6;
    --sunshine: #FDE047;
    --sky: #E0F2FE;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --gradient-main: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ===== أساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #E0F2FE 0%, #F3E8FF 50%, #FCE7F3 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== الهيدر ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* اللوجو */
.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* شريط البحث */
.search-wrapper {
    flex: 1;
    max-width: 450px;
    min-width: 150px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    background: #F9FAFB;
}

.search-box input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-box input::placeholder {
    color: #9CA3AF;
    font-size: 12px;
}

.search-box button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* أزرار التنقل */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 18px;
}

.nav-icon-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* شريط التصنيفات */
.categories-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== الأنيميشن ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.bounce-soft {
    animation: bounce-soft 2s infinite;
}

/* ===== الموبايل ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 8px 10px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .search-wrapper {
        max-width: none;
        flex: 1;
    }
    
    .search-box input {
        padding: 8px 35px 8px 10px;
        font-size: 11px;
    }
    
    .search-box button {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .nav-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .nav-icon-hidden-mobile {
        display: none;
    }
    
    .category-chip {
        padding: 4px 10px;
        font-size: 10px;
    }
}
/* ===== الهيدر ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

/* اللوجو */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 180px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-text p {
    font-size: 10px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* شريط البحث */
.search-wrapper {
    flex: 0 1 400px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.12);
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    background: #F9FAFB;
}

.search-box input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.search-box button {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* أزرار التنقل */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-icon-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

/* ===== الموبايل ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 8px 12px;
    }
    
    .header-top {
        gap: 8px;
    }
    
    .logo {
        min-width: auto;
        gap: 8px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* .logo-text {
        display: none;
    } */
    
    .search-wrapper {
        display: none;
    }
    
    .nav-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .nav-icon-hidden-mobile {
        display: none;
    }
}
/* ===== البانر الترحيبي ===== */
.welcome-banner {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #FBBF24 100%);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    overflow: hidden;
    position: relative;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    gap: 16px;
}

.welcome-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.welcome-content p {
    font-size: 13px;
    opacity: 0.9;
    color: white;
    margin: 0;
}

.welcome-icon {
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

/* زخرفة دائرية في الخلفية */
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* ===== الموبايل ===== */
@media (max-width: 768px) {
    .welcome-content {
        padding: 16px 20px;
    }
    
    .welcome-content h2 {
        font-size: 16px;
    }
    
    .welcome-content p {
        font-size: 11px;
    }
    
    .welcome-icon {
        font-size: 30px;
    }
}
.mobile-search {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
    transform-origin: top;
}

.mobile-search.search-open {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search .search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    font-size: 13px;
    background: white;
    transition: all 0.3s;
}

.mobile-search .search-box input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
    outline: none;
}
/* ===== السكشنز ===== */
.section-block {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.section-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8B5CF6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.section-link:hover {
    gap: 8px;
    color: #7C3AED;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ===== الديسكتوب ===== */
@media (min-width: 768px) {
    .section-title h3 {
        font-size: 20px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    
    .section-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 768px) {
    .section-block {
        margin-bottom: 24px;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title h3 {
        font-size: 15px;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }
    
    .section-icon svg {
        width: 15px;
        height: 15px;
    }
    
    .section-link {
        font-size: 11px;
    }
    
    .video-grid {
        gap: 8px;
    }
}
section {
    margin-top:20px;
}
/* ===== سلايدر الأقسام ===== */
.slider-buttons {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6B7280;
}

.slider-btn:hover {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.categories-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.categories-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-slider-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-slider-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.category-slider-name {
    font-weight: 800;
    font-size: 13px;
    color: #1F2937;
    white-space: nowrap;
}

/* ===== الموبايل ===== */
@media (max-width: 768px) {
    .slider-btn {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }
    
    .category-slider-card {
        padding: 8px 14px;
        border-radius: 14px;
        gap: 6px;
    }
    
    .category-slider-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }
    
    .category-slider-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .category-slider-name {
        font-size: 11px;
    }
}