/* ==========================================================================
   VIZE TESTI — TEK DOSYA STYLE
   Light/Dark theme + Split layout + Wizard + Hero slider
   ========================================================================== */

/* ===========================
   1) THEME TOKENS
   =========================== */
:root{
  --brand:#ff6a00;

  --bg:#ffffff;
  --surface:#ffffff;
  --line:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:rgba(15,23,42,.65);

  --shadow: 0 18px 50px rgba(2,6,23,.14);
  --radius:18px;

  --topbar-h:56px;
}

html.theme-dark{
  --bg:#0b0f19;
  --surface:#0f172a;
  --line:rgba(255,255,255,.12);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.70);
  --shadow: 0 22px 70px rgba(0,0,0,.45);
}

html.theme-dark .hero-slider .slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25),
    rgba(0,0,0,.45)
  );
  pointer-events:none;
}

/* ===========================
   2) RESET / BASE
   =========================== */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow:hidden;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.muted{ color: var(--muted); }

img{ max-width:100%; display:block; }

/* ===========================
   3) TOPBAR (CENTER THEME BUTTON)
   =========================== */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 50;

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* SOL - ORTA - SAĞ */
  align-items: center;

  padding: 0 22px;
  background: transparent;
}

.topbar-left{ justify-self: start; }
.topbar-center{ justify-self: center; }
.topbar-right{
  justify-self: end;
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.topbar-right a{
  opacity: .9;
  text-decoration: none;
}
.topbar-right a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Ortadaki sarı daire */
.theme-circle{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #f6d77a;              /* ekran görüntündeki gibi */
  color: #111;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;

  display: grid;
  place-items: center;

  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.theme-circle:hover{
  transform: translateY(-1px);
}

/* ===========================
   4) SPLIT LAYOUT
   =========================== */
.split{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr 1fr;
}

.left{
  position:relative;
  padding-top:0 !important;
  overflow:hidden;
  height:100vh;
  background: #000;
}

.left-inner{
  height: calc(100vh - var(--topbar-h));
  width:100%;
}

/* Sağ taraf kendi içinde rahat dursun */
.right{
  padding-top: var(--topbar-h);
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid var(--line);
  background: var(--bg);
}

/* ===========================
   5) WIZARD AREA
   =========================== */
.wizard{
  width:min(520px, 92%);
  padding: 22px 0;
}

.brandline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom: 14px;
}

.mark{
  width:22px;
  height:22px;
  border-radius:7px;
  background: linear-gradient(135deg, var(--brand), #ff9a55);
}

.brandtext{
  font-weight:800;
  letter-spacing:.2px;
}

.stepper{
  position:relative;
  height: 18px;
  margin: 8px 0 18px;
}

.stepper-line{
  position:absolute;
  left:0; right:0;
  top:50%;
  height:2px;
  transform: translateY(-50%);
  background: var(--line);
}

.stepper-dot{
  position:absolute;
  top:50%;
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--line);
  transform: translateY(-50%);
}

/* 12 ADIM */
.stepper-dot[data-dot="1"]  { left:0%; }
.stepper-dot[data-dot="2"]  { left:9.09%; }
.stepper-dot[data-dot="3"]  { left:18.18%; }
.stepper-dot[data-dot="4"]  { left:27.27%; }
.stepper-dot[data-dot="5"]  { left:36.36%; }
.stepper-dot[data-dot="6"]  { left:45.45%; }
.stepper-dot[data-dot="7"]  { left:54.54%; }
.stepper-dot[data-dot="8"]  { left:63.63%; }
.stepper-dot[data-dot="9"]  { left:72.72%; }
.stepper-dot[data-dot="10"] { left:81.81%; }
.stepper-dot[data-dot="11"] { left:90.90%; }
.stepper-dot[data-dot="12"] {
  left:100%;
  transform: translate(-100%, -50%);
}

/* aktif adım */
.stepper-dot.is-active{
  background: var(--brand);
}

.panel{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow:hidden;
}

h2{
  margin:0 0 8px;
  font-size: 22px;
}

/* ===========================
   6) FORM ELEMENTS
   =========================== */
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline:none;
}

input::placeholder,
textarea::placeholder{
  color: rgba(127,127,127,.75);
}

textarea{ min-height: 110px; resize: vertical; }

.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 14px;
}

.btn{
  border:1px solid transparent;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight:700;
  cursor:pointer;
}

.btn.primary{
  background: var(--brand);
  color:#fff;
}

.btn.primary:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn.ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.step{ display:none; }
.step.is-active{
  display:block;
  animation: slideIn .35s ease both;
}

@keyframes slideIn{
  from{ opacity:0; transform: translateX(28px); }
  to{ opacity:1; transform: translateX(0); }
}

/* Info blocks */
.inline-kv{ margin-top: 12px; }

.kv{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border:1px dashed var(--line);
  border-radius: 14px;
}

.kv .k{ color: var(--muted); font-weight:600; }
.kv .v{ font-weight:800; }

.hint{
  margin-top:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  color: var(--muted);
}

.resultbox{
  display:grid;
  gap:10px;
  margin-top: 10px;
}

.pdfrow{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 12px;
}

.is-hidden{ display:none !important; }

.footnote{
  margin-top: 12px;
  text-align:center;
}

/* Two-column helper */
.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .two{ grid-template-columns: 1fr; }
}

/* Consent */
.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 13px;
  color: var(--muted);
}

.consent input{ margin-top:3px; }
.consent a{ text-decoration: underline; }

/* ===========================
   7) HERO SLIDER (LEFT SIDE FULL HEIGHT)
   =========================== */
.left-inner .hero-slider{
  height: 100%;
  width: 100%;
  border-radius: 0;
}

/* Slider container */
.hero-slider{
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Eğer hero-slider.php içinde wrapper varsa */
.hero-slider .slider-wrapper{
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Track: slides yan yana */
.hero-slider .slider-track{
  height: 100%;
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform .6s ease;
}

/* Slide */
.hero-slider .slide{
  height: 100%;
  min-width: 100%;
  position: relative;
}

/* Image cover */
.hero-slider .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional overlay to help readability */
.hero-slider .slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.10) 40%,
    rgba(0,0,0,.35) 100%
  );
  pointer-events:none;
}

/* Caption */
.hero-slider .slide-caption{
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 70%;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

.hero-slider .slide-caption h1,
.hero-slider .slide-caption h2{
  margin:0 0 6px;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.1;
}

.hero-slider .slide-caption p{
  margin:0;
  font-size: 14px;
  opacity: .95;
}

/* Arrows */


/* Dots (varsa) */
.hero-slider .dots{
  position:absolute;
  left:0; right:0;
  bottom:22px;
  display:flex;
  justify-content:center;
  gap:14px;
  z-index:5;
}

/* daire yerine pill gibi */
.hero-slider .dot{
  width:36px;
  height:6px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.35);
  cursor:pointer;
  transition: opacity .2s ease, transform .2s ease;
  opacity:.9;
}

.hero-slider .dot.is-active{
  background:#fff;
  opacity:1;
  transform: scale(1.05);
}

/* Varsayılan (aydınlık tema): normal */
.hero-slider .slide img{
  filter: none;
  transition: filter .35s ease;
}

/* Koyu tema: siyah-beyaz + hafif karartma */
html.theme-dark .hero-slider .slide img{
  filter: grayscale(100%) brightness(.85) contrast(1.05);
}

/* ===========================
   8) RESPONSIVE
   =========================== */
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
  .right{ border-left:0; border-top:1px solid var(--line); }
  .left-inner{ height: 48vh; }
}

/* ===========================
   9) MOBILE FIXES (EN ALTA EKLE)
   - Mobilde overflow hidden olmasın
   - Daha rahat padding / yükseklikler
   =========================== */

/* Mobilde sayfa kaydırılabilir olsun */
@media (max-width: 980px){
  body{
    overflow: auto;           /* hidden yerine */
    overflow-x: hidden;       /* yatay taşmayı yine engelle */
  }

  /* Split tek kolon */
  .split{
    grid-template-columns: 1fr;
    min-height: 100dvh;       /* mobil tarayıcı barlarına daha uyumlu */
  }

  /* Sol taraf (slider) mobilde daha kısa */
  .left{
    height: auto;             /* 100vh zorlamasını kaldır */
    min-height: 44dvh;
  }
  .left-inner{
    height: 44dvh;            /* istersen 40-55 arası oynat */
    width: 100%;
  }

  /* Sağ taraf */
  .right{
    padding-top: var(--topbar-h);
    align-items: flex-start;  /* wizard yukarıdan başlasın */
    justify-content: center;
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: calc(100dvh - 44dvh);
  }

  /* Wizard daha rahat nefes alsın */
  .wizard{
    width: min(560px, 92%);
    padding: 16px 0 22px;
  }

  /* Panel padding biraz artsın (parmak rahatlığı) */
  .panel{
    padding: 16px;
  }

  /* Caption mobilde genişlesin */
  .hero-slider .slide-caption{
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* Daha küçük ekranlar (telefon) */
@media (max-width: 520px){
  .topbar{
    padding: 0 12px;
    grid-template-columns: 1fr auto 1fr;
  }

  .topbar-right{
    gap: 10px;
    font-size: 13px;
  }

  .theme-circle{
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  /* Form elemanları daha dokunmatik */
  input, select, textarea{
    padding: 12px 12px;
    border-radius: 14px;
  }

  /* Butonlar tam taşmasın */
  .actions{
    gap: 8px;
  }
  .btn{
    padding: 10px 12px;
  }

  /* İki kolon helper zaten 1 kolona düşüyor ama boşlukları iyileştirelim */
  .two{
    gap: 8px;
  }

  /* Slider dots daha yakın */
  .hero-slider .dots{
    bottom: 14px;
    gap: 10px;
  }
  .hero-slider .dot{
    width: 30px;
    height: 6px;
  }
}

/* Çok küçük cihazlar */
@media (max-width: 360px){
  h2{ font-size: 20px; }
  .wizard{ width: 94%; }
  .panel{ padding: 14px; }
}

/* ===========================
   10) iOS SAFARI (MOBILE) FIXES
   Sadece iPhone / iPad Safari
   =========================== */

/* iOS Safari algılama */
@supports (-webkit-touch-callout: none) {

  /* Genel scroll problemi */
  body{
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 100vh yerine güvenli viewport */
  .split{
    min-height: -webkit-fill-available;
  }

  .left{
    height: auto !important;
    min-height: 42vh;
  }

  .left-inner{
    height: 42vh;
    min-height: 42vh;
  }

  .right{
    min-height: -webkit-fill-available;
    align-items: flex-start;
  }

  /* Hero slider yüksekliği Safari’de taşmasın */
  .hero-slider,
  .hero-slider .slider-wrapper,
  .hero-slider .slider-track,
  .hero-slider .slide{
    height: 100%;
    min-height: inherit;
  }

  /* iOS Safari object-fit bug fix */
  .hero-slider .slide img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    -webkit-transform: translateZ(0);
  }

  /* Fixed topbar jitter fix */
  .topbar{
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.2);
  }

  /* Form input zoom engelleme (iOS 16px altı zoom yapar) */
  input,
  select,
  textarea{
    font-size: 16px;
  }

  /* Buton tıklama gecikmesi */
  .btn,
  .theme-circle{
    touch-action: manipulation;
  }

  /* Wizard animasyonları Safari’de daha stabil */
  .step.is-active{
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* ===========================
   iPhone / iOS Safari: KVKK - Çerezler görünmeme fix
   (topbar linkleri satır kırıp 56px içinde kaybolmasın)
   =========================== */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 430px) {

    .topbar{
      padding-left: calc(12px + env(safe-area-inset-left));
      padding-right: calc(12px + env(safe-area-inset-right));
    }

    /* Sağdaki linkler tek satır kalsın, kırpılmasın */
    .topbar-right{
      white-space: nowrap;
      gap: 10px;
      font-size: 12px;
      line-height: 1;
      align-items: center;
    }

    .topbar-right a{
      display: inline-block;
      text-decoration: none;
    }

    /* Ortadaki buton biraz küçülsün, sağ tarafa yer açılsın */
    .theme-circle{
      width: 46px;
      height: 46px;
      font-size: 13px;
    }
  }
}

/* ===========================
   SECTION (Genel blok stili)
   =========================== */

.section {
  padding: clamp(28px, 4vw, 64px) 0;
  position: relative;
  overflow: hidden;
}

/* Section iç container: sitedeki container yapın varsa bunu kullan */
.section .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Başlık alanı */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-color);
}

.section-subtitle {
  margin: 6px 0 0 0;
  max-width: 70ch;
  color: color-mix(in srgb, var(--text-color) 70%, transparent);
  font-size: 14px;
  line-height: 1.55;
}

/* Sağ tarafta aksiyon buton/filtre vs. koymak istersen */
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Section iç “kart yüzeyi” (glass) */
.section-surface {
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--brand-color) 22%, transparent);
  border-radius: 22px;
  padding: clamp(14px, 2.2vw, 24px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.section-surface:hover {
  border-color: color-mix(in srgb, var(--brand-color) 38%, transparent);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

/* Alternatif: daha sade section */
.section.is-plain {
  padding: clamp(22px, 3.2vw, 48px) 0;
}

/* İnce ayrım çizgisi */
.section-divider {
  height: 1px;
  background: color-mix(in srgb, var(--text-color) 14%, transparent);
  margin: clamp(18px, 3vw, 32px) 0;
}

/* Dekor blur glow (istersen) */
.section.has-glow::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 280px;
  height: 280px;
  background: color-mix(in srgb, var(--brand-color) 32%, transparent);
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
}

.section.has-glow::after {
  content: "";
  position: absolute;
  inset: auto auto -140px -140px;
  width: 320px;
  height: 320px;
  background: color-mix(in srgb, var(--brand-color) 18%, transparent);
  filter: blur(90px);
  opacity: .25;
  pointer-events: none;
}

/* Grid yardımcı sınıfı */
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 18px);
}

@media (max-width: 992px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
