/* Dövüş Arena - Challenge (Eğlence) Panel Stilleri */
:root {
    --accent: #E10600;
    --accent-hover: #ff1a1a;
    --accent-glow: rgba(225, 6, 0, 0.4);
    --bg-darker: #040404;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(225, 6, 0, 0.35);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- HEADER TRANSPARENCY OVERRIDES --- */
nav {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

nav.scrolled {
    background: rgba(4, 4, 4, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Pull the common hero all the way to the top under the transparent header */
.so-common-hero-section {
    background: #000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    margin-bottom: 40px;
}

.so-hero-inner {
    padding-top: 0 !important; /* Remove the pushing gap so bg goes behind header */
    min-height: 520px !important;
}

.so-hero-dynamic {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* --- HERO WRAPPER --- */
.eglence-hero-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1920 / 934;
    height: 520px;
    border-radius: 0 0 24px 24px; /* Curved bottom edges only */
    border: none;
    background: #000;
}

.eglence-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top;
    background-image: url('../images/challenge/hero.webp');
    z-index: 1;
}

.eglence-hero-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eglence-hero-content svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Common Layout Adjustments */
.eglence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    position: relative;
    z-index: 2;
}

/* Grid Layouts */
.eglence-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.eglence-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 45px;
}

@media (max-width: 900px) {
    .eglence-grid-top, .eglence-grid-bottom {
        grid-template-columns: 1fr;
    }
}

/* Card wrappers */
.challenge-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.challenge-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.challenge-card svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Hover effects for inline SVGs: Change white to red */
.challenge-card:hover svg path[fill="white"],
.challenge-card:hover svg path[fill="#fff"],
.challenge-card:hover svg path[fill="#ffffff"],
.challenge-card:hover svg path[fill="#FFFFFF"],
.challenge-card:hover svg text[fill="white"],
.challenge-card:hover svg text[fill="#fff"],
.challenge-card:hover svg text[fill="#ffffff"],
.challenge-card:hover svg text[fill="#FFFFFF"] {
    fill: var(--accent) !important;
    transition: fill 0.35s ease;
}

/* Specific WebP Dimensions & Backgrounds */

/* 1. MMA Wordle (612x424) */
.mma-wordle {
    aspect-ratio: 612 / 424;
    background-image: url('../images/challenge/mma-wordle.webp');
}

/* 2. MMA Grid (612x424) */
.mma-grid {
    aspect-ratio: 612 / 424;
    background-image: url('../images/challenge/mma-grid.webp');
}

/* 3. Kayıp Parça (612x424) */
.kayıp-parca {
    aspect-ratio: 612 / 424;
    background-image: url('../images/challenge/kay%C4%B1p-parca.webp');
}

/* 4. Shadow Fighter (571x330) */
.shadow-fighter {
    aspect-ratio: 571 / 330;
    background-image: url('../images/challenge/shadow-fighter.webp');
}

/* 5. Blind Comparison (571x330) */
.blind-comparison {
    aspect-ratio: 571 / 330;
    background-image: url('../images/challenge/blind-comparison.webp');
}

/* 6. Procedural Quiz (571x330) */
.procedural-quiz {
    aspect-ratio: 571 / 330;
    background-image: url('../images/challenge/procedural-quiz.webp');
}

/* 7. Challenge Banner (Trivia) (1741x520) */
.challenge-banner {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1741 / 520;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-image: url('../images/challenge/challenge-banner.webp');
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: var(--transition);
    text-decoration: none;
    overflow: hidden;
}

.challenge-banner:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.cb-content-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.cb-title-box h2 {
    font-size: 2.8rem;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin: 0;
}

.cb-title-box h2 span.white {
    color: #ffffff;
}

.cb-title-box h2 span.red {
    color: var(--accent);
    font-style: italic;
    display: block;
}

.cb-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 900;
    color: #10b981;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseG 1.8s infinite;
}

@keyframes pulseG {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cb-action-box {
    display: flex;
    align-items: center;
}

.btn-cb-join {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 15px 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-banner:hover .btn-cb-join {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.6);
}

@media (max-width: 900px) {
    .challenge-banner {
        aspect-ratio: auto;
        height: 320px;
    }
    .cb-content-layer {
        padding: 30px 40px;
        align-items: center;
        text-align: center;
    }
    .cb-status {
        justify-content: center;
    }
}

/* Remove border-radius for the bottom grid cards and their inner SVG rects */
.eglence-grid-bottom .challenge-card {
    border-radius: 0 !important;
}
.eglence-grid-bottom .challenge-card svg rect {
    rx: 0 !important;
    ry: 0 !important;
}

/* 🛰️ LIVE BANNER STYLE */
.so-live-banner {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 100%), url('../images/premium_live_bg.png') center/cover no-repeat;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 35px 45px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(232,0,4,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.slb-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 0, 4, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}
.slb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    position: relative;
}
.slb-left {
    max-width: 70%;
}
.slb-badge {
    background: rgba(232,0,4,0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.slb-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: dotBlink 1.5s infinite;
}
.slb-left h2 {
    font-size: 1.6rem;
    font-weight: 950;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.slb-left p {
    font-size: 0.85rem;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}
.slb-btn {
    background: linear-gradient(135deg, #e80004 0%, #9e0003 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: 950;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(232,0,4,0.5);
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.slb-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
.slb-btn:hover::after {
    left: 100%;
    transition: 0.5s;
}
.slb-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}
.slb-btn i {
    font-size: 0.7rem;
    transition: 0.3s;
}
.slb-btn:hover i {
    transform: translateX(3px);
}

@keyframes dotBlink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

@keyframes pulseGlow {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.2); }
}

@media (max-width: 992px) {
    .so-live-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 25px;
    }
    .slb-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .slb-left {
        max-width: 100%;
    }
    .slb-left h2 {
        font-size: 1.1rem;
    }
    .slb-left p {
        font-size: 0.75rem;
    }
    .slb-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.7rem;
    }
}
