/* ========== TEMEL ========== */
*{ box-sizing:border-box }
html,body{
  margin:0; padding:0; min-height:100vh;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#0f172a; background:linear-gradient(135deg,#FFB703,#8ECAE6);
}
h1,h2,h3{ margin:0; }
.site-logo {
  max-width: 100%; /* Logonun bulunduğu kapsayıcıdan taşmamasını sağlar */
  height: auto; /* Genişlik değiştiğinde yüksekliğin orantılı olarak ayarlanmasını sağlar */
  display: block; /* Margin auto ile ortalamak için */
  margin: 0 auto; /* Logoyu yatayda ortalar */
}

@media (max-width: 768px) {
  .site-logo {
    width: 280px; /* Mobil cihazlarda daha küçük bir genişlik */
    height: auto; /* Orantıyı koru */
  }
}
/* ========== ANA SAYFA (hero) ========== */
.home .hero{
  text-align:center;
  padding:120px 16px 24px;
  color:#fff;
}
.hero-inner{ max-width:920px; margin:0 auto; }
.hero h1{ font-size:48px; line-height:1.1; }
.wave{ height:60px; margin-top:24px; background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.18) 100%); filter:blur(10px); }

/* Kartlar */
.grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px; max-width:1100px; margin:0 auto; padding:22px;
}
.card{
  background:linear-gradient(135deg,#fff 0%,#f3f7ff 70%);
  border:3px solid #33658a; border-radius:20px; padding:24px;
  text-decoration:none; color:#0f172a;
  box-shadow:0 16px 44px rgba(0,0,0,.18), 0 0 0 4px rgba(51,101,138,.06) inset;
  transform:scale(1.02); transition:.25s;
  display:flex; flex-direction:column; justify-content:center; min-height:120px; font-weight:800;
}
.card:hover{ transform:scale(1.06); box-shadow:0 26px 70px rgba(0,0,0,.22), 0 0 0 6px rgba(51,101,138,.12) inset; }
.card .chip{ display:inline-block; background:#0f172a; color:#fff; font-size:12px; font-weight:700; padding:5px 10px; border-radius:999px; }
.card h2{ font-size:18px; margin:8px 0 0; }

/* ========== SAYFA ÜSTÜ ========== */
.page .page-header{
  display:flex; gap:10px; align-items:center; justify-content:center;
  padding:16px; background:rgba(255,255,255,.5); backdrop-filter:blur(8px);
}
.page .back{ color:#0f172a; font-weight:700; text-decoration:none; }

/* ========== KONTROLLER ========== */
.controls{
  margin:14px auto; background:rgba(255,255,255,.6); backdrop-filter:blur(10px);
  border-radius:14px; padding:14px 16px; max-width:900px; box-shadow:0 8px 26px rgba(0,0,0,.12);
}
.control-row{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; align-items:center; }
.controls input{ border:1px solid #E5E7EB; border-radius:8px; padding:8px 10px; font-size:14px; background:#fff; }

/* Konu menüsü */
.konu-wrap{ display:grid; gap:8px; }
.konu-menu{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:6px 0; }
.konu-btn{
  border:1px solid rgba(0,0,0,.12); background:#fff; border-radius:999px;
  padding:8px 12px; font-weight:600; cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .15s ease, background .2s ease; font-size:15px;
}
.konu-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.12); }
.konu-btn.active{ color:#fff; border-color:transparent; background:linear-gradient(135deg,#6a5bfd,#2cb4ff); box-shadow:0 8px 18px rgba(0,0,0,.18); }

/* Butonlar */
.btn{
  padding:10px 16px; border:0; border-radius:10px; background:#111827; color:#fff;
  cursor:pointer; font-weight:700; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; min-height:44px; display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.15); }
.btn.primary{ background:linear-gradient(135deg,#0b2545,#33658a); }
.btn.primary:hover{ background:linear-gradient(135deg,#0b2545,#4a7aa3); }

/* ========== A4 KAĞIT ========== */
.paper{
  position:relative;               /* su damgası için referans */
  width:210mm; height:297mm; background:#fff; margin:20px auto;
  padding:16mm 10mm 12mm;
  border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,.15); overflow:hidden; color:#111;
}

/* DİKEY SU DAMGASI — tam orta, sola dönük (-90°), üstte */
.wm-vertical{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%) rotate(-90deg);   /* sola yön */
  font-weight:800; font-size:26pt; letter-spacing:.5px;
  color:#000; opacity:.10; text-transform:lowercase;
  pointer-events:none; user-select:none;
  z-index:5;                 /* kutuların ÜSTÜNDE */
  white-space:nowrap;
  mix-blend-mode: multiply;  /* metin kağıda uyumlu görünür */
}
@media print{
  .wm-vertical{ opacity:.16; }      /* yazdır/PDF’te biraz daha belirgin */
}

.paper-header{
  position:relative; z-index:6;     /* su damgasının üstünde görünmesi istiyorsan 6 yap */
  margin-bottom:4mm; font-size:12px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:3mm 8mm;
}
.paper-footer{ position:relative; z-index:6; text-align:right; font-size:10px; color:#64748b; margin-top:3mm; }
.paper-body{ position:relative; z-index:6; }

/* 10 sabit kutu — 2 sütun x 5 satır */
.soru-grid{
  list-style:none; padding:0; margin:0;
  display:grid; grid-template-columns:1fr 1fr;
  grid-auto-rows:48mm; gap:5mm 8mm;
}
.soru-grid > li.qbox{
  height:48mm; border:1px solid #e6e6e6; border-radius:4px; padding:3mm; box-sizing:border-box;
  display:grid; grid-template-columns:13mm 1fr; grid-template-rows:auto 1fr auto; column-gap:4mm; row-gap:3mm;
  background:#fff;
}
.qtitle{ font-weight:700; font-size:12pt; line-height:1; text-align:right; padding-top:1mm; }
.qtext{
  grid-column:2 / -1; font-size:11pt; line-height:1.35; margin:0;
  overflow:hidden; word-wrap:break-word;
}
/* Cevap alanı — tek boş şerit */
.qlines{ grid-column:1 / -1; height:12mm; border:none; margin:0; }

/* FOOTER */
.site-footer{
  margin-top:48px; padding:24px 16px; background:linear-gradient(90deg,rgba(0,0,0,0.06),rgba(0,0,0,0.03));
  border-top:1px solid rgba(0,0,0,0.06); backdrop-filter:blur(6px);
}
.site-footer .footer-inner{
  max-width:1000px; margin:0 auto; display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center;
}
.footer-links{ display:flex; flex-wrap:wrap; gap:12px 18px; justify-content:center; }
.footer-links a{ text-decoration:none; font-weight:500; opacity:.9; }
.footer-links a:hover{ text-decoration:underline; }

/* Ana sayfa simgesi */
.home-btn{
  position:fixed; left:16px; bottom:16px; width:46px; height:46px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.75);
  border:1px solid rgba(0,0,0,0.08); box-shadow:0 6px 18px rgba(0,0,0,0.10); backdrop-filter:blur(6px);
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease; z-index:9999;
}
.home-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,0.9); box-shadow:0 10px 24px rgba(0,0,0,0.14); }
.home-btn svg{ width:22px; height:22px; opacity:.9; }

/* Yazdır (alt boşluk sıkı) */
@media print{
  html,body{ margin:0; padding:0; background:#fff; }
  .page-header,.controls,.site-footer,.home-btn{ display:none !important; }
  .paper{ box-shadow:none; margin:0; border-radius:0; padding:14mm 10mm 10mm; }
  .soru-grid{ grid-auto-rows:49mm; gap:4mm 8mm; }
}
