/* ═══════════════════════════════════════════════════════
   Raista — Main Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0f1525;
  --bg-card:       #131929;
  --bg-card-hover: #1a2235;
  --border-color:  rgba(79,142,247,0.15);
  --accent:        #4f8ef7;
  --accent-dark:   #3a6fd4;
  --accent-glow:   rgba(79,142,247,0.25);
  --text-primary:  #e8edf8;
  --text-secondary:#8fa3c8;
  --text-muted:    #5a6e8c;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --lab-color:     #00d4aa;
  --article-color: #4f8ef7;
  --blog-color:    #a855f7;
  --question-color:#f59e0b;
  --course-color:  #ec4899;

  /* Bootstrap dark-theme overrides */
  --bs-body-color:        #e8edf8;
  --bs-body-color-rgb:    232,237,248;
  --bs-body-bg:           #0a0e1a;
  --bs-secondary-color:   #8fa3c8;
  --bs-card-color:        #e8edf8;
  --bs-table-color:       #e8edf8;
  --bs-border-color:      rgba(79,142,247,0.15);
}

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ab0ff; }

/* ── SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── NAVBAR ───────────────────────────────────────────── */
#mainNav {
  background: rgba(10,14,26,0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.brand-icon { font-size: 1.6rem; line-height: 1; }
.brand-text  { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--text-primary); }
.text-accent { color: var(--accent) !important; }

.nav-pill {
  color: var(--text-secondary) !important;
  border-radius: 8px;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-pill:hover, .nav-pill.active {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
}

.btn-admin-sm {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #ef4444;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: all .2s;
}
.btn-admin-sm:hover { background: rgba(239,68,68,0.3); color: #ef4444; }

.btn-notif {
  background: rgba(79,142,247,0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
}
.btn-notif:hover { background: rgba(79,142,247,0.25); color: var(--text-primary); }

.btn-user {
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.875rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
}
.btn-user:hover { background: rgba(79,142,247,0.3); color: var(--text-primary); }

.dropdown-dark-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
}
.dropdown-dark-custom .dropdown-item {
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all .2s;
}
.dropdown-dark-custom .dropdown-item:hover { background: var(--accent-glow); color: var(--text-primary); }
.dropdown-dark-custom .dropdown-divider { border-color: var(--border-color); }

/* ── FLASH MESSAGES ───────────────────────────────────── */
.flash-container { position: fixed; top: 70px; right: 1rem; z-index: 9999; min-width: 300px; max-width: 420px; }
.flash-alert {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  font-size: 0.875rem;
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-alert.alert-success { border-left: 4px solid var(--success); }
.flash-alert.alert-danger  { border-left: 4px solid var(--danger); }
.flash-alert.alert-warning { border-left: 4px solid var(--warning); }
.flash-alert.alert-info    { border-left: 4px solid var(--accent); }
.flash-alert .btn-close { filter: invert(1) brightness(0.6); }

/* ── HERO SECTION ─────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #060b18 0%, #0d1428 50%, #060e20 100%);
  overflow: hidden;
  min-height: 100vh;
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}
.hero-equations { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.eq-pill {
  background: rgba(79,142,247,0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}
.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); color: #fff; }
.btn-hero-secondary {
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all .2s;
}
.btn-hero-secondary:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--text-primary); }

/* ── ATOM ANIMATION ───────────────────────────────────── */
.hero-visual { position: relative; width: 350px; height: 350px; }
.atom-animation { position: relative; width: 100%; height: 100%; }
.nucleus {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--accent));
}
@keyframes float { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-58%) scale(1.05); } }

.orbit {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.orbit-1 { width: 160px; height: 80px; animation: spin 4s linear infinite; }
.orbit-2 { width: 200px; height: 100px; animation: spin 6s linear infinite reverse; transform: translate(-50%,-50%) rotate(60deg); }
.orbit-3 { width: 250px; height: 120px; animation: spin 8s linear infinite; transform: translate(-50%,-50%) rotate(-60deg); }
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbit-2 { animation: spin2 6s linear infinite reverse; }
.orbit-3 { animation: spin3 8s linear infinite; }
@keyframes spin2 { from { transform: translate(-50%,-50%) rotate(60deg); } to { transform: translate(-50%,-50%) rotate(420deg); } }
@keyframes spin3 { from { transform: translate(-50%,-50%) rotate(-60deg); } to { transform: translate(-50%,-50%) rotate(300deg); } }

.electron {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; right: 0;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent);
}

/* ── HERO WAVE ────────────────────────────────────────── */
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

/* ── STATS ────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-icon { font-size: 2rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { color: var(--text-secondary); font-size: 0.875rem; }

/* ── CONTENT CARDS (home) ─────────────────────────────── */
.section-badge {
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all .3s;
  height: 100%;
}
.content-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 40px var(--accent-glow); }
.card-icon-wrap {
  width: 60px; height: 60px;
  background: var(--accent-glow);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lab-card .card-icon-wrap { background: rgba(0,212,170,0.1); color: var(--lab-color); }
.article-card .card-icon-wrap { background: var(--accent-glow); color: var(--accent); }
.blog-card .card-icon-wrap { background: rgba(168,85,247,0.1); color: var(--blog-color); }
.question-card .card-icon-wrap { background: rgba(245,158,11,0.1); color: var(--question-color); }
.course-card .card-icon-wrap { background: rgba(236,72,153,0.1); color: var(--course-color); }
.join-card .card-icon-wrap { background: rgba(34,197,94,0.1); color: var(--success); }

.content-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.content-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.875rem; transition: gap .2s; }
.card-link:hover { color: #7ab0ff; }

/* ── ARTICLE PREVIEW CARDS ────────────────────────────── */
.article-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all .3s;
  position: relative;
}
.article-preview-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.article-category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.article-preview-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.article-preview-text { color: var(--text-secondary); font-size: 0.875rem; }
.article-preview-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── COURSE PREVIEW ───────────────────────────────────── */
.course-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  position: relative;
  transition: all .3s;
}
.course-preview-card:hover { border-color: var(--course-color); transform: translateY(-4px); }
.course-level-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}
.level-baslangic { background: rgba(34,197,94,0.15); color: var(--success); }
.level-orta      { background: rgba(245,158,11,0.15); color: var(--warning); }
.level-ileri     { background: rgba(239,68,68,0.15);  color: var(--danger); }
.course-free-badge {
  font-size: 0.7rem; font-weight: 700;
  background: rgba(34,197,94,0.2); color: var(--success);
  border-radius: 6px; padding: 0.2rem 0.5rem;
  margin-left: 0.4rem;
}
.course-preview-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.course-preview-desc  { color: var(--text-secondary); font-size: 0.875rem; }
.course-preview-meta  { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── CTA SECTION ──────────────────────────────────────── */
.cta-section { background: var(--bg-secondary); }
.cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79,142,247,0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.cta-title { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); }
.cta-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none; color: #fff;
  border-radius: 10px; font-weight: 600;
  transition: all .2s;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); color: #fff; }
.btn-outline-accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 600;
  transition: all .2s;
}
.btn-outline-accent:hover { background: var(--accent-glow); color: var(--accent); }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); }
.brand-icon-lg { font-size: 2rem; }
.brand-text-lg { font-size: 1.4rem; font-weight: 700; }
.footer-heading { color: var(--text-primary); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.text-muted-custom { color: var(--text-secondary) !important; }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 1.5rem 0; text-align: center; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all .2s;
}
.social-link:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.formula-ticker { overflow: hidden; }
.formula-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.3rem;
}

/* ── AUTH PAGES ───────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-wrapper { display: flex; min-height: 100vh; flex-grow: 1; }
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #060b18 0%, #0d1428 100%);
  border-right: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
}
.auth-left-content { max-width: 360px; }
.auth-logo { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.auth-left h2 { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.auth-equations { display: flex; flex-direction: column; gap: 0.5rem; }
.eq-float {
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent);
}
.auth-features { list-style: none; padding: 0; }
.auth-features li { color: var(--text-secondary); padding: 0.3rem 0; font-size: 0.95rem; }

.auth-right { flex: 0 0 480px; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-primary); }
.auth-card { width: 100%; max-width: 400px; }
.auth-icon { font-size: 2.5rem; }
.auth-card h3 { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.form-label-custom { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; display: block; }

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.input-group-custom:focus-within { border-color: var(--accent); }
.input-group-custom > i { padding: 0 0.75rem 0 1rem; color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }

.form-control-custom {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 0.75rem 0.5rem 0.75rem 0;
  font-size: 0.9rem;
  font-family: inherit;
}
.form-control-custom::placeholder { color: var(--text-muted); }

.toggle-pw {
  background: none; border: none;
  color: var(--text-muted);
  padding: 0 1rem;
  cursor: pointer; transition: color .2s;
}
.toggle-pw:hover { color: var(--accent); }

.form-control-custom-area {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.form-control-custom-area:focus { border-color: var(--accent); }

.remember-label { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.875rem; cursor: pointer; }
.btn-auth {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none; color: #fff;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all .2s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); color: #fff; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px;
  background: var(--border-color);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-link { color: var(--accent); font-weight: 600; }
.demo-accounts { background: var(--bg-secondary); border-radius: 12px; padding: 1rem; border: 1px solid var(--border-color); }
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.demo-card:hover { border-color: var(--accent); background: var(--accent-glow); }
.demo-card i { display: block; font-size: 1.25rem; color: var(--accent); margin-bottom: 0.25rem; }
.demo-card span { font-size: 0.75rem; color: var(--text-secondary); }

/* ── DASHBOARD ────────────────────────────────────────── */
.dashboard-welcome {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}
.role-badge {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
}
.role-admin  { background: rgba(239,68,68,0.15); color: var(--danger); }
.role-editor { background: rgba(245,158,11,0.15); color: var(--warning); }
.role-user   { background: rgba(79,142,247,0.15); color: var(--accent); }

.quick-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-secondary) !important;
  transition: all .25s;
}
.quick-nav-card:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent) !important; background: var(--accent-glow); }
.lab-nav:hover      { border-color: var(--lab-color) !important; color: var(--lab-color) !important; }
.article-nav:hover  { border-color: var(--accent) !important; color: var(--accent) !important; }
.blog-nav:hover     { border-color: var(--blog-color) !important; color: var(--blog-color) !important; }
.question-nav:hover { border-color: var(--question-color) !important; color: var(--question-color) !important; }
.course-nav:hover   { border-color: var(--course-color) !important; color: var(--course-color) !important; }
.admin-nav:hover    { border-color: var(--danger) !important; color: var(--danger) !important; }

.dash-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
}
.dash-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-widget-header h6 { margin: 0; font-weight: 700; color: var(--text-primary); }
.dash-link { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.dash-item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  transition: background .15s;
  border: 1px solid transparent;
}
.dash-item:hover { background: var(--bg-card-hover); border-color: var(--border-color); }
.dash-item-tag { font-size: 0.7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; }
.dash-item-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.dash-item-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.lab-mini-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all .2s;
}
.lab-mini-card:hover { border-color: var(--lab-color); background: rgba(0,212,170,0.05); }
.x-small { font-size: 0.72rem; }
.level-text-baslangic { color: var(--success); font-size: 0.75rem; }
.level-text-orta { color: var(--warning); font-size: 0.75rem; }
.level-text-ileri { color: var(--danger); font-size: 0.75rem; }

/* ── CONTENT HEROES ───────────────────────────────────── */
.content-hero {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.lab-hero      { background: linear-gradient(135deg, rgba(0,212,170,0.06) 0%, var(--bg-secondary) 100%); }
.article-hero  { background: linear-gradient(135deg, rgba(79,142,247,0.06) 0%, var(--bg-secondary) 100%); }
.blog-hero     { background: linear-gradient(135deg, rgba(168,85,247,0.06) 0%, var(--bg-secondary) 100%); }
.question-hero { background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, var(--bg-secondary) 100%); }
.course-hero   { background: linear-gradient(135deg, rgba(236,72,153,0.06) 0%, var(--bg-secondary) 100%); }
.content-hero h1 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.25rem; }

/* ── FILTER BAR ───────────────────────────────────────── */
.filter-bar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.75rem 1rem; }
.filter-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-pill {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: transparent;
  transition: all .2s;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.filter-pill.easy.active  { background: rgba(0,212,170,0.1); border-color: var(--lab-color); color: var(--lab-color); }
.filter-pill.medium.active { background: rgba(245,158,11,0.1); border-color: var(--warning); color: var(--warning); }
.filter-pill.hard.active  { background: rgba(239,68,68,0.1); border-color: var(--danger); color: var(--danger); }

/* ── SEARCH ───────────────────────────────────────────── */
.search-form { max-width: 500px; }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--accent); }
.search-input-wrap i { color: var(--text-muted); }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
}
.search-input::placeholder { color: var(--text-muted); }

/* ── DIFFICULTY BADGES ────────────────────────────────── */
.difficulty-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 6px; }
.diff-kolay { background: rgba(0,212,170,0.15); color: var(--lab-color); }
.diff-orta  { background: rgba(245,158,11,0.15); color: var(--warning); }
.diff-zor   { background: rgba(239,68,68,0.15); color: var(--danger); }
.difficulty-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }

/* ── LAB CARDS ────────────────────────────────────────── */
.lab-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all .3s;
  height: 100%;
}
.content-card-link:hover .lab-card-item { border-color: var(--lab-color); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,212,170,0.12); }
.lab-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.lab-icon-wrap { width: 48px; height: 48px; background: rgba(0,212,170,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--lab-color); }
.lab-card-footer { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.78rem; color: var(--text-muted); }
.meta-item { display: flex; align-items: center; }

/* ── ARTICLE CARDS ────────────────────────────────────── */
.article-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all .3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.article-card-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.featured-ribbon {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: white; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 10px;
}
.article-category { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.article-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin: 0.5rem 0; }
.article-card-summary { color: var(--text-secondary); font-size: 0.85rem; }
.article-card-footer { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }

/* ── BLOG CARDS ───────────────────────────────────────── */
.blog-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all .3s;
  height: 100%;
}
.blog-card-item:hover { border-color: var(--blog-color); transform: translateY(-4px); }
.blog-card-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.875rem; }
.blog-card-footer { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.read-more-text { color: var(--accent); font-weight: 600; }

/* ── COURSE CARDS ─────────────────────────────────────── */
.course-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card-item:hover { border-color: var(--course-color); transform: translateY(-4px); }
.course-card-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.course-icon-wrap { width: 52px; height: 52px; background: rgba(236,72,153,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--course-color); }
.course-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.course-card-desc  { color: var(--text-secondary); font-size: 0.875rem; flex-grow: 1; }
.course-card-meta  { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.78rem; color: var(--text-muted); }

/* ── QUESTION LIST ────────────────────────────────────── */
.questions-list { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.question-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: background .15s;
}
.question-row:last-child { border-bottom: none; }
.question-row:hover { background: var(--bg-card-hover); }
.question-num { font-size: 0.8rem; color: var(--text-muted); min-width: 28px; }
.question-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.question-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.2rem; }
.meta-tag { font-size: 0.72rem; background: var(--bg-secondary); border-radius: 4px; padding: 0.15rem 0.5rem; color: var(--text-muted); }
.source-tag { color: var(--accent); }
.topic-badge { font-size: 0.72rem; background: rgba(245,158,11,0.1); color: var(--warning); border-radius: 4px; padding: 0.15rem 0.5rem; }
.tags-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-pill { font-size: 0.72rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; padding: 0.15rem 0.5rem; color: var(--text-muted); }

/* ── CONTENT DETAIL ───────────────────────────────────── */
.breadcrumb-custom { background: none; padding: 0; }
.breadcrumb-custom .breadcrumb-item a { color: var(--accent); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

.content-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}
.content-type-badge {
  font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}
.article-type  { background: var(--accent-glow); color: var(--accent); }
.blog-type     { background: rgba(168,85,247,0.15); color: var(--blog-color); }
.question-type { background: rgba(245,158,11,0.15); color: var(--question-color); }
.course-type   { background: rgba(236,72,153,0.15); color: var(--course-color); }
.featured-badge { font-size: 0.75rem; background: rgba(245,158,11,0.15); color: var(--warning); padding: 0.25rem 0.75rem; border-radius: 6px; }
.category-badge { font-size: 0.75rem; background: var(--bg-secondary); color: var(--text-secondary); padding: 0.25rem 0.75rem; border-radius: 6px; border: 1px solid var(--border-color); }

.detail-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin: 0.75rem 0 0.5rem; }
.detail-subtitle { color: var(--text-primary); font-size: 1rem; line-height: 1.6; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

.content-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
}
.content-body strong, .content-body b { color: var(--text-primary); }
.content-body h1, .content-body h2, .content-body h3 { color: var(--text-primary); margin-top: 1.5rem; }
.content-body h2 { font-size: 1.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.materials-box {
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
}
.materials-box h5 { color: var(--lab-color); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ── PROBLEM & SOLUTION ───────────────────────────────── */
.problem-box {
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 14px;
  padding: 1.25rem;
}
.problem-box h5 { color: var(--question-color); font-size: 0.95rem; margin-bottom: 0.75rem; }
.problem-content { color: var(--text-secondary); line-height: 1.8; }
.solution-box {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 14px;
  padding: 1.25rem;
}
.solution-box h5 { color: var(--success); font-size: 0.95rem; margin-bottom: 0.75rem; }
.solution-content { color: var(--text-secondary); line-height: 1.8; }
.answer-box {
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
}

/* ── LESSONS ──────────────────────────────────────────── */
.lessons-section { border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: 1.5rem; }
.lesson-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
}
.lesson-row:last-child { border-bottom: none; }
.lesson-num {
  width: 32px; height: 32px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.lesson-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.lesson-desc  { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
}
.sidebar-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; }
.info-list li:last-child { border-bottom: none; }
.info-key { color: var(--text-muted); }
.info-val { color: var(--text-primary); font-weight: 600; }

/* ── COURSE ENROLL ────────────────────────────────────── */
.price-free { font-size: 2rem; font-weight: 800; color: var(--success); }
.price-paid { font-size: 2rem; font-weight: 800; color: var(--text-primary); }

/* ── COMMENTS ─────────────────────────────────────────── */
.comments-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; }
.comment-card { background: var(--bg-secondary); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; border: 1px solid var(--border-color); }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.comment-author { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.comment-date   { font-size: 0.78rem; color: var(--text-muted); }
.comment-body   { color: var(--text-secondary); font-size: 0.875rem; }
.comment-form-wrap { background: var(--bg-secondary); border-radius: 12px; padding: 1rem; border: 1px solid var(--border-color); }

/* ── PAGINATION ───────────────────────────────────────── */
.pagination-custom .page-link {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px !important;
  margin: 0 2px;
  transition: all .2s;
}
.pagination-custom .page-link:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.pagination-custom .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── PROFILE ──────────────────────────────────────────── */
.page-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; }
.page-card-header { background: var(--bg-secondary); padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.page-card-header h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.page-card-body { padding: 1.5rem; }
.profile-info { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; }
.rounded-custom { border-radius: 12px; }
.border-custom { border-color: var(--border-color) !important; }
.border-top-custom { border-top: 1px solid var(--border-color) !important; }
.hr { border-color: var(--border-color); }
.border-custom { border-color: var(--border-color) !important; }

/* ── ERROR PAGES ──────────────────────────────────────── */
.error-page { padding: 4rem 0; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--accent); opacity: 0.3; line-height: 1; }

/* ── ALERTS ───────────────────────────────────────────── */
.alert-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 0.875rem;
}

/* ── BG SECTION ───────────────────────────────────────── */
.bg-section { background: var(--bg-secondary); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
  .auth-right { flex: 1; }
  .hero-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .auth-right { flex: 1; padding: 1.5rem; }
  .flash-container { left: 0.5rem; right: 0.5rem; }
  .hero-title { letter-spacing: -1px; }
}

/* ── ATATÜRK QUOTE (FOOTER) ───────────────────────────── */
.ataturk-quote {
  background: rgba(79,142,247,0.07);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 0;
}
.ataturk-quote p {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.ataturk-quote footer {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── ROLE CARD (REGISTER CHOICE) ─────────────────────── */
.role-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.2s;
  color: var(--text-primary) !important;
}
.role-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79,142,247,0.15);
}

/* ── LESSON VIDEO ─────────────────────────────────────── */
.active-lesson { background: rgba(79,142,247,0.08) !important; }

