/* تنسيق صفحة الفيديوهات */
.videos-hero-section {
    background: linear-gradient(135deg, #2577B1 0%, #1e5f8f 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    padding-top: 250px;
}

.videos-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-video-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-video-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-video-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay i {
    color: #333;
    font-size: 1.5rem;
    margin-left: 3px;
}

.featured-video-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.featured-video-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* قسم الفلترة */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #2577B1;
    box-shadow: 0 0 0 0.2rem rgba(37, 119, 177, 0.25);
}

.search-btn {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    background: #2577B1;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #1e5f8f;
}

/* قسم عرض الفيديوهات */
.videos-section {
    padding: 3rem 0;
}

.results-info {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-count {
    margin: 0;
    color: #333;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-options .btn {
    border-radius: 8px;
    background: #2577B1;
    border-color: #2577B1;
    color: white;
    transition: all 0.3s ease;
}

.view-options .btn:hover,
.view-options .btn.active {
    background: #1e5f8f;
    border-color: #1e5f8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 119, 177, 0.3);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd700;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-content {
    padding: 1.5rem;
}

.video-category {
    margin-bottom: 0.5rem;
}

.category-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-title {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-title a:hover {
    color: #667eea;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-left {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-right {
    display: flex;
    gap: 0.5rem;
}

.meta-right .btn {
    border-radius: 8px;
    font-size: 0.8rem;
    background: #2577B1;
    border-color: #2577B1;
    color: white;
    transition: all 0.3s ease;
}

.meta-right .btn:hover {
    background: #1e5f8f;
    border-color: #1e5f8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 119, 177, 0.3);
}

/* عرض القائمة */
.videos-grid.list-view {
    grid-template-columns: 1fr;
}

.videos-grid.list-view .video-card {
    display: flex;
    height: 200px;
}

.videos-grid.list-view .video-thumbnail {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.videos-grid.list-view .video-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* عدم وجود نتائج */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* Modal الفيديو */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.video-player-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-placeholder {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .videos-grid.list-view .video-card {
        flex-direction: column;
        height: auto;
    }
    
    .videos-grid.list-view .video-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }
} 