﻿/* ============================================
       استایل‌های اختصاصی صفحه ویدیوهای فرااکسیژن
       ============================================ */

/* هدر بخش ویدیوها */
.videos-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .videos-header h1 {
        color: white;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .videos-header p {
        color: rgba(255,255,255,0.9);
        font-size: 15px;
        max-width: 700px;
        margin: 0 auto;
    }

/* دسته‌بندی ویدیوها */
.video-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0 10px;
}

.video-category-card {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .video-category-card:hover {
        transform: translateY(-5px);
    }

    .video-category-card a {
        text-decoration: none;
        color: inherit;
    }

.video-category-img {
    width: 85px;
    height: 85px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.video-category-card:hover .video-category-img {
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(220,53,69,0.2);
}

.video-category-img img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.video-category-title {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    display: block;
    line-height: 1.4;
}

.video-category-card:hover .video-category-title {
    color: #dc3545;
}

/* عنوان بخش ویدیوها */
.videos-section-title {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

    .videos-section-title h3 {
        font-size: 24px;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
    }

        .videos-section-title h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 60px;
            height: 3px;
            background: #dc3545;
            border-radius: 3px;
        }

    .videos-section-title .video-count {
        color: #dc3545;
        font-size: 18px;
        margin-right: 8px;
    }

/* گرید ویدیوها */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* کارت ویدیو */
.video-item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

    .video-item-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px rgba(220,53,69,0.15);
        border-color: #dc3545;
    }

/* کانتینر تصویر بند‌انگشتی ویدیو */
.video-thumb-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item-card:hover .video-thumb-img {
    transform: scale(1.05);
}

/* دکمه پخش قرمز */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 55px;
    height: 55px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 5;
}

    .video-play-btn svg {
        width: 24px;
        height: 24px;
        fill: white;
        margin-right: 3px;
    }

.video-thumb-wrapper:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

    .video-thumb-wrapper:hover .video-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.1);
        background: #c82333;
    }

/* اطلاعات ویدیو */
.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #2d3748;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
}

.video-views {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .video-views i {
        color: #dc3545;
    }

.video-duration {
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 20px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .video-date i {
        color: #dc3545;
    }

/* بدون ویدیو */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 30px 0;
}

    .no-videos i {
        font-size: 60px;
        color: #cbd5e0;
        margin-bottom: 20px;
    }

    .no-videos p {
        font-size: 18px;
        color: #4a5568;
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .videos-header {
        padding: 20px 15px;
    }

        .videos-header h1 {
            font-size: 22px;
        }

    .videos-section-title h3 {
        font-size: 18px;
    }

    .video-categories-grid {
        gap: 12px;
    }

    .video-category-img {
        width: 70px;
        height: 70px;
    }

        .video-category-img img {
            width: 55px;
            height: 55px;
        }

    .video-category-title {
        font-size: 11px;
    }

    .video-title {
        font-size: 13px;
    }

    .video-play-btn {
        width: 45px;
        height: 45px;
    }

        .video-play-btn svg {
            width: 20px;
            height: 20px;
        }
}
