/* ==========================================================================
   Tutorials (VideoHub) — styles layered on top of the main website theme.
   Loaded only on tutorials.php and watch.php so it never affects other pages.
   ========================================================================== */

:root {
    --vh-navy: #0f1e3d;
    --vh-blue: #667eea;
    --vh-blue-dark: #5a6fd6;
}

/* Hero band ---------------------------------------------------------------- */
.tutorial-hero {
    background:
        radial-gradient(1200px 380px at 80% -10%, rgba(102, 126, 234, 0.18), transparent 60%),
        linear-gradient(180deg, #eef2ff 0%, #f8f9fc 100%);
    border-bottom: 1px solid #e9ecf3;
}

.tutorial-hero h1 {
    color: var(--vh-navy);
    letter-spacing: -0.02em;
}

.tutorial-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid #e3e7f0;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
}

/* Category pills ----------------------------------------------------------- */
.category-pill {
    border-radius: 999px !important;
    font-weight: 500;
}

/* Video cards -------------------------------------------------------------- */
.video-card {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 30, 61, 0.12);
    border-color: #dfe3ea;
}

.video-card .thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(15, 30, 61, 0.05);
    overflow: hidden;
}

.video-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .thumb-wrap img {
    transform: scale(1.04);
}

.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 61, 0.2);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--vh-navy);
}

.category-badge {
    background: #eef2ff;
    color: var(--vh-blue-dark);
    font-weight: 600;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0.3em 0.7em;
}

/* Watch page --------------------------------------------------------------- */
.ratio iframe {
    border: 0;
}

.related-item {
    transition: background 0.18s ease;
    border-radius: 12px;
    padding: 0.35rem;
}

.related-item:hover {
    background: #f4f6fb;
}

/* Empty state -------------------------------------------------------------- */
.empty-state {
    background: #fff;
    border: 1px dashed #d7dbe3;
    border-radius: 14px;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Utilities ---------------------------------------------------------------- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
