:root {
    --bg-page: #f4f7fb;
    --paper-white: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #95a5a6;
    
    --brand-turquoise: #1abc9c;
    --brand-orange: #ff9f43;
    --brand-pistachio: #2ecc71;
    --brand-red: #ff5252;
    --brand-blue: #3498db;
    
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --card-radius: 20px;
}

body.light-theme {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-weight: 800;
}

/* Header & Footer */
.app-header {
    background: var(--paper-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 2px solid rgba(26, 188, 156, 0.1);
}
.app-footer {
    background: transparent;
    border-top: 2px dashed rgba(0,0,0,0.05);
}

.logo-wrapper {
    display: block;
    position: relative;
    background-image: url('../images/sprite.png');
    background-repeat: no-repeat;
    width: 234px;  
    height: 92px;   

    strong {
        position: absolute;
        right: 0px;
        bottom: 10px;
        color: #737373;
        font-size: 13px;
        text-transform: uppercase;
    }
}

.nav-hover {
    color: var(--text-muted); font-weight: 700; padding: 10px 15px !important;
    border-radius: 12px; transition: all 0.3s;
}
.nav-hover:hover {
    background: rgba(26, 188, 156, 0.1); color: var(--brand-turquoise);
}

/* Base UI Components */
.soft-card {
    background: var(--paper-white);
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.soft-card:hover {
    box-shadow: var(--hover-shadow);
}
.paper-panel {
    background: var(--paper-white);
    border-radius: var(--card-radius);
    padding: 3rem;
    box-shadow: var(--soft-shadow);
}

/* Animations */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-content { animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Category Cards */
.category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; cursor: pointer; text-align: center;
    height: 100%; position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-8px); }

/* Playful Color Variants */
.color-variant-1 { border-bottom: 5px solid var(--brand-turquoise); }
.color-variant-1 .cat-icon { color: var(--brand-turquoise); }
.color-variant-2 { border-bottom: 5px solid var(--brand-orange); }
.color-variant-2 .cat-icon { color: var(--brand-orange); }
.color-variant-3 { border-bottom: 5px solid var(--brand-blue); }
.color-variant-3 .cat-icon { color: var(--brand-blue); }
.color-variant-4 { border-bottom: 5px solid var(--brand-red); }
.color-variant-4 .cat-icon { color: var(--brand-red); }

.cat-icon {
    font-size: 3.5rem; margin-bottom: 15px; display: inline-block;
    transition: transform 0.3s;
}
.category-card:hover .cat-icon { transform: scale(1.15) rotate(-5deg); }
.category-name { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }

/* Hero Area */
.hero-box {
    background: linear-gradient(135deg, var(--brand-turquoise), #48dbfb);
    color: white; border-radius: var(--card-radius); padding: 50px 40px;
    box-shadow: 0 15px 30px rgba(26, 188, 156, 0.2);
}

/* Leaderboard */
.medal-item { display: flex; align-items: center; padding: 12px 20px; border-radius: 15px; margin-bottom: 10px; background: var(--paper-white); border: 1px solid rgba(0,0,0,0.02);}
.medal-icon { font-size: 1.5rem; width: 40px; text-align: center; margin-right: 15px; }
.medal-gold { color: #f1c40f; filter: drop-shadow(0 2px 4px rgba(241,196,15,0.4)); }
.medal-silver { color: #bdc3c7; filter: drop-shadow(0 2px 4px rgba(189,195,199,0.4)); }
.medal-bronze { color: #cd7f32; filter: drop-shadow(0 2px 4px rgba(205,127,50,0.4)); }

.leaderboard-name { flex-grow: 1; font-weight: 700; font-size: 1.1rem;}
.leaderboard-score { font-weight: 900; color: var(--brand-turquoise); font-size: 1.1rem;}

.leaderboard-strip {
    display: flex; align-items: center; padding: 10px 20px;
    border-radius: 12px; margin-bottom: 8px;
    background: rgba(0,0,0,0.02);
}
.leaderboard-strip:nth-child(even) { background: rgba(0,0,0,0.04); }
.lb-rank { width: 40px; font-weight: 800; color: var(--text-muted); text-align: center; margin-right: 15px;}

/* Arena / Quiz */
.arena-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.stat-pill { background: #fff; padding: 10px 25px; border-radius: 30px; box-shadow: var(--soft-shadow); font-weight: 800; }
.stat-pill i { margin-right: 8px; }

/* Friendly SVG Timer */
.timer-container { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.timer-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.timer-bg { fill: none; stroke: rgba(0,0,0,0.05); stroke-width: 8; }
.timer-progress { fill: none; stroke: var(--brand-pistachio); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s ease; }
.timer-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; font-weight: 900; color: var(--brand-pistachio); }
.timer-container.warning .timer-progress { stroke: var(--brand-orange); }
.timer-container.warning .timer-text { color: var(--brand-orange); }
.timer-container.danger .timer-progress { stroke: var(--brand-red); }
.timer-container.danger .timer-text { color: var(--brand-red); }

/* Quiz Elements */
.question-content { font-size: 1.7rem; color: var(--text-main); font-weight: 700; line-height: 1.5; margin: 2rem 0; }
.question-media img { max-height: 250px; border-radius: 12px; box-shadow: var(--soft-shadow); }

/* Choice Buttons */
.options-grid { display: grid; gap: 15px; }
.choice-btn {
    background: var(--paper-white); border: 2px solid rgba(0,0,0,0.05);
    border-radius: 15px; padding: 20px 25px; font-size: 1.2rem; font-weight: 700;
    color: var(--text-main); text-align: left; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex; align-items: center; justify-content: space-between;
}
.choice-btn:hover {
    transform: scale(1.02); border-color: var(--brand-blue); box-shadow: 0 8px 15px rgba(52, 152, 219, 0.15);
}
.choice-btn.selected {
    background: rgba(52, 152, 219, 0.05); border-color: var(--brand-blue);
}
.choice-btn.correct {
    background: var(--brand-pistachio); border-color: var(--brand-pistachio); color: white;
}
.choice-btn.wrong {
    background: var(--brand-red); border-color: var(--brand-red); color: white;
}
.choice-btn input[type="radio"] { display: none; }
.hidden-choice { opacity: 0; pointer-events: none; position: absolute; visibility: hidden; }

/* Jokers */
.joker-panel { display: flex; gap: 15px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-joker {
    background: var(--paper-white); border: 2px solid transparent; border-radius: 15px;
    padding: 15px 30px; font-size: 1.2rem; font-weight: 800; cursor: pointer;
    box-shadow: var(--soft-shadow); transition: all 0.2s; display: flex; align-items: center; gap: 10px;
    flex: 1 1 auto; justify-content: center;
}
.btn-joker.half { color: var(--brand-blue); }
.btn-joker.pass { color: var(--brand-orange); }
.btn-joker:hover:not(:disabled) { transform: translateY(-3px); }
.btn-joker.half:hover:not(:disabled) { border-color: var(--brand-blue); background: rgba(52, 152, 219, 0.05); }
.btn-joker.pass:hover:not(:disabled) { border-color: var(--brand-orange); background: rgba(255, 159, 67, 0.05); }
.btn-joker:disabled { background: #f8f9fa; color: #ced4da; box-shadow: none; cursor: not-allowed; }

/* Overlay Result */
.overlay-blur {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: none; pointer-events: none;
}
.overlay-blur.active { opacity: 1; pointer-events: all;}
.result-card { text-align: center; min-width: 450px; animation: slideInUp 0.5s ease-out; }
.result-icon { font-size: 6rem; margin-bottom: 20px; }
.result-success .result-icon { color: var(--brand-pistachio); }
.result-fail .result-icon { color: var(--brand-red); }
.result-timeout .result-icon { color: var(--brand-orange); }

.btn-proceed {
    background: var(--brand-turquoise); color: white; border: none; padding: 15px 40px;
    border-radius: 30px; font-size: 1.1rem; font-weight: 800; box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
    transition: all 0.2s;
}
.btn-proceed:hover { transform: scale(1.05); background: #16a085; color: white;}

/* =====================================================
   Ad Unit Styles (Legacy ASPX uyumlu)
   ===================================================== */

/* Header Banner (728x90) */
.banner728 {
    width: 100%;
    text-align: center;
    margin: 0 auto 20px auto;
    min-height: 90px;
}
.banner728In {
    display: inline-block;
    text-align: center;
}

/* Sidebar Banner (300x250) */
.banner#milliyet_mizah_300x250 {
    margin-bottom: 20px;
}
.ad-sidebar-wrapper {
    position: sticky;
    top: 100px;
}

/* PageSkin Sol & Sağ (120x600) */
.pageskin-wrapper {
    width: 100%;
    display: block;
    top: 0;
    z-index: 10000;
    pointer-events: none;
}
.pageskin-container {
    width: 1116px;
    margin: auto;
    position: relative;
    display: block;
    clear: both;

    @media (min-width: 1400px) {
        width: 1296px;
    }
}
.pageskin-left {
    right: calc(100% + 20px);
    position: absolute;
    top: 0;
    z-index: 0;
    pointer-events: all;
}
.pageskin-right {
    left: calc(100% + 20px);
    position: absolute;
    top: 0;
    z-index: 0;
    pointer-events: all;
}

/* Responsive: Küçük ekranlarda PageSkin gizle */
@media (max-width: 1260px) {
    .pageskin-wrapper {
        display: none;
    }
}

/* Responsive: Mobilde header banner küçült */
@media (max-width: 768px) {
    .banner728 {
        min-height: 60px;
        overflow: hidden;
    }
}