﻿/* ============================================
           VIDEOS — صفحه ویدیوهای ریحانو
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
}

/* ============================================
           HEADER
           ============================================ */
.videos-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f5;
}

    .videos-header .title-section {
        display: flex;
        align-items: center;
        gap: 14px;
    }

        .videos-header .title-section .title-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #003366, #0a4d8c);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #F4B400;
            font-size: 1.4rem;
            box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
        }

        .videos-header .title-section h2 {
            font-weight: 800;
            color: #003366;
            margin: 0;
            font-size: 1.4rem;
        }

        .videos-header .title-section small {
            display: block;
            color: #9ca3af;
            font-size: 0.8rem;
            font-weight: 400;
        }

/* ============================================
           CATEGORY TABS
           ============================================ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .category-tabs .tab-btn {
        padding: 8px 22px;
        border: none;
        border-radius: 50px;
        background: transparent;
        color: #6b7280;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    }

        .category-tabs .tab-btn:hover {
            color: #003366;
            background: rgba(0, 51, 102, 0.04);
        }

        .category-tabs .tab-btn.active {
            background: #003366;
            color: #fff;
            box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
        }

        .category-tabs .tab-btn i {
            margin-left: 6px;
        }

/* ============================================
           VIDEOS GRID
           ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: all 0.5s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

    .video-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
        border-color: #F4B400;
    }

    /* ============================================
           VIDEO THUMBNAIL
           ============================================ */
    .video-item .video-thumbnail {
        position: relative;
        height: 200px;
        background: linear-gradient(135deg, #1a1a2e, #003366);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .video-item .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
        }

    .video-item:hover .video-thumbnail img {
        transform: scale(1.05);
    }

    /* Play Button Overlay */
    .video-item .video-thumbnail .play-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .video-item:hover .video-thumbnail .play-overlay {
        background: rgba(0, 0, 0, 0.2);
    }

    .video-item .video-thumbnail .play-overlay .play-btn {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        border: none;
        color: #003366;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.5s cubic-bezier(.34, 1.56, .64, 1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .video-item:hover .video-thumbnail .play-overlay .play-btn {
        transform: scale(1.1);
        background: #F4B400;
        color: #003366;
    }

    /* Video Duration */
    .video-item .video-thumbnail .duration {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        color: #fff;
        padding: 3px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    }

    /* Video Badge */
    .video-item .video-thumbnail .video-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 4px 14px;
        border-radius: 50px;
        font-size: 0.65rem;
        font-weight: 700;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .video-item .video-thumbnail .video-badge.new {
            background: linear-gradient(135deg, #24c06d, #1a9e58);
            color: #fff;
            box-shadow: 0 4px 15px rgba(36, 192, 109, 0.3);
        }

        .video-item .video-thumbnail .video-badge.popular {
            background: linear-gradient(135deg, #F4B400, #d49d00);
            color: #003366;
            box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
        }

        .video-item .video-thumbnail .video-badge.featured {
            background: linear-gradient(135deg, #7e56c6, #5a3a9e);
            color: #fff;
            box-shadow: 0 4px 15px rgba(126, 86, 198, 0.3);
        }

    /* ============================================
           VIDEO INFO
           ============================================ */
    .video-item .video-info {
        padding: 16px 18px 18px;
    }

        .video-item .video-info h4 {
            font-weight: 700;
            color: #003366;
            font-size: 1.05rem;
            margin-bottom: 4px;
        }

        .video-item .video-info .video-description {
            color: #6b7280;
            font-size: 0.9rem;
            line-height: 1.7;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .video-item .video-info .video-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            padding-top: 12px;
            border-top: 1px solid #f0f2f5;
        }

            .video-item .video-info .video-meta .meta-item {
                display: flex;
                align-items: center;
                gap: 6px;
                color: #9ca3af;
                font-size: 0.8rem;
            }

                .video-item .video-info .video-meta .meta-item i {
                    color: #F4B400;
                }

                .video-item .video-info .video-meta .meta-item .views {
                    font-weight: 600;
                    color: #6b7280;
                }

/* ============================================
           FEATURED VIDEO (Large)
           ============================================ */
.featured-video {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.5s ease;
}

    .featured-video:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .featured-video .featured-row {
        display: flex;
        flex-wrap: wrap;
    }

    .featured-video .featured-thumbnail {
        flex: 1.2;
        min-width: 300px;
        height: 340px;
        position: relative;
        background: linear-gradient(135deg, #1a1a2e, #003366);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .featured-video .featured-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-video .featured-thumbnail .play-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.5s ease;
        }

    .featured-video:hover .featured-thumbnail .play-overlay {
        background: rgba(0, 0, 0, 0.15);
    }

    .featured-video .featured-thumbnail .play-overlay .play-btn {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        border: none;
        color: #003366;
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.5s cubic-bezier(.34, 1.56, .64, 1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .featured-video:hover .featured-thumbnail .play-overlay .play-btn {
        transform: scale(1.1);
        background: #F4B400;
        color: #003366;
    }

    .featured-video .featured-thumbnail .duration {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        color: #fff;
        padding: 3px 14px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    }

    .featured-video .featured-thumbnail .featured-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 4px 18px;
        border-radius: 50px;
        background: linear-gradient(135deg, #F4B400, #d49d00);
        color: #003366;
        font-size: 0.7rem;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .featured-video .featured-info {
        flex: 1;
        min-width: 280px;
        padding: 28px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .featured-video .featured-info .featured-label {
            color: #F4B400;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .featured-video .featured-info h3 {
            font-weight: 800;
            color: #003366;
            font-size: 1.5rem;
            margin-bottom: 6px;
        }

        .featured-video .featured-info p {
            color: #6b7280;
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 14px;
        }

        .featured-video .featured-info .featured-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

            .featured-video .featured-info .featured-meta .meta-item {
                display: flex;
                align-items: center;
                gap: 6px;
                color: #9ca3af;
                font-size: 0.85rem;
            }

                .featured-video .featured-info .featured-meta .meta-item i {
                    color: #F4B400;
                }

        .featured-video .featured-info .watch-btn {
            margin-top: 16px;
            padding: 12px 28px;
            background: linear-gradient(135deg, #003366, #0a4d8c);
            color: #fff;
            border: none;
            border-radius: 50px;
            font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 20px rgba(0, 51, 102, 0.2);
            width: fit-content;
        }

            .featured-video .featured-info .watch-btn:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 30px rgba(0, 51, 102, 0.3);
            }

/* ============================================
           FOOTER
           ============================================ */
.videos-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .videos-footer .videos-count {
        color: #6b7280;
        font-size: 0.9rem;
    }

        .videos-footer .videos-count strong {
            color: #003366;
        }

    /* ============================================
           PAGINATION
           ============================================ */
    .videos-footer .pagination {
        display: flex;
        gap: 6px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .videos-footer .pagination li {
            display: inline-block;
        }

            .videos-footer .pagination li a,
            .videos-footer .pagination li span {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 38px;
                height: 38px;
                padding: 0 12px;
                border-radius: 10px;
                border: 1px solid #e5e7eb;
                color: #003366;
                font-weight: 600;
                font-size: 0.85rem;
                text-decoration: none;
                transition: all 0.3s ease;
                background: #fff;
                cursor: pointer;
            }

                .videos-footer .pagination li a:hover {
                    background: #003366;
                    color: #fff;
                    border-color: #003366;
                }

            .videos-footer .pagination li.active span {
                background: #F4B400;
                color: #003366;
                border-color: #F4B400;
            }

/* ============================================
           RESPONSIVE
           ============================================ */
@@media (max-width: 992px) {
    .videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }

    .featured-video .featured-row {
        flex-direction: column;
    }

    .featured-video .featured-thumbnail {
        height: 260px;
        min-width: unset;
    }

    .featured-video .featured-info {
        padding: 20px 24px;
    }

        .featured-video .featured-info h3 {
            font-size: 1.2rem;
        }
}

@@media (max-width: 768px) {
    .videos-header .title-section h2 {
        font-size: 1.1rem;
    }

    .videos-header .title-section .title-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .video-item .video-thumbnail {
        height: 160px;
    }

    .video-item .video-info h4 {
        font-size: 0.95rem;
    }

    .video-item .video-info .video-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }

    .video-item .video-thumbnail .play-overlay .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .category-tabs {
        padding: 8px 12px;
        gap: 6px;
    }

        .category-tabs .tab-btn {
            font-size: 0.8rem;
            padding: 6px 14px;
        }

    .featured-video .featured-thumbnail {
        height: 200px;
    }

    .featured-video .featured-info {
        padding: 16px 18px;
    }

        .featured-video .featured-info h3 {
            font-size: 1rem;
        }

        .featured-video .featured-info p {
            font-size: 0.85rem;
        }

    .videos-footer {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 14px 18px;
    }

    .featured-video .featured-info .watch-btn {
        width: 100%;
        justify-content: center;
    }
}

@@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .video-item .video-thumbnail {
        height: 130px;
    }

    .video-item .video-info {
        padding: 10px 12px 14px;
    }

        .video-item .video-info h4 {
            font-size: 0.85rem;
        }

        .video-item .video-info .video-description {
            display: none;
        }

        .video-item .video-info .video-meta {
            gap: 10px;
            padding-top: 8px;
        }

            .video-item .video-info .video-meta .meta-item {
                font-size: 0.7rem;
            }

    .video-item .video-thumbnail .play-overlay .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .video-item .video-thumbnail .duration {
        font-size: 0.65rem;
        padding: 2px 10px;
    }

    .video-item .video-thumbnail .video-badge {
        font-size: 0.55rem;
        padding: 2px 10px;
        top: 8px;
        right: 8px;
    }

    .category-tabs .tab-btn {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .videos-header {
        padding: 14px 16px;
    }

        .videos-header .title-section .title-icon {
            width: 36px;
            height: 36px;
            font-size: 0.95rem;
        }

        .videos-header .title-section h2 {
            font-size: 0.95rem;
        }

        .videos-header .title-section small {
            font-size: 0.7rem;
        }

    .videos-footer .videos-count {
        font-size: 0.8rem;
    }

    .videos-footer .pagination li a,
    .videos-footer .pagination li span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 8px;
    }

    .featured-video .featured-thumbnail {
        height: 170px;
    }

        .featured-video .featured-thumbnail .play-overlay .play-btn {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }

    .featured-video .featured-info {
        padding: 14px 16px;
    }

        .featured-video .featured-info h3 {
            font-size: 0.95rem;
        }

        .featured-video .featured-info .featured-meta .meta-item {
            font-size: 0.75rem;
        }

        .featured-video .featured-info .watch-btn {
            font-size: 0.85rem;
            padding: 10px 20px;
        }

    .featured-video .featured-thumbnail .featured-badge {
        font-size: 0.6rem;
        padding: 3px 12px;
        top: 8px;
        right: 8px;
    }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #d49d00;
    }
