/**
 * Workshop Videos – Grid Styles
 */

/* Wrapper */
.wv-workshop-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ─── Filter Bar ─── */
.wv-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
}

.wv-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
}

.wv-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wv-filter-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}

.wv-filter-select:hover {
    border-color: #9ca3af;
}

.wv-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ─── Grid ─── */
.wv-grid {
    display: grid;
    grid-template-columns: repeat(var(--wv-columns, 3), 1fr);
    gap: 24px;
}

/* ─── Card ─── */
.wv-grid-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.wv-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Thumbnail */
.wv-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1f2937;
}

.wv-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wv-grid-card:hover .wv-card-thumbnail img {
    transform: scale(1.05);
}

.wv-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #374151;
    color: #9ca3af;
}

.wv-card-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Overlays */
.wv-card-play-overlay,
.wv-card-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.wv-grid-card:hover .wv-card-play-overlay,
.wv-grid-card:hover .wv-card-lock-overlay {
    opacity: 1;
}

.wv-card-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.wv-card-play-overlay .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wv-card-lock-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.wv-card-lock-overlay .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Card Content */
.wv-card-content {
    padding: 16px;
}

.wv-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Speaker row with profile pic */
.wv-card-speaker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
}

.wv-card-speaker-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wv-card-speaker {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.wv-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wv-card-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 100px;
}

/* ─── No Results ─── */
.wv-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ─── Loading Spinner ─── */
.wv-loading {
    text-align: center;
    padding: 40px;
}

.wv-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: wv-spin 0.7s linear infinite;
}

@keyframes wv-spin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .wv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wv-grid {
        grid-template-columns: 1fr;
    }

    .wv-filter-bar {
        flex-direction: column;
    }

    .wv-filter-group {
        min-width: 100%;
    }
}
