/* ==========================================================================
   ADMIN VIDEO CARDS — REPLICATED FROM CREATOR PORTAL
   ========================================================================== */

/* ==================== VIDEO GRID ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==================== VIDEO CARD (Creator Portal Style) ==================== */
.ops-video-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.ops-video-card:hover {
    border-color: var(--accent, #FF4D8D);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 77, 141, 0.15);
}

/* Rank Badge */
.ops-video-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent, #FF4D8D);
    color: white;
    font-size: 11px;
    font-weight: 700;
    font-family: 'General Sans', sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* Thumbnail Area */
.ops-video-thumb {
    position: relative;
    aspect-ratio: 9 / 12;
    background: linear-gradient(135deg, var(--bg-hover, #F5F3F0), var(--bg-input, #ebe8e4));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.ops-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Button */
.ops-video-play {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 77, 141, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.9;
    transition: all 0.2s;
    z-index: 1;
}

.ops-video-card:hover .ops-video-play {
    transform: scale(1.1);
    opacity: 1;
}

/* Video Body */
.ops-video-body {
    padding: 14px;
    text-align: center;
}

.ops-video-title {
    font-size: 12px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    color: var(--text-primary, #1A1B3A);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ops-video-creator {
    font-size: 11px;
    font-family: 'General Sans', sans-serif;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 12px;
}

.ops-video-brand {
    background: var(--bg-input, #F5F3F0);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 10px;
}

/* Metrics Row */
.ops-video-metrics {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.ops-video-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ops-video-value {
    font-size: 15px;
    font-weight: 700;
    font-family: 'General Sans', sans-serif;
    color: var(--text-primary, #1A1B3A);
}

.ops-video-label {
    font-size: 10px;
    font-family: 'General Sans', sans-serif;
    color: var(--text-muted, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* CTA Button */
.ops-video-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--accent, #FF4D8D);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    transition: all 0.2s;
}

.ops-video-btn:hover {
    background: var(--accent-hover, #FF6FA3);
}

/* ==================== VIDEO HOVER OVERLAY ==================== */
.ops-video-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ops-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ops-video-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ops-video-overlay .loading {
    color: white;
    font-size: 13px;
    font-family: 'General Sans', sans-serif;
}

/* Mute Button */
.ops-video-mute {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    border: none;
}

.ops-video-mute:hover {
    background: rgba(255, 77, 141, 0.8);
}

/* ==================== SECTION HEADERS ==================== */
.video-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.section-header:hover {
    border-color: var(--accent, #FF4D8D);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.section-header__icon {
    font-size: 1.5rem;
}

.section-header__info {
    flex: 1;
}

.section-header__title {
    font-size: 14px;
    font-weight: 700;
    font-family: 'General Sans', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header__subtitle {
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    color: var(--text-muted, #9ca3af);
    margin-top: 2px;
}

/* Section header color variants */
.section-header--hot .section-header__title,
.text-hot {
    color: var(--accent, #FF4D8D) !important;
}

.section-header--rising .section-header__title,
.text-rising {
    color: var(--success, #34D399) !important;
}

.section-header--gold .section-header__title,
.text-gold {
    color: var(--secondary, #7C5CFC) !important;
}

.section-header--purple .section-header__title,
.text-purple {
    color: var(--secondary, #7C5CFC) !important;
}

.section-header__count {
    font-size: 13px;
    font-weight: 700;
    font-family: 'General Sans', sans-serif;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--bg-input, #F5F3F0);
    color: var(--text-secondary, #4b5563);
}

.section-header__count--hot {
    background: rgba(255, 77, 141, 0.12);
    color: var(--accent, #FF4D8D);
}

.section-header__count--rising {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success, #34D399);
}

.section-header__count--gold,
.section-header__count--purple {
    background: rgba(124, 92, 252, 0.12);
    color: var(--secondary, #7C5CFC);
}

.section-header__toggle {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    transition: transform 0.2s ease;
}

.section-header.expanded .section-header__toggle {
    transform: rotate(90deg);
}

/* ==================== SECTION CONTENT ==================== */
.section-content {
    display: none;
    padding: 20px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    animation: slideDown 0.2s ease;
}

.section-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== DISCORD COPY BUTTONS ==================== */
.btn-discord-copy {
    font-size: 12px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--bg-input, #F5F3F0);
    color: var(--text-secondary, #4b5563);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-discord-copy:hover {
    background: var(--accent, #FF4D8D);
    border-color: var(--accent, #FF4D8D);
    color: white;
}

/* ==================== EFFICIENCY CARDS ==================== */
.ops-efficiency-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ops-efficiency-card:hover {
    border-color: var(--accent, #FF4D8D);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ops-efficiency-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ops-efficiency-card__name {
    font-size: 14px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    color: var(--text-primary, #1A1B3A);
}

.ops-efficiency-card__brand {
    font-size: 10px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.ops-efficiency-card__rate {
    text-align: right;
}

.ops-efficiency-card__rate-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'General Sans', sans-serif;
    color: var(--success, #34D399);
}

.ops-efficiency-card__rate-label {
    font-size: 10px;
    font-family: 'General Sans', sans-serif;
    color: var(--text-muted, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ops-efficiency-card__stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    color: var(--text-secondary, #4b5563);
}

.ops-efficiency-card__stat-label {
    color: var(--text-muted, #9ca3af);
}

.ops-efficiency-card__stat-value {
    font-weight: 600;
}

.ops-efficiency-card__stat-value--success {
    color: var(--success, #34D399);
}

/* ==================== EMPTY STATES ==================== */
.ops-videos-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted, #9ca3af);
    font-family: 'General Sans', sans-serif;
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] .ops-video-card {
    background: var(--bg-card, #191b32);
    border-color: var(--border, #2d3050);
}

[data-theme="dark"] .ops-video-thumb {
    background: linear-gradient(135deg, var(--bg-elevated, #1e2039), var(--bg-input, #242640));
}

[data-theme="dark"] .ops-video-brand {
    background: var(--bg-elevated, #1e2039);
}

[data-theme="dark"] .section-header,
[data-theme="dark"] .section-content {
    background: var(--bg-card, #191b32);
    border-color: var(--border, #2d3050);
}

[data-theme="dark"] .ops-efficiency-card {
    background: var(--bg-card, #191b32);
    border-color: var(--border, #2d3050);
}
