/* =============================================================
   TARAFTAR.LOL — 👑 TEK GLOBAL TRİBÜN TAHTI STİLLERİ
   Mevcut style.css tasarım sistemiyle %100 uyumlu
   Tüm sınıflar throne- veya quiz- ile başlar
   ============================================================= */

/* ---------- GLOBAL THRONE CARD (ANA SAYFA) ---------- */
.throne-global-section {
    margin-top: 28px;
    margin-bottom: 24px;
}

.throne-global-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    padding: 30px 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-theme);
    position: relative;
    overflow: hidden;
}

.throne-global-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706, #f59e0b);
}

.throne-global-header {
    text-align: center;
    margin-bottom: 24px;
}

.throne-gold-crown {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
    animation: crown-float 3s ease-in-out infinite;
}

@keyframes crown-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.throne-global-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.02em;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.throne-global-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.throne-global-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- PODIUM / GLOBAL TOP 3 LIST ---------- */
.throne-podium {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.throne-podium__empty {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-surface-raised);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.throne-podium__empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.throne-podium__empty-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.throne-podium__empty-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ---------- PODIUM ITEM (1., 2., 3. SIRA) ---------- */
.throne-podium__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, var(--transition-theme);
}

.throne-podium__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 1. Sıra (Gold) */
.throne-item--gold {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, var(--bg-surface-raised) 100%);
    border: 1.5px solid var(--gold);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

/* 2. Sıra (Silver) */
.throne-item--silver {
    border-left: 4px solid var(--silver);
}

/* 3. Sıra (Bronze) */
.throne-item--bronze {
    border-left: 4px solid var(--bronze);
}

.throne-item__rank {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.throne-item__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.throne-item__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.throne-item__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.throne-item__team-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.throne-item__team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 50%;
}

.throne-item__team-name {
    font-size: 0.75rem;
}

.throne-item__link-row {
    display: flex;
    align-items: center;
}

.throne-item__url {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, text-decoration 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.throne-item__url:hover {
    color: var(--gold);
    text-decoration: underline;
}

.throne-item__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.throne-item__score-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.throne-item__score-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------- HERO CTA BUTTON ---------- */
.throne-btn-hero {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b131b;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.throne-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    filter: brightness(1.08);
}

.throne-btn-hero:active {
    transform: scale(0.98);
}

/* =============================================================
   QUIZ OVERLAY (TAM EKRAN POPUP)
   ============================================================= */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quiz-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.quiz-container {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: var(--transition-theme);
}

.quiz-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: all 0.15s ease;
}

.quiz-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ---------- QUIZ REGISTRATION FORM ---------- */
.quiz-form {
    padding: 28px 24px;
}

.quiz-form__header {
    text-align: center;
    margin-bottom: 22px;
}

.quiz-form__crown {
    font-size: 2.6rem;
    margin-bottom: 4px;
}

.quiz-form__title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.quiz-form__subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.quiz-form__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.quiz-form__group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quiz-form__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quiz-form__input,
.quiz-form__select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: border-color 0.2s ease;
}

.quiz-form__input:focus,
.quiz-form__select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.quiz-form__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quiz-form__mode {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--bg-surface-raised);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.quiz-form__practice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.quiz-form__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.quiz-form__practice-note {
    font-size: 0.78rem;
    color: var(--danger);
    font-weight: 600;
}

.quiz-form__practice-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quiz-form__rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.quiz-form__rule {
    padding: 8px 10px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.quiz-start-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: #0b131b;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 900;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.01em;
}

.quiz-start-btn:hover:not(:disabled) {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

.quiz-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-form__error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

/* =============================================================
   QUIZ SCREEN (SORU EKRANI)
   ============================================================= */
.quiz-practice-banner {
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.12);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.quiz-screen {
    padding: 24px;
    position: relative;
}

.quiz-screen__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.quiz-screen__progress {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.quiz-screen__progress strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.quiz-screen__score {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* ---------- 5s COUNTDOWN TIMER ---------- */
.quiz-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.quiz-timer__circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.quiz-timer__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quiz-timer__bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.quiz-timer__progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
}

.quiz-timer--warning .quiz-timer__progress {
    stroke: var(--gold);
}

.quiz-timer--danger .quiz-timer__progress {
    stroke: var(--danger);
    animation: timer-pulse 0.5s ease infinite;
}

.quiz-timer__number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.quiz-timer--danger .quiz-timer__number {
    color: var(--danger);
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* ---------- QUESTION & OPTIONS ---------- */
.quiz-screen__question {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 22px;
    min-height: 60px;
}

.quiz-screen__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    min-height: 56px;
    background: var(--bg-surface-raised);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.quiz-option-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateX(4px);
}

.quiz-option-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.quiz-option-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.quiz-option-btn__letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.quiz-option-btn__text {
    flex: 1;
    line-height: 1.4;
}

.quiz-option-btn--correct {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
}

.quiz-option-btn--correct .quiz-option-btn__letter {
    background: var(--success);
    color: #fff;
}

.quiz-option-btn--wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
}

.quiz-option-btn--wrong .quiz-option-btn__letter {
    background: var(--danger);
    color: #fff;
}

.quiz-feedback {
    text-align: center;
    padding: 12px;
    margin-top: 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
}

.quiz-feedback--correct {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.quiz-feedback--wrong {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.quiz-feedback--timeout {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.quiz-feedback__points {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* =============================================================
   RESULT SCREEN (SONUÇ EKRANI)
   ============================================================= */
.quiz-result {
    padding: 28px 24px;
    text-align: center;
}

.quiz-result__header {
    margin-bottom: 20px;
}

.quiz-result__trophy {
    font-size: 3.5rem;
    margin-bottom: 6px;
}

.quiz-result__title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    margin: 0;
}

.quiz-result__score-box {
    background: var(--bg-surface-raised);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-result__score-box--gold {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.08);
}

.quiz-result__score-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.quiz-result__score-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.quiz-result__score-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
}

/* Rank status banner */
.quiz-result__rank-status {
    margin-bottom: 22px;
}

.quiz-result__rank-gold {
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.quiz-result__rank-normal {
    padding: 12px 16px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.quiz-result__leaderboard {
    margin-bottom: 20px;
    text-align: left;
}

.quiz-result__lb-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-align: center;
}

.quiz-result__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-result__btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.quiz-result__btn--retry {
    background: var(--gold);
    color: #0b131b;
}

.quiz-result__btn--retry:hover {
    background: var(--gold-hover);
}

.quiz-result__btn--back {
    background: var(--bg-surface-raised);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.quiz-result__btn--back:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */
@media (max-width: 640px) {
    .throne-global-card {
        padding: 22px 16px;
    }

    .throne-global-title {
        font-size: 1.35rem;
    }

    .throne-podium__item {
        padding: 12px 14px;
        gap: 10px;
    }

    .throne-item__rank {
        font-size: 1.4rem;
        width: 28px;
    }

    .throne-item__url {
        max-width: 180px;
        font-size: 0.8rem;
    }

    .throne-item__score-num {
        font-size: 1.1rem;
    }

    .quiz-form {
        padding: 20px 16px;
    }

    .quiz-screen {
        padding: 18px 14px;
    }

    .quiz-screen__question {
        font-size: 1rem;
    }

    .quiz-option-btn {
        padding: 12px 14px;
        min-height: 52px;
        font-size: 0.9rem;
    }
}
