:root {
  --bg: #050816;
  --bg-soft: #020617;
  --panel: #020617;
  --panel-alt: #020617;
  --card: #020617;
  --card-border: #1f2937;
  --neon: #22f2a2;
  --neon-soft: rgba(34, 242, 162, 0.12);
  --accent: #22c55e;
  --accent-2: #22d3ee;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0b1120, #020617 55%, #000 100%);
  color:white;
}

/* Global layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 54px;
}

main {
  flex: 1;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.6));
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22f2a2, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #020617;
  box-shadow: 0 0 18px rgba(34, 242, 162, 0.7);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* NAV LINKS */

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}

.nav-links a:hover {
  color: var(--text-main);
  border-color: var(--neon);
}

/* BUTTONS */

.nav-actions {
  display: flex;
  gap: 8px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background-color 0.1s,
    border-color 0.1s,
    color 0.1s;
}

.btn-primary {
  background: radial-gradient(circle at 30% 30%, var(--neon), #16a34a);
  color: #020617;
  border-color: #22c55e;
  box-shadow:
    0 0 20px rgba(34, 242, 162, 0.6),
    0 10px 30px rgba(15, 23, 42, 0.8);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 26px rgba(34, 242, 162, 0.8),
    0 14px 36px rgba(15, 23, 42, 0.95);
}

.btn-outline {
  border-color: #1f2937;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(34, 242, 162, 0.35);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
  border-color: #111827;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 28px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(34, 242, 162, 0.15), rgba(15, 23, 42, 0.7));
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(34, 242, 162, 0.9);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero-title-main {
  font-weight: 700;
}

.hero-title-glow {
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(34, 242, 162, 0.8);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.meta-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(34, 242, 162, 0.1), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(30, 64, 175, 0.4);
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-value {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
}

.meta-value-accent {
  color: var(--neon);
}

/* HERO RIGHT: TERMINAL CARD */

.hero-right {
  position: relative;
}

.terminal {
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(34, 242, 162, 0.15), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 0 35px rgba(34, 242, 162, 0.4),
    0 20px 50px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(to right, #020617, #020617);
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red {
  background: #f97373;
}

.dot.yellow {
  background: #facc15;
}

.dot.green {
  background: #4ade80;
}

.terminal-title {
  margin-left: 6px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 14px 14px 16px;
}

.prompt {
  color: var(--neon);
}

.cmd {
  color: #e5e7eb;
}

.line-muted {
  margin-top: 6px;
  color: var(--text-muted);
}

.terminal-divider {
  margin: 14px 0 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}

.progress-bar-bg {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.progress-bar-fill {
  width: 37%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), #4ade80);
  box-shadow: 0 0 18px rgba(34, 242, 162, 0.7);
}

.progress-text {
  margin-top: 6px;
  color: var(--text-muted);
}

/* SECTIONS */

.section {
  margin-top: 10px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* CARDS GRID */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 14px 14px 16px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.85);
  font-size: 1.1rem;
}

.card-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-link {
  text-decoration: none;
  color: var(--neon);
  font-weight: 500;
}

.card-link:hover {
  text-shadow: 0 0 10px rgba(34, 242, 162, 0.8);
}

/* CTA SECTION */

.section-cta {
  margin-top: 30px;
}

.cta-inner {
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(94, 234, 212, 0.7);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-inner h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cta-inner p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  padding: 12px 20px 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .nav {
    padding-inline: 16px;
  }

  .container {
    padding-inline: 16px;
  }
}
/* HTML DERS LİSTESİ CSS */

/* --- LESSON INDEX (HTML ders listesi) --- */

.lesson-index {
  padding-top: 28px;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--neon);
}

.lesson-index-header h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.lesson-index-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 620px;
}

.lesson-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top left, rgba(34, 242, 162, 0.08), rgba(15, 23, 42, 0.98));
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s;
}

.lesson-item a:hover {
  border-color: var(--neon);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.lesson-item-left {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.lesson-badge {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--neon);
  background: rgba(15, 23, 42, 0.9);
  margin-top: 3px;
}

.lesson-title {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.lesson-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lesson-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- LESSON PAGE (ders içi sayfa) --- */

.lesson-page {
  padding-top: 24px;
  max-width: 950px;
  margin: 0 auto;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.9fr);
  gap: 22px;
  margin-top: 10px;
}
.lesson-main p {
  margin-bottom: 14px;
  line-height: 1.6;
}

.lesson-main h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
 
}
.lesson-main h2 {
  color: #4ade80;
  margin-top: 32px;
  margin-bottom: 12px;
 
  font-size: 25px !important;
}
.lesson-main h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.lesson-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.lesson-section {
  margin-top: 18px;
  margin-bottom: 40px;
}

.lesson-section h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.lesson-section p {
  font-size: 0.9rem;
  color: var(--text-main);
}

.lesson-list-text {
  margin-top: 6px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.lesson-list-text li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.lesson-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* kod bloğu */

.code-block {
  margin-top: 8px;
  margin: 18px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 1);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #e5e7eb;
  overflow-x: auto;
}
.lesson-introduction {
  margin-bottom: 62px;
}

.code-block code {
  white-space: pre;
  font-size: 0.92rem;
}

/* sağ taraf */

.lesson-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 1);
  font-size: 0.86rem;
}

.side-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.side-card ul {
  padding-left: 16px;
}

.side-card li {
  margin-bottom: 4px;
}

.side-link {
  font-size: 0.82rem;
  color: var(--neon);
  text-decoration: none;
}

.side-link:hover {
  text-shadow: 0 0 10px rgba(34, 242, 162, 0.8);
}

/* responsive ders sayfası */

@media (max-width: 900px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }
}

/* --- DERS GÖRSELLERİ --- */

.lesson-img-wrapper {
  margin: 14px 0 6px;
}

.lesson-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 1);
}

.lesson-img-caption {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
/* === TARAYICI ÇIKTISI BLOĞU (browser-output) === */
.browser-output {
  background: white;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0;
  color: black;
}

.browser-output h1,
.browser-output h2,
.browser-output h3,
.browser-output h4 {
  margin: 6px 0;
  padding: 0;
}
/* ÖĞRENCİ GİRİŞ SAYFASI */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.site-title {
  font-size: 32px;
  font-weight: 700;
}

.login-card {
  background: #0f172a;
  padding: 24px;
  border-radius: 16px;
  border: 2px solid #22f2a2;
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.login-info {
  font-size: 14px;
  margin-bottom: 16px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#loginForm label {
  font-size: 14px;
}

#loginForm input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  outline: none;
}
#sinif {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
}


#loginForm input:focus {
  border-color: #22f2a2;
}

/* Giriş sayfasındaki butonun görünümü */
.login-card .btn-primary {
  background: #22f2a2;
  color: #020617;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.login-button {
  margin-top: 10px;
  cursor: pointer;
}

/* HEADER'da öğrenci bilgisi ve çıkış butonu */

.ogrenci-bilgi {
  margin-left: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: ghostwhite
}

#cikisBtn {
  margin-left: 10px;
  cursor: pointer;
}

/* İLERLEME ÇUBUĞU (HTML ÜNİTESİ) */

.progress-section {
  margin-bottom: 24px;
}

.progress-card {
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(34, 242, 162, 0.4);
  padding: 16px 20px;
  box-shadow: 0 0 30px rgba(34, 242, 162, 0.15);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.progress-text {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #020617;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22f2a2, #4ade80, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 242, 162, 0.7);
  transition: width 0.5s ease-out;
}
/* ============ YAKINDA MODALI ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: radial-gradient(circle at top left, var(--neon-soft), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 22px 22px 16px;
  max-width: 360px;
  width: calc(100% - 32px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-main);
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-ok {
  width: 100%;
  justify-content: center;
}
