﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface2: #1c1c1c;
    --gold: #c9a84c;
    --gold-light: #e8cc7a;
    --red: #c0392b;
    --text: #e8e8e8;
    --text-muted: #888;
    --card-w: 260px;
    --card-h: 160px;
    --radius: 6px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.home-container {
    padding: 40px 0 80px;
}

.vc-section {
    margin-bottom: 48px;
}

.vc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 14px;
}

.vc-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.03em;
}

    .vc-section-title::after {
        content: '';
        display: block;
        width: 32px;
        height: 2px;
        background: var(--gold);
        margin-top: 6px;
        border-radius: 2px;
    }

    .vc-section-title:has(.vc-title-link)::after {
        display: none;
    }

.vc-arrows {
    display: flex;
    gap: 8px;
}

.vc-arrow {
    background: var(--surface2);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}

    .vc-arrow:hover {
        background: var(--gold);
        color: #000;
        border-color: var(--gold);
    }

/* Row */
.vc-row-wrap {
    position: relative;
    padding: 0 40px;
}

.vc-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    align-items: flex-start;
    flex-wrap: nowrap;
    height: var(--card-h);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .vc-row::-webkit-scrollbar {
        display: none;
    }

/* Card */
.vc-card {
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    height: var(--card-h);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--surface2);
    transition: transform var(--transition), box-shadow var(--transition);
}

    .vc-card:hover {
        transform: scale(1.06);
        box-shadow: 0 8px 32px rgba(201,168,76,0.22), 0 2px 8px rgba(0,0,0,0.6);
        z-index: 10;
    }

    .vc-card.playing {
        box-shadow: 0 0 0 2px var(--gold);
        cursor: default;
    }

        .vc-card.playing,
        .vc-card.playing:hover {
            transform: none !important;
            flex: 0 0 var(--card-w) !important;
            width: var(--card-w) !important;
            height: var(--card-h) !important;
        }

.vc-thumb-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.vc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter var(--transition);
}

.vc-card:hover .vc-thumb {
    filter: brightness(0.5);
}

.vc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition);
}

.vc-card:hover .vc-overlay {
    opacity: 1;
}

.vc-play-icon {
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.vc-card-title {
    font-size: 0.78rem;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    max-height: 3.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* Player inside card */
.vc-player-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

    .vc-player-inner iframe {
        width: 100%;
        height: 100%;
        display: block;
        border: none;
    }

.vc-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 30;
}

    .vc-close-btn:hover {
        background: var(--red);
        border-color: var(--red);
    }

/* ================================================
   FAVORITE BUTTON — פינה שמאלית תחתונה של הכרטיסייה
   ================================================ */
.vc-card .favorite-btn {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity var(--transition);
    line-height: 1;
    user-select: none;
}

.vc-card:hover .favorite-btn,
.vc-card.playing .favorite-btn {
    opacity: 1;
}

/* ================================================
   INFO BUTTON
   ================================================ */
.vc-info-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(0,255,255,0.35);
    color: #5af7ff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.75;
    transition: opacity 0.2s ease, background 0.2s ease;
}

    .vc-info-btn:hover {
        opacity: 1;
        background: rgba(0,255,255,0.18);
    }

/* ================================================
   INFO POPUP — זהה ל-videoGrid.css
   ================================================ */
.video-hover-card {
    position: fixed;
    width: 300px;
    max-width: 92%;
    background: rgba(10, 25, 32, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(0,255,255,0.28);
    box-shadow: 0 0 22px rgba(0,255,255,0.25), inset 0 0 35px rgba(0,255,255,0.18), 0 8px 28px rgba(0,0,0,0.55);
    color: #dffaff;
    font-size: 14px;
    line-height: 1.45;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

    .video-hover-card.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

.hover-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #8ffbff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,255,255,0.45);
    padding-right: 18px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hover-card-text {
    font-size: 13px;
    white-space: pre-line;
    opacity: 0.9;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hover-card-empty {
    font-size: 13px;
    opacity: 0.55;
    font-style: italic;
}

.video-hover-card.popup-desktop {
    max-height: 70vh;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,255,0.3) transparent;
}

    .video-hover-card.popup-desktop.expanded {
        overflow-y: auto;
    }

    .video-hover-card.popup-desktop::-webkit-scrollbar {
        width: 4px;
    }

    .video-hover-card.popup-desktop::-webkit-scrollbar-thumb {
        background: rgba(0,255,255,0.3);
        border-radius: 4px;
    }

.video-hover-card.popup-mobile {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) translateY(6px);
    width: 88vw;
    max-width: 420px;
    max-height: 75vh;
    overflow-y: hidden;
}

    .video-hover-card.popup-mobile.visible {
        transform: translate(-50%, -50%) translateY(0);
        overflow-y: auto;
    }

    .video-hover-card.popup-mobile::-webkit-scrollbar {
        width: 4px;
    }

    .video-hover-card.popup-mobile::-webkit-scrollbar-thumb {
        background: rgba(0,255,255,0.3);
        border-radius: 4px;
    }

.info-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

    .info-popup-close:hover {
        opacity: 1;
    }

.info-popup-inner {
    padding-right: 18px;
}

.show-more-btn {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    text-shadow: 0 0 8px rgba(0,255,255,0.4);
}

    .show-more-btn:hover {
        color: #9affff;
    }

.vc-error {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 600px) {
    :root {
        --card-w: 200px;
        --card-h: 125px;
    }

    .vc-section-header,
    .vc-row-wrap {
        padding: 0 16px;
    }

    .vc-section-title {
        font-size: 1.1rem;
    }
}

/* ================================================
   PLAY ALL + TITLE LINK — תוספות
   ================================================ */

.vc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.vc-playall-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.vc-pa-btn {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: #5af7ff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

    .vc-pa-btn:hover {
        background: rgba(0, 255, 255, 0.18);
    }

    .vc-pa-btn.vc-pa-stop {
        background: rgba(192, 57, 43, 0.2);
        border-color: #c0392b;
        color: #e74c3c;
    }

        .vc-pa-btn.vc-pa-stop:hover {
            background: rgba(192, 57, 43, 0.35);
        }

.vc-title-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

    .vc-title-link:hover {
        color: var(--gold-light);
        text-decoration: none;
    }

@media (max-width: 600px) {
    .vc-header-left {
        gap: 8px;
    }

    .vc-pa-btn {
        padding: 4px 9px;
        font-size: 0.72rem;
    }
}

/* ── Colored letters on hover ── */
.vc-prefix-letter {
    transition: color 0.3s ease;
}

.vc-title-link:hover .vc-letter-0,
.vc-section-title:hover .vc-letter-0 {
    color: #ff6b6b;
}

.vc-title-link:hover .vc-letter-1,
.vc-section-title:hover .vc-letter-1 {
    color: #ffa94d;
}

.vc-title-link:hover .vc-letter-2,
.vc-section-title:hover .vc-letter-2 {
    color: #ffe066;
}

.vc-title-link:hover .vc-letter-3,
.vc-section-title:hover .vc-letter-3 {
    color: #69db7c;
}

.vc-title-link:hover .vc-letter-4,
.vc-section-title:hover .vc-letter-4 {
    color: #4dabf7;
}

.vc-title-link:hover .vc-letter-5,
.vc-section-title:hover .vc-letter-5 {
    color: #748ffc;
}

.vc-title-link:hover .vc-letter-6,
.vc-section-title:hover .vc-letter-6 {
    color: #da77f2;
}

.vc-title-link:hover .vc-letter-7,
.vc-section-title:hover .vc-letter-7 {
    color: #f783ac;
}

.vc-title-link:hover .vc-letter-8,
.vc-section-title:hover .vc-letter-8 {
    color: #ff6b6b;
}
