/* =========================================================
   TEMEL: sıfırlama, zemin, tipografi, yerleşim
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #3b1f17;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Fakülte girişindeki tuğla duvar: bütün sitenin zemini */
  position: relative;
  isolation: isolate; /* ışık/gölge katmanları tuğlanın üstünde, içeriğin altında kalsın */
  background: url("../assets/doku/tugla.svg") 50% 0 / 404px 248px repeat, #8f4330;
  color: var(--yazi);
  font-family: var(--font);
  font-size: var(--t-govde);
  line-height: 1.6;
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Duvarın üzerindeki ışık ve gölge: yazılar okunur kalsın */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 900px at 50% 0, rgba(255, 228, 200, .22), transparent 75%),
    linear-gradient(rgba(24, 12, 9, .42), rgba(24, 12, 9, .42));
}
body::after {
  /* tuğla yüzeyinin pürüzü */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--mavi-acik); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--mavi-acik);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.atla {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--yazi); color: var(--zemin);
  font-weight: 600; text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--hizli);
}
.atla:focus { transform: none; }

/* ---------- Yerleşim ---------- */
.kap {
  width: 100%;
  max-width: calc(var(--icerik) + 2 * var(--kenar));
  margin: 0 auto;
  padding: 0 var(--kenar);
}

.bolum { padding: clamp(64px, 11vw, 128px) 0; }
.bolum__baslik {
  font-size: var(--t-h2);
  font-stretch: var(--genis);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.bolum__giris { color: var(--yazi-soluk); font-size: var(--t-buyuk); max-width: 40ch; line-height: 1.45; }

/* ---------- Üst çubuk ---------- */
.ust { padding: 18px 0 0; }
body[data-gorunum="ana"] .ust { display: none; }
body[data-gorunum="kisi"] #gorunum-ana { display: none; } /* kişi linkiyle açılışta ana sayfa bir an görünmesin */
.logolar { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logolar { gap: 14px; }
.logo-yuvasi {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 4px 16px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.logo-yuvasi img { width: 94%; height: 94%; object-fit: contain; }
@media (min-width: 860px) { .logo-yuvasi { width: 84px; height: 84px; } .logolar { gap: 18px; } }
.logo-yer-tutucu { font-weight: 800; font-size: .7rem; color: var(--pau-logo); text-align: center; line-height: 1.05; }
.logolar__yazi { font-size: 1rem; line-height: 1.3; color: var(--yazi-soluk); }
.logolar__yazi strong { display: block; color: var(--yazi); font-weight: 700; font-size: 1.08rem; }
@media (min-width: 860px) { .logolar__yazi { font-size: 1.15rem; } .logolar__yazi strong { font-size: 1.3rem; font-stretch: var(--yari-genis); } }
@media (max-width: 400px) { .logolar__yazi { font-size: .9rem; } .logolar__yazi strong { font-size: .98rem; } }

/* ---------- Alt bilgi ---------- */
.alt {
  background: rgba(8, 10, 16, .82);
  border-top: 4px solid #b9c1cc;
  padding: 44px 0 calc(44px + env(safe-area-inset-bottom));
  color: var(--yazi-soluk);
  font-size: .92rem;
}
.alt__ic { display: grid; gap: 28px; }
@media (min-width: 760px) { .alt__ic { grid-template-columns: 1.5fr 1fr 1fr; } }
.alt h2 { font-size: 1rem; font-weight: 600; color: var(--yazi); margin-bottom: 8px; line-height: 1.3; }
.alt p { margin: 0 0 4px; }
.alt a { color: var(--yazi); }
/* personel bağlantısı: ziyaretçinin gözüne batmasın ama personel bulabilsin */
.alt__personel { margin-top: 14px !important; font-size: .8rem; }
.alt .alt__personel a { color: var(--yazi-soluk); }

/* ---------- Görünümler ---------- */
[data-gorunum][hidden] { display: none !important; }


.yukleniyor { min-height: 30vh; display: grid; place-items: center; color: var(--plaka-2); grid-column: 1 / -1; }

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* PAÜ sayfasındaki 4000+ px'lik iframe: iPhone'un boyama yükünü azalt
   (tuğla pürüzü katmanı bütün alan boyunca mix-blend hesaplatıyordu) */
.gomulu body::after { display: none; }
