/* ==========================================================================
   تنسيقات صفحة الفيديوهات - نادي الصقور
   ========================================================================== */

:root {
    /* الألوان الأساسية */
    --primary-color: #0a2463;
    --secondary-color: #d00000;
    --accent-color: #ff9500;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    
    /* ظلال */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* حواف مستديرة */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;
    
    /* انتقالات */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* المسافات البادئة */
    --section-padding: 80px 0;
}

/* ==========================================================================
   تنسيقات البريدكرمب
   ========================================================================== */
.breadcrumb-container {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 15px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   قسم الهيرو - الفيديوهات
   ========================================================================== */
.page-title-section {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(10, 36, 99, 0.8) 100%), url('../images/pattern.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 149, 0, 0.1);
    z-index: 1;
}

.page-title-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(208, 0, 0, 0.05);
    z-index: 1;
}

.page-title-section .section-header {
    position: relative;
    z-index: 2;
}

.page-title-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    right: -50px;
    top: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--secondary-color);
    right: -80px;
    top: 0;
}

/* ==========================================================================
   قسم الفيديو النشط
   ========================================================================== */
.active-video-section {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.active-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 0 var(--border-radius-lg) 0 0;
}

.video-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    text-align: center;
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
    position: relative;
}

.video-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: #777;
    font-size: 0.9rem;
}

.video-meta .source-badge {
    margin: 0 10px;
}

.video-meta .date {
    display: flex;
    align-items: center;
}

.video-meta .date i {
    margin-left: 5px;
    color: var(--accent-color);
}

/* ==========================================================================
   قسم شبكة الفيديوهات
   ========================================================================== */
.videos-section {
    padding: 50px 0;
    background-color: var(--light-bg);
    position: relative;
}

.videos-section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.videos-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.videos-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 0 50px;
}

.videos-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    min-height: 250px; /* إضافة ارتفاع أدنى لمنع الارتعاش */
}

.videos-container::-webkit-scrollbar {
    display: none;
}

.video-grid {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    min-height: 230px; /* إضافة ارتفاع أدنى لمنع الارتعاش */
}

.video-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    min-height: 220px; /* إضافة ارتفاع أدنى لمنع الارتعاش */
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.video-card.active {
    border: 2px solid var(--accent-color);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    height: 0; /* إضافة ارتفاع ثابت لمنع الارتعاش */
    background-color: #f0f0f0; /* لون خلفية للتحميل */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.video-thumbnail .placeholder-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.video-thumbnail .placeholder-thumbnail::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px; /* تغيير من right إلى left لجعل الشعار في الجانب الأيسر */
    width: 60px;
    height: 60px;
    background-image: url('../images/logo/Logo_Old_Circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    z-index: 1;
}

.video-thumbnail .placeholder-thumbnail::after {
    content: '\25B6';
    font-size: 40px;
    color: #c00000;
    z-index: 1;
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail .placeholder-thumbnail {
    transform: scale(1.05);
}

.video-source-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
}

.video-source-badge i {
    margin-left: 5px;
    color: var(--accent-color);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.5rem;
    opacity: 0.8;
    transition: var(--transition-fast);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition-fast);
}

.video-card:hover .video-info h3 {
    color: var(--secondary-color);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.source-badge i {
    margin-left: 5px;
    color: var(--accent-color);
}

/* ==========================================================================
   أزرار التمرير
   ========================================================================== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(10, 36, 99, 0.8);
    color: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

/* ==========================================================================
   الترقيم الصفحي
   ========================================================================== */
.pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item:not(.active) .page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    width: auto;
    padding: 0 15px;
}

/* ==========================================================================
   تنسيقات الاستجابة
   ========================================================================== */
@media (max-width: 991px) {
    .active-video-section {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-title-section {
        padding: 60px 0 40px;
    }
    
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .active-video-section {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .scroll-btn {
        display: none;
    }
    
    .videos-wrapper {
        padding: 0;
    }
    
    .video-grid {
        gap: 15px;
    }
    
    .video-card {
        flex: 0 0 250px;
    }
}

@media (max-width: 575px) {
    .page-title-section h1 {
        font-size: 1.75rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .pagination .page-link {
        width: 35px;
        height: 35px;
    }
    
    .video-card {
        flex: 0 0 220px;
    }
}
