/* =====================================================
   SORU CEVAP PLATFORMU - ANA STİL DOSYASI
   Modern, Temiz, %100 Mobil Duyarlı Tasarım
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============ CSS DEĞİŞKENLERİ ============ */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --primary-50: #EEF2FF;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --text: #1E293B;
    --text-light: #64748B;
    --text-lighter: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --header-height: 70px;
}

[data-theme="dark"] {
    --bg: #0F172A;
    --bg-card: #1E293B;
    --text: #F1F5F9;
    --text-light: #94A3B8;
    --text-lighter: #64748B;
    --border: #334155;
    --border-light: #1E293B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER / NAVİGASYON ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
}

[data-theme="dark"] .header {
    background: rgba(15,23,42,0.85);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Arama Çubuğu */
.search-bar {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1rem;
}

/* Header Menü */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.header-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    border-color: var(--primary);
}

/* Mobil Menü */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* ============ ANA İÇERİK DÜZENİ ============ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 48px;
}

/* ============ SOL SIDEBAR ============ */
.sidebar-left {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar-nav a .nav-icon { font-size: 1.15rem; width: 24px; text-align: center; }

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 14px 6px;
}

/* ============ ANA İÇERİK ============ */
.main-content { min-width: 0; }

/* Kart Bileşeni */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-body { padding: 24px; }

/* ============ SORU KARTI ============ */
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: var(--transition);
    display: flex;
    gap: 16px;
}

.question-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.question-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 60px;
}

.stat-box {
    text-align: center;
    padding: 6px 10px;
    border-radius: var(--radius);
    min-width: 54px;
}

.stat-box.votes { background: var(--primary-50); color: var(--primary); }
.stat-box.answers { background: #F0FDF4; color: var(--success); }
.stat-box.answers.has-best { background: var(--success); color: white; }
.stat-box.views { background: var(--bg); color: var(--text-lighter); }

.stat-box .stat-number { font-size: 1.05rem; font-weight: 700; display: block; }
.stat-box .stat-label { font-size: 0.65rem; font-weight: 500; }

.question-content { flex: 1; min-width: 0; }

.question-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-title a { color: inherit; }
.question-title a:hover { color: var(--primary); }

.question-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.question-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-50);
    color: var(--primary);
    transition: var(--transition);
}

.tag:hover { background: var(--primary); color: white; }

.secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.user-info-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info-mini img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.user-level-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 50px;
}

/* ============ SAĞ SİDEBAR ============ */
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body { padding: 16px 20px; }

/* Liderlik Tablosu */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.leaderboard-item + .leaderboard-item { border-top: 1px solid var(--border-light); }

.lb-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lb-rank.gold { background: #FEF3C7; color: #D97706; }
.lb-rank.silver { background: #F1F5F9; color: #64748B; }
.lb-rank.bronze { background: #FED7AA; color: #C2410C; }
.lb-rank.other { background: var(--bg); color: var(--text-lighter); }

.lb-user { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-level { font-size: 0.7rem; color: var(--text-lighter); }
.lb-points { font-weight: 700; font-size: 0.85rem; color: var(--primary); }

/* Seviye İlerleme */
.level-progress-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
}

.level-progress-card .current-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.level-progress-card .level-icon { font-size: 2rem; }
.level-progress-card .level-name { font-weight: 700; font-size: 1.1rem; }
.level-progress-card .level-points { font-size: 0.8rem; opacity: 0.85; }

.progress-bar-container {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.75rem;
    opacity: 0.85;
    text-align: center;
}

/* ============ BUTONLAR ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(79,70,229,0.3);
}
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: 0 4px 8px rgba(79,70,229,0.4); }

.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; color: white; }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ============ FORM ÖĞELERİ ============ */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.78rem; color: var(--text-lighter); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* ============ OY SİSTEMİ ============ */
.vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vote-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-lighter);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.vote-btn:hover { background: var(--primary-50); color: var(--primary); }
.vote-btn.active.upvote { color: var(--success); }
.vote-btn.active.downvote { color: var(--danger); }

.vote-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

/* ============ ÜYELİK SEVİYELERİ ============ */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.level-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.level-card .level-icon { font-size: 3rem; margin-bottom: 12px; }
.level-card .level-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.level-card .level-points { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }

.level-features {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
}

.level-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.level-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.level-features li.locked { opacity: 0.5; }
.level-features li.locked::before { content: '✗'; color: var(--danger); }

/* ============ PROFİL SAYFASI ============ */
.profile-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-details h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 2px; }

.profile-stats-row {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.profile-stat { text-align: center; }
.profile-stat .stat-val { font-size: 1.3rem; font-weight: 800; display: block; }
.profile-stat .stat-lbl { font-size: 0.75rem; opacity: 0.8; }

/* ============ PREMIUM / ÖDEME ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79,70,229,0.15);
}

.pricing-card.featured::before {
    content: 'Popüler';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0;
}

.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

/* ============ FLASH MESAJLARI ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font);
}

.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ ADMIN PANELİ ============ */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-dark);
    color: white;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
    color: white;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav a:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-nav a.active { background: rgba(79,70,229,0.3); color: white; border-left: 3px solid var(--primary); }

.admin-content { padding: 32px; background: var(--bg); }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.admin-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.admin-stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.admin-stat-card .stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover td { background: var(--bg); }

.status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active { background: #F0FDF4; color: #166534; }
.status-pending { background: #FFFBEB; color: #92400E; }
.status-banned { background: #FEF2F2; color: #991B1B; }

/* ============ SAYFALAMA ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.pagination a:hover { background: var(--primary-50); color: var(--primary); }
.pagination .active { background: var(--primary); color: white; }

/* ============ AUTH SAYFALARI ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.auth-card .logo { justify-content: center; margin-bottom: 28px; font-size: 1.5rem; }

.auth-card h1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-card p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-lighter);
    font-size: 0.8rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer h4 { color: white; font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; display: block; padding: 4px 0; }
.footer a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ============ DROPDOWN MENÜ ============ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 100;
    animation: fadeIn 0.15s ease;
}

.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.88rem;
}

.dropdown-menu a:hover { background: var(--bg); }

.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ TOOLTIP ============ */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tooltip:hover::after { opacity: 1; }

/* ============ EMPTİ DURUM ============ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* ============ ANİMASYONLAR ============ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 24px auto;
}

/* ============ MOBİL DUYARLI TASARIM ============ */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left, .sidebar-right {
        position: static;
    }
    
    .sidebar-left {
        display: none;
    }
    
    .sidebar-left.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg-card);
        z-index: 2000;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    
    .sidebar-right {
        order: -1;
    }
    
    .level-progress-card { display: none; }
    
    .mobile-menu-btn { display: flex; }
    
    .admin-layout { grid-template-columns: 1fr; }
    
    .admin-sidebar {
        position: fixed;
        left: -280px;
        z-index: 2000;
        width: 280px;
        transition: var(--transition);
    }
    
    .admin-sidebar.open { left: 0; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    
    .header-inner { padding: 0 12px; }
    
    .search-bar { display: none; }
    .search-bar.mobile-open {
        display: block;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        padding: 12px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    
    .question-card { padding: 14px 16px; gap: 12px; }
    .question-stats { min-width: 44px; }
    .stat-box { min-width: 44px; padding: 4px 6px; }
    .stat-box .stat-number { font-size: 0.9rem; }
    
    .card-body { padding: 16px; }
    
    .auth-card { padding: 28px 20px; }
    
    .profile-info { flex-direction: column; text-align: center; }
    .profile-stats-row { justify-content: center; }
    .profile-avatar { width: 80px; height: 80px; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .levels-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .admin-stats { grid-template-columns: 1fr 1fr; }
    
    .data-table { display: block; overflow-x: auto; }
    
    .tabs { gap: 0; }
    .tab { padding: 10px 14px; font-size: 0.8rem; }
    
    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .question-card { flex-direction: column; }
    .question-stats { flex-direction: row; }
    .stat-box { flex: 1; }
    
    .header-actions .header-btn:not(:first-child):not(:last-child) { display: none; }
    
    .profile-stats-row { gap: 16px; }
    .profile-header { padding: 20px; }
    
    .admin-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============ OVERLAY ============ */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.2s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-lighter);
    cursor: pointer;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-lighter); }

/* ============ SEÇİM RENGİ ============ */
::selection { background: var(--primary); color: white; }
