/**
 * Video Hot — Styling cho trang /video-hot/
 *
 * Scope: .video-hot-archive wrapper để tránh conflict
 * Branding: Dùng CSS vars từ additional.css (--first-main-color: #0D5B2E)
 * Font: Giữ Lexend (kế thừa từ site)
 *
 * @package Flatsome Child - DongNaiMoi
 * @since 1.0.0
 */

/* ============================================================
   ZONE 1: VIDEO HEADER — Gradient banner
   ============================================================ */

.video-hot-archive .vh-header {
    margin: 0 0 0;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #041a0e 0%, #0D5B2E 40%, #0a2e17 100%);
    position: relative;
}

.video-hot-archive .vh-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}

/* Decorative circles */
.video-hot-archive .vh-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.video-hot-archive .vh-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13,91,46,0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.video-hot-archive .vh-header__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Badge */
.video-hot-archive .vh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.video-hot-archive .vh-badge__icon {
    font-size: 8px;
}

.video-hot-archive .vh-header__title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 0 10px;
    line-height: 1.25;
}

.video-hot-archive .vh-header__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0;
    max-width: 520px;
}

/* Play icon decoration */
.video-hot-archive .vh-header__play-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-hot-archive .vh-header__play-icon span {
    color: rgba(255,255,255,0.3);
    font-size: 24px;
    margin-left: 4px;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.video-hot-archive .vh-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 12px;
    color: #999;
}

.video-hot-archive .vh-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.video-hot-archive .vh-breadcrumb a:hover {
    color: #0D5B2E;
}

.video-hot-archive .vh-breadcrumb__sep {
    margin: 0 6px;
    color: #ccc;
}

.video-hot-archive .vh-breadcrumb__current {
    color: #0D5B2E;
    font-weight: 600;
}


/* ============================================================
   ZONE 2: SORTING TABS
   ============================================================ */

.video-hot-archive .vh-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    border-bottom: 1px solid #e8e8e8;
}

.video-hot-archive .vh-tabs__inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.video-hot-archive .vh-tabs__inner::-webkit-scrollbar {
    display: none;
}

.video-hot-archive .vh-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.video-hot-archive .vh-tab:hover {
    color: #0D5B2E;
}

.video-hot-archive .vh-tab--active {
    color: #0D5B2E;
    border-bottom-color: #0D5B2E;
}

.video-hot-archive .vh-tab__icon {
    font-size: 14px;
}


/* ============================================================
   ZONE 3: VIDEO GRID
   ============================================================ */

.video-hot-archive .vh-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ===== VIDEO CARD ===== */

.video-hot-archive .video-card {
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-hot-archive .video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.video-hot-archive .video-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.video-hot-archive .video-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.video-hot-archive .video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-hot-archive .video-card:hover .video-card__img {
    transform: scale(1.03);
}

/* Placeholder when no thumbnail */
.video-hot-archive .video-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D5B2E, #1a8a4a);
    color: rgba(255,255,255,0.4);
    font-size: 32px;
}

/* Play overlay — CSS only */
.video-hot-archive .video-card__thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: rgba(230, 57, 53, 0.85);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.video-hot-archive .video-card:hover .video-card__thumb::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Post info */
.video-hot-archive .video-card__info {
    padding: 14px 16px;
}

.video-hot-archive .video-card__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #0D5B2E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.video-hot-archive .video-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a2e;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-hot-archive .video-card:hover .video-card__title {
    color: #0D5B2E;
}

.video-hot-archive .video-card__meta {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-hot-archive .video-card__views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.video-hot-archive .vh-pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px 40px;
    display: flex;
    justify-content: center;
}

.video-hot-archive .vh-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-hot-archive .vh-pagination li {
    margin: 0;
    padding: 0;
}

.video-hot-archive .vh-pagination a,
.video-hot-archive .vh-pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.video-hot-archive .vh-pagination a {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}

.video-hot-archive .vh-pagination a:hover {
    background: #0D5B2E;
    color: white;
    border-color: #0D5B2E;
}

.video-hot-archive .vh-pagination .current {
    background: #0D5B2E;
    color: white;
}

/* Prev / Next text */
.video-hot-archive .vh-pagination .prev,
.video-hot-archive .vh-pagination .next {
    font-size: 12px;
    padding: 0 14px;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.video-hot-archive .vh-empty {
    max-width: 500px;
    margin: 60px auto 80px;
    text-align: center;
    padding: 0 24px;
}

.video-hot-archive .vh-empty__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.video-hot-archive .vh-empty__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.video-hot-archive .vh-empty__desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.video-hot-archive .vh-empty__desc a {
    color: #0D5B2E;
    font-weight: 600;
    text-decoration: none;
}

.video-hot-archive .vh-empty__desc a:hover {
    text-decoration: underline;
}


/* ============================================================
   RESPONSIVE: TABLET (≤ 992px)
   ============================================================ */

@media (max-width: 992px) {
    .video-hot-archive .vh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .video-hot-archive .vh-header__title {
        font-size: 24px;
    }

    .video-hot-archive .vh-header__play-icon {
        width: 60px;
        height: 60px;
    }

    .video-hot-archive .vh-header__play-icon span {
        font-size: 18px;
    }
}


/* ============================================================
   RESPONSIVE: MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* Header mobile */
    .video-hot-archive .vh-header__inner {
        padding: 24px 16px;
        min-height: auto;
    }

    .video-hot-archive .vh-header__title {
        font-size: 20px;
    }

    .video-hot-archive .vh-header__desc {
        font-size: 12px;
        line-height: 1.55;
    }

    .video-hot-archive .vh-header__play-icon {
        display: none;
    }

    /* Tabs mobile — scroll ngang */
    .video-hot-archive .vh-tabs {
        padding: 0 12px;
    }

    .video-hot-archive .vh-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Grid → List layout */
    .video-hot-archive .vh-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 12px;
    }

    .video-hot-archive .video-card {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .video-hot-archive .video-card:hover {
        transform: none;
        box-shadow: none;
    }

    .video-hot-archive .video-card__link {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 0;
    }

    /* Thumbnail nhỏ bên trái */
    .video-hot-archive .video-card__thumb {
        width: 120px;
        min-width: 120px;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    /* Play overlay luôn hiện trên mobile */
    .video-hot-archive .video-card__thumb::after {
        opacity: 0.85;
        width: 28px;
        height: 28px;
        font-size: 10px;
        padding-left: 2px;
    }

    /* Info bên phải */
    .video-hot-archive .video-card__info {
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .video-hot-archive .video-card__cat {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .video-hot-archive .video-card__title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .video-hot-archive .video-card__meta {
        font-size: 10px;
    }

    /* Pagination mobile */
    .video-hot-archive .vh-pagination {
        padding: 16px 12px 30px;
    }

    .video-hot-archive .vh-pagination a,
    .video-hot-archive .vh-pagination .current {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Breadcrumb mobile */
    .video-hot-archive .vh-breadcrumb {
        padding: 8px 12px;
        font-size: 11px;
    }
}


/* ============================================================
   RESPONSIVE: SMALL MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
    .video-hot-archive .vh-header__inner {
        padding: 20px 14px;
    }

    .video-hot-archive .vh-header__title {
        font-size: 18px;
    }

    .video-hot-archive .vh-badge {
        font-size: 9px;
        padding: 4px 10px;
    }

    .video-hot-archive .video-card__thumb {
        width: 105px;
        min-width: 105px;
    }

    .video-hot-archive .video-card__title {
        font-size: 12px;
    }
}
