/* VocabKids - Yönetici Paneli Tasarım Sistemi (sade, profesyonel) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #F7FAFC;
    --bg-card: #FFFFFF;
    --text-main: #2D3748;
    --text-muted: #718096;
    --border-color: #E2E8F0;

    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --accent: #10B981;
    --danger: #E53E3E;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5 { margin-top: 0; color: #1a202c; letter-spacing: -0.02em; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
}

.nav-content { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); }

.grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { grid-template-columns: repeat(3, 1fr); } }

.stat-tile {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}
.stat-tile .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-tile .label { color: var(--text-muted); font-size: 0.9rem; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.75rem; }
.page-header p { color: var(--text-muted); margin: 0; }

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.6rem; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }

.role-tabs {
    display: flex;
    background: var(--bg-body);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.75rem;
}
.role-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.role-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-main); font-weight: 500; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.btn-auth { width: 100%; padding: 0.875rem; margin-top: 0.5rem; font-weight: 600; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

.alert-error { background: #fff5f5; color: #c53030; padding: 0.75rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; text-align: center; }
.alert-success { background: #f0fff4; color: #276749; padding: 0.75rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; text-align: center; }

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6fffa 100%);
}

.emoji-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.emoji-option {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
}
.emoji-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Live Quiz - Host ekranı */
.pin-display {
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.pin-display .label { font-size: 0.9rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.pin-display .code { font-size: 3rem; font-weight: 800; letter-spacing: 0.15em; }
.pin-display .hint { font-size: 0.9rem; opacity: 0.85; margin-top: 0.5rem; }

.player-chip-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.player-chip {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
}

.host-question-box {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.host-question-box .word { font-size: 1.75rem; font-weight: 700; }
.host-question-box .answer { color: var(--accent); font-weight: 600; margin-top: 0.5rem; }

.leaderboard { list-style: none; padding: 0; margin: 0; }
.leaderboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.leaderboard li:last-child { border-bottom: none; }
.leaderboard .rank { font-weight: 700; color: var(--text-muted); width: 24px; }
.leaderboard .score { font-weight: 700; color: var(--primary); }
