/**
 * Bonus Hunter Live Replays - Styles
 * by Devsviluppo
 * Style: CrazyTimeBonus.it Dark/Gold Theme
 */

/* CSS Variables */
:root {
    --bh-primary: #D4AF37;
    --bh-primary-hover: #F4CF57;
    --bh-secondary: #8B7355;
    --bh-dark: #0a0a0f;
    --bh-card-bg: #12121a;
    --bh-card-border: #1f1f2e;
    --bh-text: #ffffff;
    --bh-text-muted: #9ca3af;
    --bh-gradient: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%);
    --bh-red: #ef4444;
    --bh-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Wrapper */
.bh-replays-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== HEADER SECTION ==================== */
.bh-header-section {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border: 1px solid var(--bh-card-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.bh-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: var(--bh-gradient);
    border-radius: 0 0 10px 10px;
}

.bh-header-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: var(--bh-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.bh-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bh-text);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.bh-header-title span {
    background: var(--bh-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bh-header-description {
    font-size: 1.1rem;
    color: var(--bh-text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.bh-header-description strong {
    color: var(--bh-primary);
}

.bh-header-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.bh-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--bh-card-border);
}

.bh-info-icon {
    font-size: 1.3rem;
}

.bh-info-item span:last-child {
    color: var(--bh-text);
    font-weight: 500;
}

.bh-header-cta {
    display: inline-block;
    background: var(--bh-gradient);
    color: var(--bh-dark) !important;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: var(--bh-glow);
}

.bh-header-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--bh-dark) !important;
}

/* ==================== GRID LAYOUT ==================== */
.bh-replays-grid {
    display: grid;
    gap: 25px;
}

.bh-columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.bh-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bh-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .bh-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bh-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .bh-columns-2,
    .bh-columns-3 {
        grid-template-columns: 1fr;
    }
    
    .bh-header-section {
        padding: 30px 20px;
    }
    
    .bh-header-title {
        font-size: 1.6rem;
    }
    
    .bh-header-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .bh-info-item {
        justify-content: center;
    }
}

/* ==================== CARD STYLES ==================== */
.bh-replay-card {
    background: var(--bh-card-bg);
    border: 1px solid var(--bh-card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bh-replay-card:hover {
    transform: translateY(-5px);
    border-color: var(--bh-primary);
    box-shadow: var(--bh-glow);
}

/* Thumbnail */
.bh-replay-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bh-dark);
}

.bh-replay-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bh-replay-card:hover .bh-replay-thumbnail img {
    transform: scale(1.05);
}

.bh-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-thumb-placeholder::after {
    content: '🎬';
    font-size: 3rem;
    opacity: 0.3;
}

/* Overlay badges */
.bh-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.bh-replay-badge {
    background: var(--bh-red);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.bh-duration-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Card Content */
.bh-replay-content {
    padding: 20px;
}

.bh-replay-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bh-replay-date {
    font-size: 0.9rem;
    color: var(--bh-text-muted);
    margin-bottom: 12px;
}

.bh-replay-topics {
    font-size: 0.9rem;
    color: var(--bh-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Watch Button */
.bh-watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--bh-gradient);
    color: var(--bh-dark) !important;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bh-watch-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--bh-glow);
    color: var(--bh-dark) !important;
}

.bh-watch-btn svg {
    flex-shrink: 0;
}

/* ==================== NO REPLAYS MESSAGE ==================== */
.bh-no-replays {
    text-align: center;
    padding: 60px 30px;
    background: var(--bh-card-bg);
    border: 1px dashed var(--bh-card-border);
    border-radius: 16px;
    color: var(--bh-text-muted);
    font-size: 1.1rem;
}

/* ==================== SINGLE REPLAY ==================== */
.bh-single-replay {
    max-width: 800px;
    margin: 30px auto;
}

/* ==================== VIDEO EMBED CONTAINER ==================== */
.bh-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.bh-video-embed {
    aspect-ratio: 16/9;
    min-height: 300px;
}

.bh-video-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.bh-close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
}

.bh-close-video:hover {
    background: var(--bh-red);
}

/* ==================== PLAY OVERLAY ==================== */
.bh-clickable {
    cursor: pointer;
}

.bh-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bh-replay-thumbnail.bh-clickable:hover .bh-play-overlay {
    opacity: 1;
}

.bh-play-button {
    width: 80px;
    height: 80px;
    background: var(--bh-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s ease;
}

.bh-replay-thumbnail.bh-clickable:hover .bh-play-button {
    transform: scale(1.1);
}

.bh-play-button svg {
    margin-left: 5px;
}

/* ==================== TELEGRAM EMBED (fallback) ==================== */
.bh-replay-embed {
    background: #000;
    min-height: 300px;
    position: relative;
}

.bh-replay-embed iframe {
    width: 100% !important;
    border: none;
}

/* ==================== RESPONSIVE FIXES ==================== */
@media (max-width: 480px) {
    .bh-replays-wrapper {
        padding: 10px;
    }
    
    .bh-replay-content {
        padding: 15px;
    }
    
    .bh-replay-title {
        font-size: 1rem;
    }
    
    .bh-watch-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .bh-header-cta {
        width: 100%;
        text-align: center;
    }
}

/* ==================== DARK MODE ALREADY DEFAULT ==================== */
/* This theme is already dark, no light mode needed */
