/* // copyright (c) 2026 by Ender KAHRAMAN. All rights reserved.

// Telif hakkı (c) 2026 Ender KAHRAMAN. Tüm hakları saklıdır. */

/* SECTION: Design tokens */
:root {
  /* Color palette - Ocean Slate variant */
  --color-bg: #020617;
  --color-bg-elevated: #020922;
  --color-surface: #020617;
  --color-surface-soft: #02091f;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-accent: #38bdf8;
  --color-accent-soft: rgba(56, 189, 248, 0.16);
  --color-accent-strong: #0ea5e9;
  --color-danger: #fb7185;
  --color-success: #4ade80;
  --color-border-subtle: rgba(148, 163, 184, 0.3);

  /* Accent RGB for glows */
  --accent-rgb: 56, 189, 248;

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  /* Sizing & layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.5),
    0 8px 24px rgba(15, 23, 42, 0.65);

  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
}

/* SECTION: Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--color-text);
}

/* SECTION: Atmospheric background (from visual-effects skill) */
.gradient-mesh {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(at 10% 0%, rgba(56, 189, 248, 0.22) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(129, 140, 248, 0.3) 0px, transparent 45%),
    radial-gradient(at 0% 80%, rgba(52, 211, 153, 0.22) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(248, 113, 113, 0.3) 0px, transparent 45%),
    radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
}

.floating-shape {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: var(--color-accent);
  opacity: 0.12;
  filter: blur(70px);
  animation: float 10s ease-in-out infinite;
  z-index: 0;
}

.floating-shape--left {
  top: -80px;
  left: -40px;
}

.floating-shape--right {
  bottom: -120px;
  right: -40px;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(8px);
  }
}

/* SECTION: Page layout */
.page {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 1;
}

.header {
  text-align: left;
}
h1{


  color: white !important;
}
.header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header__title {
  margin: 16px 0 8px;
  font-size: 40px;
  letter-spacing: -0.04em;
}

.header__subtitle {
  margin: 0;
  max-width: 520px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 20px;
}

/* SECTION: Panels */
.panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.09),
      transparent 55%);
  pointer-events: none;
}

.panel--sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel--main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel__title {
  margin: 0 0 4px;
  font-size: 18px;
}

.panel__hint {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* SECTION: Category chips */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: border-color var(--transition-fast),
    background-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.chip__label {
  font-size: 14px;
}

.chip__meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

.chip:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.9));
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 4px rgba(56, 189, 248, 0.7);
}

.chip--active {
  border-color: var(--color-accent-strong);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98))
      padding-box,
    linear-gradient(135deg, var(--color-accent), #a855f7) border-box;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

/* SECTION: Legend */
.legend {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.legend__title {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.legend__list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* SECTION: Quiz header */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-header__title {
  margin: 0;
  font-size: 20px;
}

.quiz-header__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.quiz-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  min-width: 96px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 13px;
  text-align: center;
}

/* SECTION: Progress */
.quiz-body {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Allow the quiz body to grow and push surrounding layout so feedback is fully visible */
  align-self: stretch;
}

.progress {
  width: 100%;
}

.progress__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(30, 64, 175, 0.9);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #eab308, #fb7185);
  transition: width 260ms ease-out;
}

/* SECTION: Question & options */
.question__prompt {
  margin: 0;
  font-size: 18px;
}

.options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  font: inherit;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.option-btn__key {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.option-btn__label {
  flex: 1;
  font-size: 14px;
}

.option-btn:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.9);
}

.option-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 4px rgba(56, 189, 248, 0.75);
}

.option-btn--correct {
  border-color: rgba(74, 222, 128, 0.9);
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(15, 23, 42, 0.98))
      padding-box,
    linear-gradient(135deg, #22c55e, #4ade80) border-box;
}

.option-btn--incorrect {
  border-color: rgba(248, 113, 113, 0.9);
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(15, 23, 42, 0.98))
      padding-box,
    linear-gradient(135deg, #fb7185, #f97316) border-box;
}

.option-btn[disabled] {
  cursor: default;
  opacity: 0.92;
}

/* SECTION: Feedback */
.feedback {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.feedback--correct {
  color: var(--color-success);
}

.feedback--incorrect {
  color: var(--color-danger);
}

/* SECTION: Footer buttons */
.quiz-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color var(--transition-med),
    border-color var(--transition-med), color var(--transition-med),
    transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 110px;
}

.btn--primary {
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.35), rgba(8, 47, 73, 0.95));
  border-color: rgba(56, 189, 248, 0.85);
  color: #e0f2fe;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.45);
}

.btn--primary:hover {
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.5), rgba(8, 47, 73, 0.98));
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.8);
  background: radial-gradient(circle at top left,
      rgba(30, 64, 175, 0.38), rgba(15, 23, 42, 0.98));
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 4px rgba(56, 189, 248, 0.8);
}

/* SECTION: Summary state */
.summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary__heading {
  margin: 0;
  font-size: 20px;
}

.summary__score {
  font-size: 16px;
  color: var(--color-text-muted);
}

.summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 13px;
}

.summary__badge--highlight {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
}

/* SECTION: Responsive */
@media (max-width: 768px) {
  .page {
    padding-top: 28px;
  }

  .header__title {
    font-size: 32px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel--sidebar {
    order: 2;
  }

  .panel--main {
    order: 1;
  }

  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-footer {
    flex-direction: row-reverse;
  }
}
