/* ==========================================================
   quveras.com - temel stil
   Palet: say the name! seventeen
     #f7cac9 - #dec2cb - #c5b9cd - #abb1cf - #92a8d1
   Açık tema: zemin #f7cac9, banner+b kutu beyaz, vurgu #92a8d1
   Koyu tema: zemin #1a2036, kutu/banner #232a45, font beyaz,
   palet (#c5b9cd/#92a8d1) sadece muted/vurgu olarak
   Font: Outfit (assets/outfit.ttf)
   ========================================================== */

/* Outfit: değişken ağırlıklı (100-900) tek dosya font */
@font-face {
  font-family: "Outfit";
  src: url("assets/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* AÇIK TEMA (default) */
  --bg: #f7cac9;
  --banner-bg: #ffffff;
  --box-bg: #ffffff;
  --text: #333344;
  --muted: #8a8496;
  --accent: #92a8d1;
  --accent-text: #ffffff;
  --border: #dec2cb;
  --shadow: rgba(146, 168, 209, 0.35);
  --link: #4a6fa5;
  --link-hover: #334e75;
}

/* KOYU TEMA - gerçek koyu zemin + beyaz font, palet vurgu olarak */
html[data-theme="dark"] {
  --bg: #1a2036;
  --banner-bg: #232a45;
  --box-bg: #232a45;
  --text: #ffffff;
  --muted: #c5b9cd;
  --accent: #92a8d1;
  --accent-text: #1a2036;
  --border: #3d476b;
  --shadow: rgba(0, 0, 0, 0.5);
  --link: #abb1cf;
  --link-hover: #f7cac9;
}

* {
  box-sizing: border-box;
}

/* form elemanları (buton vb.) fontu body'den miras almaz, zorla al */
button {
  font: inherit;
}

/* ufak geçiş animasyonu (tema değişimi yumuşak olsun) */
body,
.banner,
.box,
.btn,
.footer,
.menu a,
#themeBtn,
.avatar {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* blurlu arka plan görseli (temanın rengi alttan görünür) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/animals.webp") center / cover no-repeat;
  filter: blur(12px);
  transform: scale(1.05);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* ---- BANNER ---- */
.banner {
  background: var(--banner-bg);
  border-bottom: 1px solid var(--border);
}

.banner-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
}

.menu a:hover {
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 4px;
}

#themeBtn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

#themeBtn:hover {
  background: var(--accent);
  color: var(--accent-text);
}

/* ---- ORTALANMIŞ KUTU ---- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box {
  width: 100%;
  max-width: 680px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  /* loş shadow box */
  box-shadow: 0 4px 24px var(--shadow);
}

.profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-size: 26px;
}

.subtitle {
  margin: 4px 0 0 0;
  color: var(--muted);
}

h2 {
  margin-top: 28px;
  font-size: 19px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.list {
  padding-left: 20px;
  margin: 0;
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: 1px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.btn:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

/* kutu içi metin linkleri (tarayıcı moru kullanılmaz) */
.box a:not(.btn):not(.back-link) {
  color: var(--link);
}

.box a:not(.btn):not(.back-link):visited {
  color: var(--link);
}

.box a:not(.btn):not(.back-link):hover {
  color: var(--link-hover);
}

.footer {
  margin-top: 20px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* md'den gelen görseller kutuya sığar, tıklayınca büyür */
.box img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 12px 0;
}

.box img:not(.avatar) {
  cursor: zoom-in;
}

/* launcher'a özel: yazı sol kutu, galeri sağ kutu */
.page:has(#content.has-split) {
  max-width: 1140px;
}

#content.has-split {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

.split {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.split-text {
  flex: 1.15;
  min-width: 0;
}

.split-gallery {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gal-grid {
  display: grid;
  gap: 10px;
  flex: 1;
  min-height: 0;
  grid-auto-rows: 1fr;
}

.gal-grid img {
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

@media (max-width: 900px) {
  .split {
    flex-direction: column;
  }
  .split-text,
  .split-gallery {
    width: 100%;
  }
  .gal-grid img {
    height: auto; /* mobilde kırpma yok, tam boy */
  }
}

/* lightbox: büyütülmüş görsel */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 8px;
}

.lightbox-caption {
  color: #fff;
  margin: 10px 0 0 0;
  font-size: 14px;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #fff;
  color: #000;
}

.footer p {
  margin: 0;
}

/* ---- ARTICLE / TUTORIAL (sade, fancy yok) ---- */
.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--accent);
}

.meta {
  margin: 0 0 4px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.step {
  margin-top: 8px;
}

pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
}

code {
  font-family: Consolas, Menlo, monospace;
}

p code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}

.note,
blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

blockquote {
  margin: 12px 0;
}

blockquote p {
  margin: 0;
}

/* Mobil uyum */
@media (max-width: 600px) {
  .banner-inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
  }
  .menu {
    flex-wrap: wrap;          /* uzun linkler ikinci satıra insin */
    justify-content: center;
    max-width: 100%;
  }
  .menu a {
    padding: 4px 8px;
    font-size: 15px;
  }
  #themeBtn {
    padding: 4px 10px;
    font-size: 14px;
  }
  .box {
    padding: 20px;
  }
}
