/* ── Recording Vault – Frontend Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Mulish:wght@400;500;600&display=swap');

/* ── Root Variables ── */
.rv-frontend {
    --rv-red:      #c0392b;
    --rv-red-dk:   #a93226;
    --rv-dark:     #1a1a2e;
    --rv-mid:      #2d2d44;
    --rv-gray:     #6c757d;
    --rv-light:    #f4f6f8;
    --rv-border:   #e1e4e8;
    --rv-radius:   14px;
    --rv-shadow:   0 4px 24px rgba(0,0,0,.10);
    font-family: 'Mulish', sans-serif;
    color: var(--rv-dark);
}

/* ── Search Box ── */
.rv-search-box {
    position: relative;
    margin-bottom: 18px;
}
.rv-search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px 16px 52px;
    font-size: 17px;
    font-family: 'Sora', sans-serif;
    border: 2px solid var(--rv-border);
    border-radius: 50px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    color: var(--rv-dark);
}
.rv-search-box input:focus {
    outline: none;
    border-color: var(--rv-red);
    box-shadow: 0 0 0 4px rgba(192,57,43,.12);
}
.rv-search-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

/* ── Filters Row ── */
.rv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}
.rv-filters select,
.rv-filters input[type="month"] {
    padding: 10px 16px;
    border: 1.5px solid var(--rv-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Mulish', sans-serif;
    color: var(--rv-dark);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}
.rv-filters select:focus,
.rv-filters input[type="month"]:focus {
    border-color: var(--rv-red);
    outline: none;
}
#rv-reset {
    padding: 10px 20px;
    background: var(--rv-light);
    border: 1.5px solid var(--rv-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    color: var(--rv-gray);
    transition: all .2s;
    font-weight: 600;
}
#rv-reset:hover { background: #ffe8e6; border-color: var(--rv-red); color: var(--rv-red); }

/* ── Results count ── */
.rv-results-info {
    font-size: 13px;
    color: var(--rv-gray);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ── Grid ── */
.rv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Card ── */
.rv-card-item {
    background: #fff;
    border-radius: var(--rv-radius);
    border: 1.5px solid var(--rv-border);
    overflow: hidden;
    box-shadow: var(--rv-shadow);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.rv-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(192,57,43,.15);
    border-color: #e8a39e;
}
.rv-card-item.rv-hidden { display: none; }

/* ── Thumbnail ── */
.rv-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--rv-dark);
    cursor: pointer;
    overflow: hidden;
}
.rv-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.rv-thumb:hover img { transform: scale(1.05); }
.rv-thumb-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 48px; color: #fff; background: var(--rv-dark);
}
.rv-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 54px; height: 54px;
    background: rgba(192,57,43,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    transition: background .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.rv-thumb:hover .rv-play-btn {
    background: var(--rv-red);
    transform: translate(-50%,-50%) scale(1.12);
}

/* ── Card Body ── */
.rv-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.rv-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--rv-dark); line-height: 1.4;
    margin: 0;
}
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.rv-tag--speaker { background: #eef2ff; color: #4338ca; }
.rv-tag--event   { background: #fef3c7; color: #92400e; }
.rv-tag--date    { background: #f0fdf4; color: #166534; }
.rv-tag--time    { background: #fdf4ff; color: #7e22ce; }

.rv-card-desc { font-size: 13.5px; color: var(--rv-gray); line-height: 1.6; margin: 0; flex: 1; }

.rv-watch-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--rv-red);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background .2s, transform .15s;
}
.rv-watch-btn:hover { background: var(--rv-red-dk); transform: translateY(-1px); }

/* ── No results ── */
.rv-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--rv-gray);
}
.rv-no-results-icon { font-size: 56px; margin-bottom: 16px; }
.rv-no-results p { font-size: 18px; font-weight: 600; }

/* ── Lightbox ── */
.rv-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.rv-lightbox-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.88);
}
.rv-lightbox-content {
    position: relative; z-index: 1;
    width: 90vw; max-width: 900px;
}
.rv-lightbox-close {
    position: absolute;
    top: -44px; right: 0;
    background: none; border: none;
    color: #fff; font-size: 36px;
    cursor: pointer; line-height: 1;
    transition: opacity .2s;
}
.rv-lightbox-close:hover { opacity: .7; }
.rv-lightbox-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.rv-lightbox-video iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}

/* ── Responsive ── */
@media(max-width:640px){
    .rv-grid { grid-template-columns: 1fr; }
    .rv-search-box input { font-size: 15px; }
    .rv-filters { gap: 8px; }
}
