/* ============================================================================
   TURMENECER OL — stil faylı
   Brend rəngi aşağıdakı dəyişənlərdən dəyişdirilir (loqoya uyğun).
   ========================================================================== */

:root {
  /* Turmenecer Ol brend rəngləri — rəsmi brendbukdan (#3867AE, #101D35, #F7A343, #F6F3ED) */
  --brand:        #3867ae;   /* brend mavisi — əsas rəng (düymələr, vurğular) */
  --brand-dark:   #101d35;   /* dərin göy — basılmış / tünd hal, başlıqlar */
  --brand-soft:   #e7eef8;   /* açıq mavi fon ləkələri */
  --accent:       #f7a343;   /* narıncı — isti vurğu (hədiyyə, nişan) */
  --warm:         #f6f3ed;   /* isti ağ — yumşaq fon */

  /* Nəticə rəngləri — yalnız rəngə güvənilmir, mətn+işarə də var */
  --ok:           #1a7f37;
  --ok-soft:      #e7f6ec;
  --err:          #9a5b00;   /* "yanlış" üçün neytral-isti ton, sərt qırmızı deyil */
  --err-soft:     #fdf3e3;

  --bg:           #ffffff;
  --surface:      #ffffff;
  --text:         #1c2430;
  --muted:        #5c6773;
  --line:         #e6e9ee;

  --radius:       16px;
  --radius-sm:    12px;
  --shadow:       0 6px 24px rgba(20, 40, 60, .08);
  --shadow-lg:    0 12px 40px rgba(20, 40, 60, .12);

  --maxw:         640px;  /* notebook-da rahat oxunan en */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;              /* telefonda üfüqi sürüşmə olmasın */
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ---- Brend başlıq / loqo ------------------------------------------------- */
.brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 48px;
}
.brand-logo { height: 44px; width: auto; max-width: 70%; object-fit: contain; }
.brand-logo--sm { height: 30px; }
.brand-wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .2px;
  color: var(--brand);
}

/* ---- Kartlar ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card + .card { margin-top: 18px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }
p  { margin: 0 0 12px; }
.lead { font-size: 1.05rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---- Düymələr ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .05s ease;
  min-height: 54px;              /* telefonda rahat basılacaq ölçü */
}
.btn:hover   { background: var(--brand-dark); }
.btn:active  { transform: translateY(1px); }
.btn--ghost {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn--ghost:hover { background: var(--brand-soft); }
.btn--wa { background: #25d366; }
.btn--wa:hover { background: #1fb457; }

/* ---- Tədbir məlumatları -------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--muted); min-width: 150px; font-weight: 600; }

/* ---- Brend təqdimatı ----------------------------------------------------- */
.brands { display: grid; gap: 14px; }
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.brand-row .logo-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 64px;
}
.brand-row .logo-slot img { height: 36px; width: auto; object-fit: contain; }
.brand-row .brand-name { font-weight: 700; }
.brand-row .brand-tag { color: var(--muted); font-size: .92rem; }

.callout {
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-weight: 600;
  text-align: center;
}
.gift-line {
  background: linear-gradient(0deg, #fff8ea, #fff8ea);
  border: 1px solid #f3e2bd;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

/* ============================================================================
   QUIZ
   ========================================================================== */
.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.progress-head .step { font-weight: 700; color: var(--brand); }
.head-right { display: flex; align-items: center; gap: 12px; }
.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ---- Taymer -------------------------------------------------------------- */
.timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .98rem;
  min-width: 56px;
  justify-content: center;
}
.timer .clock { font-size: 1rem; }
.timer.warn   { color: #9a5b00; background: #fdf3e3; }
.timer.danger { color: #b42318; background: #fdecea; animation: pulse .9s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.timer-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.timer-bar {
  height: 100%;
  width: 100%;
  background: var(--brand);
  border-radius: 999px;
}
.timer-bar.warn   { background: var(--accent); }
.timer-bar.danger { background: #e5533c; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .3s ease;
}

.question { font-size: 1.25rem; font-weight: 700; margin: 0 0 18px; }

.options { display: grid; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: right;
  padding: 16px;
  font-size: 1.05rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 58px;              /* böyük tap sahəsi */
  transition: border-color .12s ease, background .12s ease;
  text-align: start;
}
.option:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.option:disabled { cursor: default; }
.option .letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .95rem;
}
.option .label { flex: 1; }
.option .mark {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: .85rem;
  display: none;
  align-items: center;
  gap: 4px;
}

/* seçimdən sonra kilidli hallar — rəng + mətn + işarə */
.option.is-correct {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.option.is-correct .letter { background: var(--ok); color: #fff; }
.option.is-correct .mark { display: inline-flex; color: var(--ok); }

.option.is-wrong {
  border-color: var(--err);
  background: var(--err-soft);
}
.option.is-wrong .letter { background: var(--err); color: #fff; }
.option.is-wrong .mark { display: inline-flex; color: var(--err); }

/* ---- İzah paneli --------------------------------------------------------- */
.explain {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: none;
}
.explain.show { display: block; }
.explain.ok  { background: var(--ok-soft);  border: 1px solid #bfe3c8; }
.explain.err { background: var(--err-soft); border: 1px solid #f0dcb6; }
.explain .etitle {
  font-weight: 800;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.explain.ok  .etitle { color: var(--ok); }
.explain.err .etitle { color: var(--err); }

.next-wrap { margin-top: 18px; }

/* ---- Nəticə ekranı ------------------------------------------------------- */
.result-emoji { font-size: 2.4rem; }
.score-big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand);
  margin: 6px 0 2px;
}
.result-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
  opacity: .9;
}
.result-logos .logo-slot { height: 30px; display:flex; align-items:center; }
.result-logos img { height: 28px; width: auto; }
.result-logos .brand-wordmark { font-size: 1rem; }

.footer-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 28px; }

/* ---- Kiçik ekran ---------------------------------------------------------- */
@media (max-width: 420px) {
  .page { padding: 18px 14px 40px; }
  .card { padding: 18px; }
  h1 { font-size: 1.4rem; }
  .info-list .k { min-width: 120px; }
}

/* görünməz, lakin ekran oxuyucular üçün */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
