/*
Theme Name: Metis Academia
Version: 1.0.0
*/

/* =========================================================
   0) TOKENS
   ========================================================= */
:root{
  --ma-bg: #f6f3ee;
  --ma-surface: rgba(255,255,255,.72);
  --ma-surface-2: rgba(255,255,255,.55);
  --ma-stroke: rgba(18, 24, 38, .12);
  --ma-text: #121826;
  --ma-muted: rgba(18, 24, 38, .60);
  --ma-accent: #0f766e;
  --ma-accent-2: #b45309;

  --ma-radius: 18px;
  --ma-shadow: 0 22px 70px rgba(18,24,38,.10);

  --ma-font-serif: "Spectral", "Cardo", serif;
  --ma-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ma-topbar-h: 72px;

  /* global gutters */
  --ma-gutter-x: 18px; /* left/right outer padding */
  --ma-gap: 18px;      /* between columns */
}

/* =========================================================
   1) RESET + BASE
   ========================================================= */
*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--ma-text);
  font-family: var(--ma-font-sans);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(15,118,110,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(180,83,9,.10), transparent 55%),
    var(--ma-bg);

  /* Sayfa asla scroll etmesin: scroll içeride olacak */
  overflow: hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

img{ max-width: 100%; height: auto; display: block; }

/* =========================================================
   2) APP SHELL (GLOBAL)
   - Bu zincir BOZULMAYACAK: height + min-height + flex
   ========================================================= */
.ma-shell{
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.ma-topbar{
  height: var(--ma-topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 22px;
  border-bottom: 1px solid var(--ma-stroke);

  background: linear-gradient(to bottom, rgba(255,255,255,.70), rgba(255,255,255,.40));
  backdrop-filter: blur(10px);
}

/* left */
.ma-topbar-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.ma-logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ma-logo-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15,118,110,.10);
  border: 1px solid rgba(15,118,110,.22);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ma-accent);
  line-height: 1;
}

.ma-logo-title{
  font-family: var(--ma-font-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.1;
}

.ma-logo-sub{
  font-size: 11px;
  color: var(--ma-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* nav */
.ma-nav{
  display: flex;
  gap: 18px;
  align-items: center;

  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ma-muted);
}

.ma-nav a{
  padding: 8px 10px;
  border-radius: 999px;
}

.ma-nav a:hover{
  background: rgba(15,118,110,.10);
  color: var(--ma-text);
  text-decoration: none;
}

.ma-nav a[aria-current="page"]{
  background: rgba(15,118,110,.16);
  color: var(--ma-text);
}

/* =========================================================
   3) CONTENT WRAPPER (GLOBAL)
   - Burası “2. satır”: tüm sayfalar buraya render olur
   - Yükseklik burada kesinlenir, içeride scroll olur
   ========================================================= */
.ma-app{
  flex: 1 1 auto;
  min-height: 0; /* ✅ iç scroll için KRİTİK */

  /* outer gutters */
  padding: var(--ma-gutter-x) var(--ma-gutter-x) 22px;
}

/* =========================================================
   4) PAGE-SCOPED GUTTERS (LEXICON)
   - Lexicon archive’da sağ gutter’ı .lex üstleniyordu.
   - Bunu globalde değil, sadece lexicon sayfasında yap.
   ========================================================= */
.page-lexicon .ma-app{
  /* sağ boşluğu lexicon layout kendisi yönetecek */
  padding-right: 0;
}

/* SINGLE sayfasında ma-app normal kalsın (gutter = 18px) */
.is-lexicon-single .ma-app{
  padding-right: var(--ma-gutter-x);
}

/* =========================================================
   5) OPTIONAL: nicer text rendering
   ========================================================= */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   6) MOBILE SAFETY (isteğe bağlı)
   - Mobilde body scroll serbest bırakmak istersen açarsın.
   ========================================================= */
/*
@media (max-width: 780px){
  body{ overflow: auto; }
  .ma-shell{ height: auto; min-height: 100vh; }
  .ma-app{ min-height: auto; }
}
*/