/* ==========================================================================
   Cyber Gate — Ortak Stil Dosyası
   Tüm sayfalarda kullanılan tasarım değişkenleri, temel stiller,
   header / footer ve yeniden kullanılabilir bileşenler.
   ========================================================================== */

/* ---------- 0. Kurumsal Font ----------
   Barlow (SIL OFL): logodaki DIN tarzı "CYBER GATE" yazısına en yakın açık lisanslı font.
   Siteye gömülüdür (assets/fonts), dış bağlantı gerektirmez. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- 1. Tasarım Değişkenleri ---------- */
:root {
  /* Renkler — logo mavisi (#048ED3) temelli */
  --bg:            #07111d;
  --bg-2:          #0a1726;
  --surface:       #0e1d30;
  --surface-2:     #13263d;
  --border:        rgba(150, 190, 225, 0.12);
  --border-strong: rgba(150, 190, 225, 0.24);

  --primary:       #048ed3;
  --primary-600:   #0373ab;
  --primary-300:   #5bb8ea;
  --accent:        #5bb8ea;
  --accent-glow:   rgba(4, 142, 211, 0.3);

  --text:          #eef3f8;
  --text-muted:    #9aabbf;
  --text-dim:      #687a90;

  --success:       #34d399;
  --warning:       #fbbf24;
  --danger:        #f87171;

  /* Tipografi */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand:   "Barlow", "Bahnschrift", "DIN Alternate", var(--font-sans);
  --font-display: var(--font-brand);
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Ölçüler */
  --container: 1200px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --header-h:  72px;

  --shadow:      0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. Temel / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 2b. Arka plan nokta deseni (dot-pattern bileşeni) ----------
   Bileşenin demosundaki gibi: noktalar ışık merkezinde parlak, uzaklaştıkça
   giderek kararır  →  [mask-image: radial-gradient(400px circle at center, white, transparent)]
   Fark: ışığın merkezi ekranın ortası değil, fare imleci. İmleci yumuşak bir
   gecikmeyle takip eder (core.js → initDotBackground). Katman sabittir; sayfa
   kaydırılırken hareket etmez, bu yüzden titreme olmaz.
   Fare olmayan cihazlarda (telefon/tablet) ışık ekranın ortasında sabit durur. */
.bg-dots {
  --dots-mx: 50%; --dots-my: 50%; --dots-r: 400px;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(var(--dots-r) circle at var(--dots-mx) var(--dots-my), #fff, transparent);
          mask-image: radial-gradient(var(--dots-r) circle at var(--dots-mx) var(--dots-my), #fff, transparent);
}
.bg-dots svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(100, 116, 139, .5); } /* fill-slate-500/50 */
@media (min-width: 768px) { .bg-dots svg { fill: rgba(100, 116, 139, .7); } }                          /* md:fill-slate-500/70 */
@media (hover: none) { .bg-dots { --dots-r: 70vmax; } }

/* İçerik desenin üstünde kalsın */
main, .site-footer { position: relative; z-index: 1; }

/* ---------- 3. Yerleşim ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(10, 23, 38, .75), rgba(7, 17, 29, 0)); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head__text { max-width: 620px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-300); margin-bottom: 12px;
}

.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.section-title span { color: var(--primary); }
.section-desc { color: var(--text-muted); font-size: 17px; margin: 0; }

/* ---------- 4. Butonlar ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--btn-bg); border: 1px solid var(--border-strong);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: var(--primary-300); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--primary);
  background: var(--btn-bg); border-color: transparent; color: #fff;
}
.btn--primary:hover { background: var(--primary-600); }

.btn--ghost { background: transparent; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--primary-300); font-weight: 600; font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4b. Rainbow Button (rainbow-button bileşeninin saf CSS hâli) ----------
   Kullanım: <a class="btn-rainbow" href="..."><span class="btn-rainbow__label">Metin</span></a>
   Arka plan: kartlarla aynı (--surface). Renkler --color-1 … --color-5 (HSL), hız --speed ile değiştirilebilir. */
.btn-rainbow {
  --color-1: 0 100% 63%;
  --color-2: 270 100% 63%;
  --color-3: 210 100% 63%;
  --color-4: 195 100% 63%;
  --color-5: 90 100% 63%;
  --speed: 2s;
  --rainbow: linear-gradient(90deg, hsl(var(--color-1)), hsl(var(--color-5)), hsl(var(--color-3)), hsl(var(--color-4)), hsl(var(--color-2)));

  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 8px 32px; border-radius: 12px; cursor: pointer;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: #fff; white-space: nowrap;
  border: calc(0.08 * 1rem) solid transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(var(--surface) 50%, rgba(14, 29, 48, .6) 80%, rgba(14, 29, 48, 0)),
    var(--rainbow);
  background-size: 200%;
  background-origin: border-box;
  background-clip: padding-box, border-box, border-box;
  animation: rainbow var(--speed) infinite linear;
  transition: color .2s;
}
.btn-rainbow::before {
  content: ""; position: absolute; z-index: 0; bottom: -20%; left: 50%;
  width: 60%; height: 20%; transform: translateX(-50%);
  background-image: var(--rainbow); background-size: 200%;
  filter: blur(calc(0.8 * 1rem));
  animation: rainbow var(--speed) infinite linear;
}
.btn-rainbow__label { position: relative; z-index: 1; }
.btn-rainbow:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--primary-300); }
@keyframes rainbow { 0% { background-position: 0%; } 100% { background-position: 200%; } }

/* ---------- 4c. Flow Button (flow-button bileşeninin saf CSS hâli) ----------
   Orijinal açık tema içindir (#111 yazı/daire). Koyu sitemize uyarlandı:
   kenar ve yazı açık renk, dolan daire logo mavisi.
   Kullanım: <a class="flow-btn"><svg arr-left/><span text/><span circle/><svg arr-right/></a> */
.flow-btn {
  --fb-ink: #eef3f8;           /* yazı ve ok rengi (orijinal: #111111) */
  --fb-fill: var(--primary);   /* üzerine gelince dolan daire (orijinal: #111111) */
  position: relative; display: inline-flex; align-items: center; gap: 4px; overflow: hidden;
  padding: 12px 32px; border-radius: 100px; border: 1.5px solid rgba(238, 243, 248, .3);
  background: transparent; color: var(--fb-ink); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .6s cubic-bezier(.23, 1, .32, 1);
}
.flow-btn:hover { border-color: transparent; color: #fff; border-radius: 12px; }
.flow-btn:active { scale: .95; }
.flow-btn:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; }
.flow-btn__arr {
  position: absolute; z-index: 9; width: 16px; height: 16px; fill: none; stroke: var(--fb-ink);
  transition: all .8s cubic-bezier(.34, 1.56, .64, 1);
}
.flow-btn__arr--left  { left: -25%; }
.flow-btn__arr--right { right: 16px; }
.flow-btn:hover .flow-btn__arr--left  { left: 16px; stroke: #fff; }
.flow-btn:hover .flow-btn__arr--right { right: -25%; stroke: #fff; }
.flow-btn__text { position: relative; z-index: 1; transform: translateX(-12px); transition: all .8s ease-out; white-space: nowrap; }
.flow-btn:hover .flow-btn__text { transform: translateX(12px); }
.flow-btn__circle {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fb-fill); opacity: 0; transform: translate(-50%, -50%);
  transition: all .8s cubic-bezier(.19, 1, .22, 1);
}
.flow-btn:hover .flow-btn__circle { width: 220px; height: 220px; opacity: 1; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(7, 17, 29, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-brand); font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.brand__sub { font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(122, 169, 255, .08); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: translateX(-50%);
}

/* ---------- Açılır menü (animated-dropdown bileşeninin saf CSS hâli) ----------
   Açılış: opacity 0, y -10, scale .95 → normal (.2s easeOut); öğeler soldan sırayla (0.03 sn arayla) gelir.
   Ok ikonu açıkken 180° döner. */
.nav-dd { position: relative; }
.nav-dd__btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav-dd__chev { display: grid; place-items: center; transition: transform .2s ease-in-out; }
.nav-dd__chev svg { width: 16px; height: 16px; }
.nav-dd[data-state="open"] .nav-dd__chev { transform: rotate(180deg); }
.nav-dd[data-state="open"] .nav-dd__btn { color: var(--text); background: rgba(122, 169, 255, .08); }

.nav-dd__menu {
  position: absolute; top: calc(100% + .5rem); left: 50%; z-index: 50;
  width: max-content; min-width: max(100%, 190px);
  border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 2px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .45), 0 4px 6px -4px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px) scale(.95); transform-origin: top center;
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s;
}
.nav-dd[data-state="open"] .nav-dd__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s;
}
.nav-dd__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  background: rgba(7, 17, 29, .35); border-bottom: 2px solid var(--border);
  transition: background-color .15s, color .15s;
}
.nav-dd__item:last-child { border-bottom: 0; }
.nav-dd__item:hover, .nav-dd__item:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.nav-dd__item.is-active { color: var(--primary-300); }
.nav-dd__item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary-300); }
.nav-dd__item > * { transition: opacity .2s ease-out, transform .2s ease-out; }
.nav-dd[data-state="closed"] .nav-dd__item > * { opacity: 0; transform: translateX(-20px); transition: none; }
.nav-dd[data-state="open"] .nav-dd__item > * { transition-delay: calc(var(--i, 0) * .03s); }

/* Mobil menüde: aynı öğe, altında genişleyen liste */
.nav-dd--mobile .nav-dd__btn {
  width: 100%; justify-content: space-between; font-size: 18px; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-muted); text-align: left;
}
.nav-dd--mobile .nav-dd__btn.is-active { border-color: var(--primary); color: var(--text); }
.nav-dd--mobile .nav-dd__btn.is-active::after { display: none; }
.nav-dd--mobile .nav-dd__menu {
  position: static; transform: none; width: 100%; min-width: 0; margin-top: 6px; box-shadow: none;
  display: grid; grid-template-rows: 0fr; border-width: 0;
  transition: grid-template-rows .25s ease-out, opacity .2s ease-out, visibility 0s linear .25s;
}
.nav-dd--mobile[data-state="open"] .nav-dd__menu { transform: none; grid-template-rows: 1fr; border-width: 2px; transition: grid-template-rows .25s ease-out, opacity .2s ease-out, visibility 0s; }
.nav-dd--mobile .nav-dd__list { min-height: 0; overflow: hidden; }
.nav-dd--mobile .nav-dd__item { font-size: 16px; padding: 14px 18px; }
@media (prefers-reduced-motion: reduce) {
  .nav-dd__menu, .nav-dd__item > *, .nav-dd__chev { transition: none !important; }
}

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

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobil menü */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(7, 17, 29, .98); backdrop-filter: blur(10px);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a.nav__link { font-size: 18px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.mobile-nav a.nav__link.is-active::after { display: none; }
.mobile-nav a.nav__link.is-active { border-color: var(--primary); color: var(--text); }
.mobile-nav .btn { margin-top: 12px; }

body.menu-open { overflow: hidden; }

/* ---------- 6. Kartlar ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--surface), rgba(11, 24, 48, .6));
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(4, 142, 211, .14); color: var(--primary-300); border: 1px solid rgba(4, 142, 211, .3);
}
.tag--cyan    { background: rgba(148, 163, 184, .12); color: #c3cfdc; border-color: rgba(148, 163, 184, .3); }
.tag--green   { background: rgba(52, 211, 153, .12); color: var(--success); border-color: rgba(52, 211, 153, .3); }
.tag--amber   { background: rgba(251, 191, 36, .12); color: var(--warning); border-color: rgba(251, 191, 36, .3); }
.tag--red     { background: rgba(248, 113, 113, .12); color: var(--danger); border-color: rgba(248, 113, 113, .3); }

/* Haber kartı (ana sayfa + haberler sayfası ortak) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-dim); }
.news-card__title { font-size: 20px; margin: 0; transition: color .2s; }
.news-card:hover .news-card__title { color: var(--primary-300); }
.news-card__excerpt { color: var(--text-muted); font-size: 15px; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Boş durum */
.empty-state {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  color: var(--text-muted);
}
/* "Daha fazla" butonu alanı (haberler, geçmiş etkinlikler) */
.news-more { display: flex; justify-content: center; margin-top: 40px; }
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--text-dim); }

/* ---------- 6b. Glow Card (spotlight-card bileşeninin saf CSS + JS hâli) ----------
   Fare imleci yaklaştıkça kartın kenarında renkli bir ışık ve hafif bir dış parlama
   oluşur. core.js → CG.initGlow() uygun kartlara .glow sınıfını ve data-glow
   özniteliğini ekler, imleç konumunu her karta --gx / --gy olarak yazar.
   Ayarlar: --glow-base (renk tonu, 200 = logo mavisi), --glow-spread (ekran boyunca
   ton kayması), --glow-size (ışık çapı, px), --glow-border (kenar kalınlığı). */
.glow[data-glow] {
  --glow-base: 200;
  --glow-spread: 40;
  --glow-size: 200;
  --glow-border: 2px;
  --glow-bg: linear-gradient(var(--surface), var(--surface));
  --glow-hue: calc(var(--glow-base) + (var(--gxp, 0) * var(--glow-spread)));
  --glow-at: calc(var(--gx, -9999) * 1px) calc(var(--gy, -9999) * 1px);

  border-width: var(--glow-border); border-style: solid;
  background-image:
    radial-gradient(calc(var(--glow-size) * 1px) calc(var(--glow-size) * 1px) at var(--glow-at),
      hsl(var(--glow-hue) 100% 70% / .1), transparent),
    var(--glow-bg);
  background-origin: border-box;
  box-shadow: 0 1rem 2rem -1rem #000;
}
.glow[data-glow]::before,
.glow[data-glow]::after,
.glow__halo::before,
.glow__halo::after {
  pointer-events: none; content: ""; position: absolute; z-index: 2;
  inset: calc(var(--glow-border) * -1);
  border: var(--glow-border) solid transparent; border-radius: inherit;
  background-repeat: no-repeat; background-origin: border-box; background-clip: border-box;
  /* Sadece kenar (border) alanı görünsün */
  -webkit-mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#fff, #fff) border-box;
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#fff, #fff) border-box;
          mask-composite: exclude;
}
/* Renkli kenar ışığı */
.glow[data-glow]::before,
.glow__halo::before {
  background-image: radial-gradient(
    calc(var(--glow-size) * .75px) calc(var(--glow-size) * .75px) at var(--glow-at),
    hsl(var(--glow-hue) 100% 50% / 1), transparent 100%);
  filter: brightness(2);
}
/* Beyaz çekirdek ışık */
.glow[data-glow]::after,
.glow__halo::after {
  background-image: radial-gradient(
    calc(var(--glow-size) * .5px) calc(var(--glow-size) * .5px) at var(--glow-at),
    hsl(0 100% 100% / 1), transparent 100%);
}
/* Dış parlama: kenar ışığının bulanıklaştırılmış kopyası */
.glow__halo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; opacity: 1; will-change: filter;
  filter: blur(calc(var(--glow-border) * 10));
}
.glow__halo::before {
  inset: -10px; border-width: 10px;
  /* Bu katman kartın iç kutusundan 10px taşar; ışık noktası buna göre kaydırılır */
  --glow-at: calc(var(--gx, -9999) * 1px - var(--glow-border) + 10px) calc(var(--gy, -9999) * 1px - var(--glow-border) + 10px);
}

/* Kenar ışığının kırpılmaması için */
.card.glow { overflow: visible; }
.card.glow .news-card__media { border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0; }
.card.glow { --glow-bg: linear-gradient(180deg, var(--surface), rgba(11, 24, 48, .6)); }

@media (hover: none) { .glow__halo, .glow[data-glow]::before, .glow[data-glow]::after { display: none; } }

/* ---------- 6c. Ortalanmış bölüm başlığı (EKİPLERİMİZ. / EKİP ARKADAŞLARIMIZ.) ---------- */
.teams-head { text-align: center; max-width: 720px; margin: 0 auto 52px; display: flex; flex-direction: column; align-items: center; }
.teams-head__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--primary-300);
  margin-bottom: 14px;
}
.teams-head__title {
  margin: 0; font-family: var(--font-brand); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--text);
}
.teams-head__desc { margin: 16px 0 0; font-size: 18px; color: var(--text-muted); }
.teams-head .link-arrow { margin-top: 18px; }

/* Kartlar sabit genişlikte ve ortalı: ekip sayısı az olsa da kartlar aşırı büyümez */

/* ---------- 6d. Ekip üyesi kartı (ana sayfa + ekip sayfası) ---------- */
.members-desc { font-style: italic; }
/* Profil kartı (cards bileşeni, düzenlenmiş hâli):
   - Dış kutu 1px kenarlı (p-px); fare üzerindeyken imleci takip eden mavi-mor ışık kenardan ve
     yarı saydam iç kutudan sızar (blur-3xl, opacity geçişi .5s)
   - Üstte büyük kare, yumuşak köşeli fotoğraf; altında ad, görev ve sosyal medya butonları */
.member-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 20px; }
.member {
  width: clamp(170px, calc((100% - 5 * 20px) / 6), 230px);
  display: flex;
}
.member__card {
  --mx: 50%; --my: 30%;
  position: relative; width: 100%; padding: 1px; border-radius: 14px; overflow: hidden;
  background: rgba(150, 190, 225, .12);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .35), 0 4px 6px -4px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
}
.member__card:hover { transform: translateY(-2px); }
.member__blob {
  position: absolute; z-index: 0; top: calc(var(--my) - 120px); left: calc(var(--mx) - 120px);
  width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #d8b4fe);
  filter: blur(64px); opacity: 0; transition: opacity .5s;
}
.member__card:hover .member__blob { opacity: 1; }
.member__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 14px 18px; border-radius: 13px;
  background: rgba(10, 21, 36, .82);
}
.member__photo {
  display: block; padding: 0; cursor: zoom-in;
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 0;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member__card:hover .member__photo img { transform: scale(1.04); }
/* Fotoğraf yoksa baş harfler */
.member__initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-brand); font-size: 44px; font-weight: 700; color: var(--primary-300);
  background: radial-gradient(circle at 50% 30%, rgba(4, 142, 211, .22), transparent 70%), var(--surface-2);
}
div.member__photo { cursor: default; }
.member__photo:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; }
/* Sosyal medya: gri, üzerine gelince yukarı kalkar ve renklenir */
.member__socials { display: flex; justify-content: center; gap: 14px; margin-top: auto; padding-top: 14px; }
.member__social { display: grid; place-items: center; color: #94a3b8; transition: transform .2s, color .2s; }
.member__social svg { width: 26px; height: 26px; }
.member__social:hover { transform: translateY(-2px); color: #fff; }
.member__social:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; border-radius: 6px; }

/* Fotoğraf görüntüleyici */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 8, 15, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox[hidden], .lightbox[aria-hidden="true"] { pointer-events: none !important; }  /* kapanırken tıklamaları engellemez */
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(.94); transition: transform .3s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__img { max-width: min(560px, 90vw); max-height: 78vh; width: auto; height: auto; border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); cursor: default; }
.lightbox__cap { font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: #fff; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .14); }
.lightbox__close svg { width: 22px; height: 22px; }
body.lightbox-open { overflow: hidden; }
.member__name { margin: 16px 0 0; font-family: var(--font-brand); font-size: 20px; font-weight: 700; letter-spacing: 0; color: #fff; }
.member__role { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: #818cf8; white-space: pre-line; }
.member__role.is-highlight { color: var(--primary-300); font-weight: 600; }
.members-cta { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 1023px) { .member { width: clamp(170px, calc((100% - 2 * 20px) / 3), 240px); } }
@media (max-width: 640px) {
  .member-grid { gap: 14px 12px; }
  .member { width: calc((100% - 12px) / 2); }
  .member__inner { padding: 10px 10px 14px; }
  .member__name { font-size: 16.5px; margin-top: 12px; }
  .member__role { font-size: 13px; }
  .member__social svg { width: 24px; height: 24px; }
}

/* ---------- 7. Footer (hover-footer bileşeninin saf CSS hâli) ----------
   footer: bg-[#0F0F11]/10, rounded-3xl, overflow-hidden, m-8
   iç: max-w-7xl, p-14, 4 sütun (lg) / 2 sütun (md) / 1 sütun
   alt: TextHoverEffect (dev çizgi yazı, sadece geniş ekran) + arka plan ışıması */
.hf {
  --hf-accent: #3ca2fa;
  position: relative; overflow: hidden; height: fit-content;
  margin: 32px; border-radius: 24px; background: rgba(15, 15, 17, .1);
  color: #a3a3a3;
}
.hf__inner { position: relative; z-index: 60; max-width: 1280px; margin: 0 auto; padding: 56px; pointer-events: none; }
/* Dev yazı (z-index 50) negatif boşlukla yukarı taşar; linkler her zaman onun üstünde kalsın */
.hf__grid, .hf__hr, .hf__bottom { position: relative; pointer-events: auto; }
.hf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px; padding-bottom: 48px; }

.hf__brand { display: flex; flex-direction: column; gap: 16px; }
.hf__logo { display: inline-flex; align-items: center; gap: 10px; }
.hf__logo img { width: auto; height: 38px; }
.hf__logo span { font-family: var(--font-brand); font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.hf__desc { margin: 0; font-size: 14px; line-height: 1.65; }

.hf__title { margin: 0 0 24px; font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0; }
.hf__links li { position: relative; width: fit-content; }
.hf__links li + li { margin-top: 12px; }
.hf__links a, .hf__contact a, .hf__contact span { transition: color .2s; }
.hf__links a:hover, .hf__contact a:hover, .hf__contact span:hover { color: var(--hf-accent); }
.hf__pulse {
  position: absolute; top: 0; right: -10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hf-accent); animation: hfPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes hfPulse { 50% { opacity: .5; } }

.hf__contact li { display: flex; align-items: center; gap: 12px; }
.hf__contact li + li { margin-top: 16px; }
.hf__contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--hf-accent); }

.hf__hr { margin: 32px 0; border: 0; border-top: 1px solid #374151; }
.hf__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.hf__socials { display: flex; gap: 24px; color: #9ca3af; }
.hf__socials a { transition: color .2s; }
.hf__socials a:hover { color: var(--hf-accent); }
.hf__socials svg { width: 20px; height: 20px; }
.hf__copy { margin: 0; }

/* Dev çizgi yazı (TextHoverEffect) — lg:flex hidden h-[30rem] -mt-52 -mb-36 */
.hf__big { position: relative; z-index: 50; display: flex; height: 30rem; margin: -9rem 0 -10rem; }
.hf__svg { width: 100%; height: 100%; cursor: pointer; user-select: none; }
.hf__t { fill: transparent; font-family: var(--font-brand); font-weight: 700; text-transform: uppercase; }
.hf__t--ghost { stroke: #262626; opacity: 0; transition: opacity .3s; }           /* dark:stroke-neutral-800 */
.hf__svg.is-hovered .hf__t--ghost { opacity: .7; }
.hf__t--draw { stroke: rgba(60, 162, 250, .6); stroke-dasharray: 1000; stroke-dashoffset: 1000; } /* dark:stroke-[#3ca2fa99] */
.hf__svg.is-drawn .hf__t--draw { animation: hfDraw 4s ease-in-out forwards; }
@keyframes hfDraw { to { stroke-dashoffset: 0; } }
.hf__t--glow { opacity: 0; transition: opacity .2s; }
.hf__svg.is-hovered .hf__t--glow { opacity: 1; }

/* Arka plan ışıması (FooterBackgroundGradient) */
.hf__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 125% at 50% 10%, rgba(15, 15, 17, .4) 50%, color-mix(in srgb, var(--hf-accent) 20%, transparent) 100%); }

@media (max-width: 1023px) {
  .hf__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hf__big { display: none; }
}
@media (max-width: 767px) {
  .hf { margin: 16px; }
  .hf__inner { padding: 40px 24px; }
  .hf__grid { grid-template-columns: 1fr; gap: 48px; }
  .hf__bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hf__t--draw, .hf__svg.is-drawn .hf__t--draw { animation: none; stroke-dashoffset: 0; }
  .hf__pulse { animation: none; }
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--primary); background: var(--primary); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 7b. Ortak içerik kartları (ana sayfa + Hakkımızda) ---------- */
.about__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-height: 520px; padding: 12%;
  border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(closest-side, rgba(4, 142, 211, .16), transparent 75%), var(--surface);
}
.about__media.glow { --glow-bg: radial-gradient(closest-side, rgba(4, 142, 211, .16), transparent 75%), linear-gradient(var(--surface), var(--surface)); }
.about__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.about-card {
  position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 26px 26px 24px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s;
}
.about-card:hover { border-color: var(--border-strong); }
.about-card__icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(4, 142, 211, .12); color: var(--primary-300);
}
.about-card__icon svg { width: 24px; height: 24px; }
.about-card h3 { font-size: 20px; margin-bottom: 8px; }
.about-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.focus-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); transition: border-color .3s, transform .35s var(--ease);
}
.focus-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.focus-card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(4, 142, 211, .12); color: var(--primary-300); }
.focus-card__icon svg { width: 24px; height: 24px; }
.focus-card h3 { font-size: 19px; }
.focus-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

@media (max-width: 1080px) { .focus-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .focus-grid { grid-template-columns: 1fr; } }

/* ---------- 7c. Takım kalkan rozeti ve durum etiketi (ana sayfa + takım sayfası) ---------- */
.team-card { --tc: 4, 142, 211; }
/* Kalkan rozet */
.team-badge { position: relative; width: 70px; height: 80px; display: grid; place-items: center; margin-bottom: 22px; }
.team-badge__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 14px rgba(var(--tc), .35)); transition: filter .3s; }
.team-badge__shape path { fill: rgba(var(--tc), .12); stroke: rgb(var(--tc)); stroke-width: 2.2; stroke-linejoin: round; }
.team-card:hover .team-badge__shape { filter: drop-shadow(0 0 22px rgba(var(--tc), .6)); }
.team-badge svg.team-badge__icon { position: relative; width: 30px; height: 30px; color: rgb(var(--tc)); margin-top: -4px; }
.team-badge img { position: relative; width: 40px; height: 40px; object-fit: contain; margin-top: -4px; }
/* Takımın kendi logosu (kalkansız). Logo dosyası yoksa yerine kalkan + ikon gelir. */
.team-logo { --logo-h: 104px; position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: var(--logo-h); margin-bottom: 22px; }
.team-logo img { max-width: min(190px, 100%); max-height: var(--logo-h); width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(var(--tc), .28)); transition: transform .35s var(--ease), filter .3s; }
.team-card:hover .team-logo img { transform: scale(1.04); filter: drop-shadow(0 8px 26px rgba(var(--tc), .45)); }

/* Durum rozeti */
.team-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgb(var(--tc)); background: rgba(var(--tc), .1); border: 1px solid rgba(var(--tc), .35);
}
.team-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: teamPulse 2s ease-in-out infinite; }
@keyframes teamPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) { .team-status i { animation: none; } }

/* ---------- 8. Sayfa üst başlığı (alt sayfalar için) ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 72px) 0 64px; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 23, 38, .8), rgba(7, 17, 29, 0));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 640px; margin: 0; }

/* Ortalanmış sayfa başlığı (Ekip, Haberler, Etkinlikler ...) */
.page-hero--center { text-align: center; border-bottom: 0; padding-bottom: 40px; }
.page-hero--center .breadcrumb { justify-content: center; }
.page-hero--center h1 { font-family: var(--font-brand); letter-spacing: -0.01em; }
.page-hero--center p { margin: 0 auto; }
.page-hero__eyebrow { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-300); }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary-300); }
.breadcrumb a { white-space: nowrap; flex-shrink: 0; }
.breadcrumb span:last-child { min-width: 0; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 8c. İkinci menü: Tubelight navbar (ekip sayfası, SSS) ----------
   core.js → CG.tubelight ile oluşturulur.
   Masaüstü: header'ın altında yapışkan, ortalı hap şeklinde çubuk.
   Mobil (< 768px): yalnızca ikonlar, ekranın altına sabit. */
.tl-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  padding: 18px 0 10px; margin-bottom: 8px; pointer-events: none;
}
.tl-nav .container { display: flex; justify-content: center; }
.tl-nav__list {
  position: relative; isolation: isolate; pointer-events: auto;
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 4px; border-radius: 999px;
  background: rgba(7, 17, 29, .6);                                    /* bg-background/5 + koyu zemin (okunurluk için) */
  border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);   /* backdrop-blur-lg */
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.35), 0 4px 6px -4px rgba(0,0,0,.35); /* shadow-lg */
  overflow: visible;
}
.tl-nav__list::-webkit-scrollbar { display: none; }
.tl-tab {
  position: relative; z-index: 1; flex-shrink: 0;
  padding: 8px 24px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 600; line-height: 20px;
  color: rgba(232, 241, 250, .8);
  transition: color .2s, background-color .2s;
}
.tl-tab:hover { color: var(--primary-300); }
.tl-tab.is-active { color: var(--primary-300); background: rgba(150, 190, 225, .07); }  /* bg-muted text-primary */
.tl-tab:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.tl-tab__icon { display: none; }
.tl-tab__icon svg { width: 18px; height: 18px; stroke-width: 2.5; display: block; }

/* Kayan lamba (framer-motion layoutId="lamp" karşılığı; yay benzeri geçiş) */
.tl-lamp {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: rgba(4, 142, 211, .05);                                 /* bg-primary/5 */
  opacity: 0;
  transition: transform .5s cubic-bezier(.25, 1.25, .45, 1), width .5s cubic-bezier(.25, 1.25, .45, 1), opacity .2s;
}
.tl-lamp.is-ready { opacity: 1; }
.tl-lamp.no-anim { transition: none; }
.tl-lamp__bar {                                                       /* -top-2 w-8 h-1 bg-primary rounded-t-full */
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 4px; border-radius: 999px 999px 0 0; background: var(--primary);
}
.tl-lamp__bar i { position: absolute; border-radius: 999px; background: rgba(4, 142, 211, .2); }
.tl-lamp__g1 { width: 48px; height: 24px; top: -8px; left: -8px; filter: blur(12px); }
.tl-lamp__g2 { width: 32px; height: 24px; top: -4px; left: 0; filter: blur(12px); }
.tl-lamp__g3 { width: 16px; height: 16px; top: 0; left: 8px; filter: blur(4px); }

@media (max-width: 1180px) {
  .tl-nav__list { gap: 4px; }
  .tl-tab { padding: 8px 16px; }
}
/* Sekmeler sığmayınca (telefon): çubuk ekranı kaplar ve yana kaydırılır */
.tl-nav__list.is-scroll {
  overflow-x: auto; overflow-y: hidden; justify-content: flex-start;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.tl-nav__list.is-scroll .tl-lamp__bar { top: -4px; }                 /* kaydırma alanında kesilmesin */
.tl-nav__list.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tl-nav__list.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.tl-nav__list.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
@media (max-width: 767px) {
  .tl-nav { padding: 12px 0 8px; }
  .tl-tab { padding: 7px 14px; font-size: 13.5px; }
}


/* ---------- 8b. Özel kaydırma çubuğu ---------- */
/* İç kaydırmalı alanlar (mobil menü vb.) ve dokunmatik cihazlar için tema renkli çubuk */
* { scrollbar-width: thin; scrollbar-color: rgba(91, 184, 234, .45) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(91, 184, 234, .45); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }

/* Masaüstü: tarayıcının sayfa çubuğu gizlenir, yerine .cg-scrollbar çizilir (core.js) */
html.has-cg-scroll { scrollbar-width: none; }
html.has-cg-scroll::-webkit-scrollbar { display: none; }

.cg-scrollbar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300; width: 16px;
  margin: 8px 0; cursor: pointer;
  transition: opacity .3s;
}
.cg-scrollbar.is-hidden { opacity: 0; pointer-events: none; }
/* İnce çizgi şeklinde ray: sadece fareyle üzerine gelince belirir */
.cg-scrollbar::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 5px; width: 2px; border-radius: 2px;
  background: rgba(150, 190, 225, .1); opacity: 0; transition: opacity .25s;
}
.cg-scrollbar__thumb {
  position: absolute; top: 0; right: 4px; width: 4px; border-radius: 99px;
  background: var(--primary-300); opacity: .45; cursor: grab;
  transition: width .2s var(--ease), right .2s var(--ease), opacity .25s, background-color .25s;
  will-change: transform;
}
/* Kaydırırken belirginleşir, üzerine gelince genişler */
.cg-scrollbar.is-active .cg-scrollbar__thumb { opacity: .8; }
.cg-scrollbar:hover::before { opacity: 1; }
.cg-scrollbar:hover .cg-scrollbar__thumb,
.is-cg-dragging .cg-scrollbar__thumb { width: 8px; right: 2px; opacity: 1; background: var(--primary); }
.is-cg-dragging .cg-scrollbar__thumb { cursor: grabbing; }
.is-cg-dragging, .is-cg-dragging * { user-select: none !important; cursor: grabbing !important; }

/* ---------- 9. Kaydırma animasyonları ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Duyarlı tasarım ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}

/* ==========================================================================
   12. Ayarlar menüsü (üst çubuğun en sağı)
   Buton: shadcn Button (outline, size icon) — açılınca dişli 90° döner
   Menü : theme-toggle bileşeni (Tema kartı) + Optimizasyon modu anahtarı
   ========================================================================== */
.settings-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;                          /* h-9 w-9 rounded-lg (biraz büyütüldü) */
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background-color .2s, border-color .2s;
}
.settings-btn:hover, .settings-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--primary-300); }
.settings-btn:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.settings-btn__icon {                                                  /* beyaz dişli; aydınlık temada koyulaşır */
  width: 20px; height: 20px; pointer-events: none;
  transition: transform .3s cubic-bezier(.5, .85, .25, 1.1);
}
html[data-theme="light"] .settings-btn__icon { filter: brightness(0) saturate(100%) invert(9%) sepia(20%) saturate(2000%) hue-rotate(185deg); }
.settings-btn[aria-expanded="true"] .settings-btn__icon { transform: rotate(90deg); }

.settings {
  position: fixed; top: calc(var(--header-h) - 4px); right: max(16px, calc((100vw - var(--container)) / 2 + 24px)); z-index: 120;
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.settings.is-open { opacity: 1; transform: none; }
.settings[hidden] { display: none; }

/* Kart (bg-tertiary rounded-lg border) */
.st-card { position: relative; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.st-card__head { padding: 12px 12px 0; }
.st-card__title { font-size: 15px; font-weight: 600; color: var(--text); }
.st-card__desc { margin: 2px 0 0; padding: 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.st-card__line { height: 1px; margin: 12px 0; background: var(--border); }

/* Tema seçenekleri */
.st-themes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 16px 26px; }
.st-theme {
  position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: pointer;
  padding: 12px 6px 0; border-radius: 8px; border: 1px solid var(--border); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.st-theme--light { background: #f9fafb; }
.st-theme--dark, .st-theme--system { background: #171717; }
.st-theme:hover { border-color: var(--border-strong); }
.st-theme.is-selected { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(30, 64, 175, .6); }         /* border-blue-500 ring-blue-800/60 */
.st-theme:has(input:focus-visible) { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.st-theme__art { display: block; width: 100%; overflow: hidden; }
.st-theme__art > svg { display: block; width: 100%; height: auto; border: 1px solid hsl(240, 3.7%, 15.9%); border-bottom: 0;
  border-radius: 3px 3px 0 0; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .2); }
.st-theme--light .st-theme__art > svg { border-color: #e5e7eb; }
.st-theme__label { position: absolute; inset: auto 0 8px 0; display: flex; justify-content: center; }
.st-theme__chip {
  position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1; color: #f5f5f5; background: #313131;
  box-shadow: 0 -1px 0 0 hsla(0, 0%, 100%, .04), 0 0 0 1px hsla(0, 0%, 100%, .12), 0 2px 2px 0 rgba(0, 0, 0, .04), 0 6px 3px 0 rgba(0, 0, 0, .04);
}
.st-themes__bar {                                                         /* seçili temanın altındaki mavi çizgi (layoutId) */
  position: absolute; top: 0; left: 0; height: 2px; border-radius: 999px; background: #3b82f6;
  opacity: 0; transition: transform .35s cubic-bezier(.3, 1.2, .5, 1), width .35s cubic-bezier(.3, 1.2, .5, 1), opacity .2s;
}
.st-themes__bar.is-ready { opacity: 1; }

/* Optimizasyon modu satırı */
.st-card--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 0; }
.st-card--row .st-card__text { flex: 1; min-width: 0; padding-left: 12px; }
.st-card--row .st-card__desc { padding: 0; margin-top: 4px; }
.st-switch { position: relative; display: block; flex-shrink: 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.st-switch__track { position: relative; display: block; width: 44px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); transition: background .2s, border-color .2s; }
.st-switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform .2s var(--ease), background .2s; }
.st-switch input:checked + .st-switch__track { background: var(--primary); border-color: var(--primary); }
.st-switch input:checked + .st-switch__track .st-switch__thumb { transform: translateX(20px); background: #fff; }
.st-switch input:focus-visible + .st-switch__track { outline: 2px solid var(--primary-300); outline-offset: 2px; }

@media (max-width: 640px) {
  .settings { right: 12px; left: 12px; width: auto; }
  .st-themes { gap: 8px; padding: 4px 10px 24px; }
  .st-theme { padding: 8px 4px 0; }
  .st-theme__chip { height: 24px; padding: 0 8px; font-size: 11.5px; }
}
@media (max-width: 1080px) { .header-actions { gap: 8px; } }

/* Tema'ya göre gösterilen görseller (logo vb.) */
.only-light { display: none !important; }
html[data-theme="light"] .only-light { display: revert !important; }
html[data-theme="light"] .only-dark { display: none !important; }

/* ==========================================================================
   13. Aydınlık tema
   Renk değişkenleri değiştirilir; değişkene bağlı olmayan koyu renkler tek tek düzeltilir.
   ========================================================================== */
html[data-theme="light"] {
  --bg:            #f4f7fb;
  --bg-2:          #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef3f9;
  --border:        rgba(15, 40, 70, 0.12);
  --border-strong: rgba(15, 40, 70, 0.22);
  --primary-300:   #0378b5;
  --accent:        #0378b5;
  --accent-glow:   rgba(4, 142, 211, 0.18);
  --text:          #0b1726;
  --text-muted:    #45566b;
  --text-dim:      #6a7b8f;
  --success:       #059669;
  --warning:       #b45309;
  --danger:        #dc2626;
  --shadow:      0 10px 30px -12px rgba(15, 40, 70, 0.18);
  --shadow-glow: 0 16px 36px -18px rgba(15, 40, 70, 0.25);
}
html[data-theme="light"] .bg-dots svg { fill: rgba(71, 85, 105, .35); }
html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] .site-header.is-solid { background: rgba(255, 255, 255, .88); }
html[data-theme="light"] .mobile-nav { background: rgba(244, 247, 251, .98); }
html[data-theme="light"] .nav__link:hover, html[data-theme="light"] .nav-dd[data-state="open"] .nav-dd__btn { background: rgba(4, 142, 211, .08); }
html[data-theme="light"] .nav-dd__item { background: var(--surface); }
html[data-theme="light"] .page-hero { background: linear-gradient(180deg, rgba(4, 142, 211, .07), rgba(244, 247, 251, 0)); }
html[data-theme="light"] .section--alt { background: linear-gradient(180deg, rgba(4, 142, 211, .05), rgba(244, 247, 251, 0)); }
html[data-theme="light"] .card { background: var(--surface); box-shadow: 0 6px 20px -14px rgba(15, 40, 70, .25); }
html[data-theme="light"] .card.glow { --glow-bg: linear-gradient(var(--surface), var(--surface)); }
html[data-theme="light"] .tag--cyan  { background: rgba(71, 85, 105, .08); color: #334155; border-color: rgba(71, 85, 105, .25); }
html[data-theme="light"] .tag--green { background: rgba(5, 150, 105, .08); color: #047857; border-color: rgba(5, 150, 105, .3); }
html[data-theme="light"] .tag--amber { background: rgba(217, 119, 6, .1); color: #b45309; border-color: rgba(217, 119, 6, .3); }
html[data-theme="light"] .tag--red   { background: rgba(220, 38, 38, .08); color: #b91c1c; border-color: rgba(220, 38, 38, .3); }
/* İkinci menü (tubelight) */
html[data-theme="light"] .tl-nav__list { background: rgba(255, 255, 255, .8); box-shadow: 0 10px 25px -12px rgba(15, 40, 70, .25); }
html[data-theme="light"] .tl-tab { color: var(--text-muted); }
html[data-theme="light"] .tl-tab.is-active { background: rgba(4, 142, 211, .08); }
/* Ekip üyesi kartı */
html[data-theme="light"] .member__card { background: rgba(15, 40, 70, .12); box-shadow: 0 10px 24px -14px rgba(15, 40, 70, .3); }
html[data-theme="light"] .member__inner { background: rgba(255, 255, 255, .9); }
html[data-theme="light"] .member__name { color: var(--text); }
html[data-theme="light"] .member__role { color: #4f46e5; }
html[data-theme="light"] .member__role.is-highlight { color: var(--primary-300); }
html[data-theme="light"] .member__social { color: #64748b; }
html[data-theme="light"] .member__social:hover { color: var(--primary); }
/* Footer */
html[data-theme="light"] .hf { color: var(--text-muted); background: rgba(255, 255, 255, .6); border: 1px solid var(--border); }
html[data-theme="light"] .hf__logo span, html[data-theme="light"] .hf__title { color: var(--text); }
html[data-theme="light"] .hf__hr { border-top-color: var(--border-strong); }
html[data-theme="light"] .hf__socials { color: #64748b; }
html[data-theme="light"] .hf__t--ghost { stroke: #cbd5e1; }
html[data-theme="light"] .hf__bg { background: radial-gradient(125% 125% at 50% 10%, rgba(255, 255, 255, .4) 50%, rgba(4, 142, 211, .12) 100%); }
/* Butonlar */
html[data-theme="light"] .btn-rainbow { color: var(--text);
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(var(--surface) 50%, rgba(255, 255, 255, .6) 80%, rgba(255, 255, 255, 0)), var(--rainbow); }
html[data-theme="light"] .flow-btn { --fb-ink: var(--text); border-color: rgba(15, 40, 70, .28); }
/* Takım kartları */
html[data-theme="light"] .team-card { background: var(--surface); border-color: var(--border); box-shadow: 0 8px 24px -16px rgba(15, 40, 70, .3); }
html[data-theme="light"] .team-card.glow { --glow-bg: linear-gradient(var(--surface), var(--surface)); }
html[data-theme="light"] .team-card__name { color: var(--text); }
/* Takımların kişi karuseli (ekip sayfası) */
html[data-theme="light"] .tc__name { color: var(--text); }
html[data-theme="light"] .tc__arrow { color: var(--text); background: var(--surface); }
html[data-theme="light"] .tc__arrow:hover { background: var(--surface-2); }
html[data-theme="light"] .tc__dot { background: #cbd5e1; }
html[data-theme="light"] .tc__dot.is-active { background: var(--text); }
html[data-theme="light"] .tc__social { background: #0b1726; color: #fff; }
html[data-theme="light"] .tc__social:hover { background: var(--primary); }
html[data-theme="light"] .tc__card { box-shadow: 0 25px 50px -20px rgba(15, 40, 70, .3); }
/* Haber detayı, SSS, 404 */
html[data-theme="light"] .article__content p { color: var(--text); }
html[data-theme="light"] .faq-item.is-open { background: rgba(4, 142, 211, .05); }
html[data-theme="light"] .nf__desc { color: var(--text-muted); }
/* Ayarlar menüsü */
html[data-theme="light"] .settings { box-shadow: 0 24px 60px -20px rgba(15, 40, 70, .35); }

/* ==========================================================================
   14. Optimizasyon modu (Ayarlar → Optimizasyon modu)
   Sürekli çalışan ve işlemciyi / ekran kartını yoran efektler kapatılır:
   fareyi takip eden nokta deseni ve ışıklar, bulanıklık (blur), giriş animasyonları,
   footer'daki dev çizgi yazı, sürekli dönen parlama efektleri.
   ========================================================================== */
html.cg-lite { scroll-behavior: auto; }
html.cg-lite .bg-dots,
html.cg-lite .glow__halo,
html.cg-lite .member__blob,
html.cg-lite .hf__big,
html.cg-lite .hf__bg { display: none !important; }
html.cg-lite *, html.cg-lite *::before, html.cg-lite *::after {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.cg-lite .glow[data-glow]::before, html.cg-lite .glow[data-glow]::after { display: none !important; }
html.cg-lite .reveal, html.cg-lite .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
html.cg-lite .site-header.is-scrolled, html.cg-lite .site-header.is-solid { background: var(--bg); }
html.cg-lite .tl-nav__list { background: var(--surface); }
html.cg-lite .mobile-nav { background: var(--bg); }
html.cg-lite .team-logo img, html.cg-lite .team-badge__shape { filter: none !important; }
html.cg-lite .tl-lamp__bar i { display: none; }
/* Sayfalara özel efektler */
html.cg-lite .ec-card, html.cg-lite .ec-card [data-ec-child] { filter: none !important; transition-property: opacity, transform !important; }
html.cg-lite .ec-unit--pulse, html.cg-lite .explore * { animation: none !important; }
html.cg-lite .explore:not(.is-hidden) { animation: none !important; opacity: 1; }
html.cg-lite .faq__glow, html.cg-lite .tk__glow, html.cg-lite .nf::before { display: none !important; }
html.cg-lite .tc__media > *, html.cg-lite .tc__content { transition: none !important; }
