/* ============================================
   OKUL LİGİ - SOFT LIGHT THEME (Göz yormayan)
   ============================================ */

:root {
    --bg-primary: #f7f9fc;
    --bg-secondary: #f2f6fa;
    --bg-card: #fcfdff;
    --bg-card-hover: #f8fafc;
    --bg-input: #fcfdff;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.1);
    --gold: #f59e0b;
    --gold-dim: #d97706;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #6b7280;
    --border: #e2e8f0;
    --border-bright: #cbd5e1;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 12px rgba(59, 130, 246, 0.15);
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f0f4f8 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== LOGIN OVERLAY ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--border-bright);
}

.login-card .page-header h1 {
    justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(252, 253, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-brand:hover { transform: scale(1.02); }

.brand-icon { font-size: 1.6rem; }

.brand-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent-dim);
    transform: translateY(-1px);
}

.nav-admin {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--gold) !important;
}

.nav-admin:hover { 
    background: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* ===== LAYOUT ===== */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 2.5rem 1rem; max-width: 1300px; margin: 0 auto; width: 100%; }

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
}

.card:hover { 
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.3); }

.btn-success { 
    background: rgba(16,185,129,0.15);
    color: var(--green);
    border: 1px solid rgba(16,185,129,0.3);
}

.btn-danger { 
    background: rgba(239,68,68,0.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
}

.btn-warning { 
    background: rgba(245,158,11,0.15);
    color: var(--orange);
    border: 1px solid rgba(245,158,11,0.3);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== TABLES & LISTS ===== */
.oyuncu-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.oyuncu-no {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.mevki-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mevki-badge.kaleci { background: rgba(245,158,11,0.2); }
.mevki-badge.defans { background: rgba(16,185,129,0.2); }
.mevki-badge.orta { background: rgba(59,130,246,0.2); }
.mevki-badge.forvet { background: rgba(239,68,68,0.2); }

/* ===== TABS ===== */
.admin-nav, .hafta-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-tab, .hafta-tab {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-tab:hover, .admin-tab.active,
.hafta-tab:hover, .hafta-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--green); }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--red); }

/* ===== GRIDS ===== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) { .admin-grid { grid-template-columns: 1fr; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content { padding: 1.5rem 1rem; }
    .page-header h1 { font-size: 2rem; }
    .navbar { padding: 0 1rem; }
    .nav-links { gap: 2px; }
    .nav-link { padding: 10px 16px; font-size: 0.82rem; }
    .login-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .nav-links { flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: none; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    font-size: 0.9rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
