/* ============================================
   EĞİTİM PLATFORMU - Ana Stil Dosyası
   Tema: demo.hizliogren.net.tr ile aynı renk paleti
   ============================================ */

:root {
  /* demo.hizliogren.net.tr renk paleti */
  --primary: #0f766e;       /* ana teal (yeşil-mavi) */
  --primary-dark: #0d5c56; /* koyu teal */
  --primary-light: #14b8a6; /* açık teal vurgu */
  --secondary: #0369a1;     /* mavi ikincil */
  --accent: #ea580c;       /* turuncu CTA vurgu */
  --bg: #ffffff;
  --bg-soft: #f8fafc;      /* hafif gri-beyaz bloklar */
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;       /* nötr açık çizgi */
  --success: #059669;
  --warning: #d97706;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-read: 1.0625rem;   /* 17px - rahat okuma */
  --leading-tight: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --transition: 0.2s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.35s;
}

/* ========== ANIMASYONLAR ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--font-read);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-normal);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
  animation: fadeInUp 0.6s var(--ease-out-expo) backwards;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s backwards;
}

/* Scroll ile görünür olduğunda animasyon (JS ile .in-view eklenebilir) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--duration) var(--ease-spring), box-shadow var(--duration) ease, background var(--transition);
  font-family: inherit;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  color: white;
  background: var(--primary-dark);
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.2);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  color: white;
  background: #0284c7;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== HEADER & NAV ========== */
.header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--text);
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .logo img {
  height: 74px;
}

.admin-sidebar .logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--duration) ease, background var(--duration) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out-expo);
}

.nav-links a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 20px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 220px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity var(--duration) ease, transform var(--duration) var(--ease-out-expo), visibility var(--duration);
  z-index: 100;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--duration) ease, color var(--duration) ease, padding-left var(--duration) ease;
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  padding-left: 18px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ========== HERO ========== */
/* Hero Slider - mehmetmizrak.com tarzı soft arka plan */
.hero {
  background: linear-gradient(135deg, #e3eef9 0%, #e0f2f1 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 380px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.hero-slider:active {
  cursor: grabbing;
}

.hero-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-slider.dragging .hero-track {
  transition: none;
}

.hero-slide {
  flex: 0 0 auto;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.7s var(--ease-out-expo) backwards;
}

.hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out-expo);
}

.hero-slide:hover .hero-image img {
  transform: scale(1.02);
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: 16px;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.15s backwards;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.25s backwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-left: auto;
  
  @media screen and (min-width: 768px) {
    margin-right: 1rem;
  }
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.35s backwards;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform var(--duration) var(--ease-spring), background var(--transition);
  overflow: hidden;
  text-indent: -999px;
}

.hero-dot:hover {
  background: rgba(15, 118, 110, 0.25);
  transform: scale(1.1);
}

.hero-dot.active {
  background: var(--primary);
  transform: scale(1.08);
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out-expo), box-shadow var(--duration) ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-soft);
  overflow: hidden;
}

.card .card-img img,
.card-img {
  transition: transform 0.6s var(--ease-out-expo);
}

.card:hover .card-img img,
.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.card-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course-grid .card {
  animation: fadeInUp 0.5s var(--ease-out-expo) backwards;
}

.course-grid .card:nth-child(1) { animation-delay: 0.05s; }
.course-grid .card:nth-child(2) { animation-delay: 0.1s; }
.course-grid .card:nth-child(3) { animation-delay: 0.15s; }
.course-grid .card:nth-child(4) { animation-delay: 0.2s; }
.course-grid .card:nth-child(5) { animation-delay: 0.25s; }
.course-grid .card:nth-child(6) { animation-delay: 0.3s; }
.course-grid .card:nth-child(7) { animation-delay: 0.35s; }
.course-grid .card:nth-child(8) { animation-delay: 0.4s; }
.course-grid .card:nth-child(9) { animation-delay: 0.45s; }
.course-grid .card:nth-child(n+10) { animation-delay: 0.5s; }

/* Category pills */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.category-pill {
  padding: 10px 20px;
  background: var(--bg-soft);
  border-radius: 50px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease-spring), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.category-pill:hover {
  transform: scale(1.025);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-pill.active {
  transform: scale(1.015);
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.15);
}

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease-out-expo), box-shadow var(--duration) ease;
}

.feature-card:nth-child(1) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s backwards; }
.feature-card:nth-child(2) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.2s backwards; }
.feature-card:nth-child(3) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.3s backwards; }
.feature-card:nth-child(4) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.4s backwards; }
.feature-card:nth-child(5) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.5s backwards; }
.feature-card:nth-child(6) { animation: fadeInUp 0.6s var(--ease-out-expo) 0.6s backwards; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.1);
}

.feature-card:hover .feature-icon {
  animation: float 2s ease-in-out infinite;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: white;
  transition: transform var(--duration) var(--ease-spring);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
  /* Kurumsal koyu lacivert footer (mehmetmizrak.com tarzı) */
  background: var(--text);
  color: #cbd5e0;
  padding: 60px 0 24px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #90cdf4;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: #cbd5e0;
  font-size: 0.95rem;
  transition: color var(--duration) ease, transform var(--duration) ease;
  display: inline-block;
}

.footer ul a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) ease, visibility var(--duration);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(15, 118, 110, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--duration) var(--ease-out-expo);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.35rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-control.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Form sayfalarında açıklama metinleri: küçük, normal font, uyumlu renk */
.form-intro {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.form-footer-text {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #94a3b8;
  text-align: center;
  margin-top: 1.25rem;
}

/* Doğrulama özeti: hata yokken kutu gösterme */
.validation-summary-valid {
  display: none !important;
}

/* Doğrulama hataları: kompakt, küçük font, uyumlu renk */
.validation-summary-errors {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #b91c1c;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  list-style: none;
  padding-left: 0.75rem;
}

.validation-summary-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.validation-summary-errors li {
  margin: 0.15em 0;
}

.field-validation-error,
.text-danger.field-validation-error {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #b91c1c;
  display: block;
  margin-top: 0.2rem;
  line-height: 1.3;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span,
nav.breadcrumb span {
  margin: 0 8px;
  color: #555555 !important;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  padding: 48px 0;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========== SIDEBAR LAYOUT (Dashboard) ========== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  min-height: calc(100vh - 200px);
  padding: 32px 0;
}

.sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--primary);
  color: white;
}

.sidebar-nav .icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

.main-content {
  min-width: 0;
}

/* ========== STAT CARDS (Dashboard) ========== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

/* ========== TABLE ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

th.sortable {
  user-select: none;
  white-space: nowrap;
}
th.sortable:hover {
  color: var(--primary);
}
th.sortable .th-label {
  margin-right: 4px;
}
th.sortable .sort-indicator {
  font-size: 0.7em;
  opacity: 0.8;
  color: var(--primary);
}
th.sortable .sort-indicator:empty {
  display: none;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-soft);
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

.badge-primary {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
}

.badge-success {
  background: rgba(5, 150, 105, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card .card-img {
  aspect-ratio: 16/9;
}

.blog-card .card-body {
  padding: 24px;
}

.blog-card .card-meta {
  margin-bottom: 12px;
}

.blog-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.blog-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.blog-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ========== COURSE DETAIL ========== */
.course-detail-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.course-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.course-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== MAKALE / UZUN METİN OKUMA (prose) ==========
   Ekranda rahat okuma: satır uzunluğu, satır aralığı, Türkçe uyumlu tipografi */
.prose {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 70ch;
  letter-spacing: 0.01em;
}
.prose h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.prose h1:first-child { margin-top: 0; }
.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.prose p {
  margin-bottom: 1.1em;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--primary-dark); }
.prose strong { font-weight: 600; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1.25em 0;
}
.prose blockquote {
  border-left: 4px solid var(--primary-light);
  padding-left: 1em;
  margin: 1.25em 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: 16px;
}
.prose-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: block;
}

/* CKEditor açıklama: görsel ve video (YouTube) embed */
.course-description figure.image {
  margin: 1rem 0;
}
.course-description figure.image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.course-description figure.media {
  margin: 1.5rem 0;
  max-width: 100%;
}
.course-description figure.media iframe {
  max-width: 100%;
}
.course-description p {
  margin-bottom: 0.75rem;
}

.form-row-title-cover {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
}
.form-row-title-cover .form-row-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row-title-cover .form-group-cover {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .form-row-title-cover {
    grid-template-columns: 1fr;
  }
  .form-row-title-cover .form-group-cover {
    margin-bottom: 20px;
  }
}

.course-detail-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.course-price-box .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.course-price-box .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.curriculum-list {
  list-style: none;
}

.curriculum-list li {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.curriculum-list li:last-child {
  border-bottom: none;
}

.curriculum-list .icon {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ========== CART / CHECKOUT ========== */
.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.cart-item-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-summary {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

/* ========== ADMIN ========== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--text);
  color: #cbd5e0;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar .logo {
  color: #90cdf4;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.admin-sidebar .logo span {
  color: white;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #cbd5e0;
  font-weight: 500;
  transition: all var(--transition);
}

.admin-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.admin-nav a.active {
  background: var(--primary);
  color: white;
}

/* Sidebar ikonları – Lucide, tek renk (link rengini miras alır) */
.admin-nav a > svg,
.admin-nav .nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  color: currentColor;
  stroke: currentColor;
}
.admin-nav a > svg {
  display: block;
}
.admin-nav a.nav-back {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}

.admin-main {
  background: var(--bg-soft);
  padding: 32px;
  overflow-x: hidden;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.admin-page-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.admin-page-title .header-title-icon,
.admin-page-title > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
  stroke: var(--primary);
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.tab {
  padding: 12px 20px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.empty-state .icon {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========== PROGRESS BAR ========== */
.progress {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50px;
  transition: width 0.8s var(--ease-out-expo);
}

/* ========== ALERT ========== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-info {
  background: rgba(3, 105, 161, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(3, 105, 161, 0.2);
}

.alert-success {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-warning {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .course-detail-hero {
    grid-template-columns: 1fr;
  }

  .course-detail-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    position: relative;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn:not(.menu-toggle) {
    display: none !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav.open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open .nav-actions {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    margin-top: 200px;
    box-shadow: var(--shadow-lg);
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-slider {
    min-height: 320px;
    padding: 0;
    max-width: 100%;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-bottom: 20px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    height: 220px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .features {
    margin-top: 0;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo {
    display: inline-flex;
    justify-content: center;
  }

  .footer-brand p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }

  .admin-main {
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-img {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  th, td {
    padding: 12px;
    font-size: 0.85rem;
  }
}
