/* NOA — sayfanın arkasındaki dev, animasyonlu N/O-A logosu (noa-bglogo.js). Rengi --bgl (R, G, B): bölüm rengine geçer.
   Sürekli hareketler yalnızca transform / opacity ile (ekran kartında): halka katmanları döner, ışık şeridi maskenin içinde kayar. */
body.has-bglogo { isolation: isolate; }   /* yoksa body'nin zemin rengi z-index -1'deki logoyu örter */
/* hareketli arka planın üstündeki cam kartlar: backdrop-filter her karede yeniden bulanıklaştırıyordu; logo zaten çok soluk,
   biraz daha koyu zemin aynı görünümü bedavaya verir */
body.has-bglogo .n27-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 11, 18, 0.8); }
body.has-bglogo .n27-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 20, 30, 0.84); }
.noa-bglogo {
  --bgl: 84, 132, 255;
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  display: grid; place-items: center; contain: strict;
  transition: opacity 0.6s ease;
}
/* renk değişimi: renkler geçişle değişseydi dev katmanlar 1,2 sn boyunca her karede yeniden boyanırdı. Bunun yerine katman
   kısa süre soluklaşır (ekran kartında), renk tek seferde değişir, sonra geri gelir (noa-bglogo.js) */
.noa-bglogo.is-dim { opacity: 0.25; transition-duration: 0.35s; }
.noa-bglogo__in {
  position: relative; width: min(118vmin, 1180px); aspect-ratio: 220 / 196; margin-top: 6vh;
  opacity: 0.55; transform: scale(0.94); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1);
  animation: bgl-breathe 9s ease-in-out 3s infinite;
}
.noa-bglogo.is-in .noa-bglogo__in { transform: none; }
.noa-bglogo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); stroke-width: 0.45; }
.noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
.noa-bglogo .refl { opacity: 0.35 !important; }
.noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
.noa-bglogo .shine { mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s ease; }
/* açılıştan sonra halkalar ana SVG'de gizlenir, kendi katmanlarında döner */
.noa-bglogo.is-in .noa-bglogo__base .ring { visibility: hidden; }
.noa-bglogo__rot { position: absolute; inset: 0; opacity: 0; transform-origin: 45.4545% 34.6939%; will-change: transform; }   /* halkaların merkezi (viewBox 0, 0) */
.noa-bglogo.is-in .noa-bglogo__rot { opacity: 1; }
.noa-bglogo__shine { position: absolute; inset: 0; overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.noa-bglogo__shine i {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(255, 255, 255, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent);
}
.noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
@keyframes bgl-shine { 0% { transform: translateX(-110%); } 20%, 100% { transform: translateX(340%); } }
.noa-bglogo__glow {
  position: absolute; left: 50%; top: 50%; width: min(90vmin, 900px); aspect-ratio: 1; translate: -50% -44%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%);
  animation: bgl-pulse 8s ease-in-out infinite;
}
.noa-bglogo__ring {   /* logonun çevresinde yavaş dönen ince yörüngeler */
  position: absolute; left: 50%; top: 50%; width: min(104vmin, 1040px); aspect-ratio: 1; translate: -50% -46%; border-radius: 50%;
  border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32);
  animation: bgl-spin 48s linear infinite;
}
.noa-bglogo__ring.is-2 { width: min(132vmin, 1320px); border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@keyframes bgl-spin { to { rotate: 360deg; } }
@keyframes bgl-pulse { 50% { transform: scale(1.12); opacity: 0.7; } }
@keyframes bgl-breathe { 50% { opacity: 0.75; } }
@media (max-width: 780px) {
  .noa-bglogo__in { width: 150vw; margin-top: 0; }
  .noa-bglogo__ring { width: 140vw; }
  .noa-bglogo__ring.is-2 { width: 190vw; }
}
@media (prefers-reduced-motion: reduce) {
  .noa-bglogo__in, .noa-bglogo__glow, .noa-bglogo__ring, .noa-bglogo__shine i { animation: none; transition: none; }
}

/* TEMA-BASLA (NOA-araclar/tema_uret.py üretir; elle düzenleme: NOA-araclar/tema-el/) */
/* ---- karanlik ---- */
html[data-tema="karanlik"] body.has-bglogo .n27-panel { background: rgba(2, 3, 3, 0.8); }
html[data-tema="karanlik"] body.has-bglogo .n27-card { background: rgba(5, 6, 6, 0.84); }
html[data-tema="karanlik"] .noa-bglogo { --bgl: 101, 118, 155; }
html[data-tema="karanlik"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="karanlik"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="karanlik"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="karanlik"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="karanlik"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="karanlik"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(255, 255, 255, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="karanlik"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="karanlik"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="karanlik"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="karanlik"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="karanlik"] .noa-bglogo__in,
html[data-tema="karanlik"] .noa-bglogo__glow,
html[data-tema="karanlik"] .noa-bglogo__ring,
html[data-tema="karanlik"] .noa-bglogo__shine i { animation: none; }
}

/* ---- beyaz ---- */
html[data-tema="beyaz"] body.has-bglogo .n27-panel { background: rgba(246, 247, 249, 0.8); }
html[data-tema="beyaz"] body.has-bglogo .n27-card { background: rgba(242, 243, 247, 0.84); }
html[data-tema="beyaz"] .noa-bglogo { --bgl: 66, 90, 146; }
html[data-tema="beyaz"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="beyaz"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="beyaz"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="beyaz"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="beyaz"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="beyaz"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(24, 24, 24, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="beyaz"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="beyaz"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="beyaz"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="beyaz"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="beyaz"] .noa-bglogo__in,
html[data-tema="beyaz"] .noa-bglogo__glow,
html[data-tema="beyaz"] .noa-bglogo__ring,
html[data-tema="beyaz"] .noa-bglogo__shine i { animation: none; }
}

/* ---- turkiye ---- */
html[data-tema="turkiye"] body.has-bglogo .n27-panel { background: rgba(17, 1, 1, 0.8); }
html[data-tema="turkiye"] body.has-bglogo .n27-card { background: rgba(27, 3, 4, 0.84); }
html[data-tema="turkiye"] .noa-bglogo { --bgl: 219, 57, 53; }
html[data-tema="turkiye"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="turkiye"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="turkiye"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="turkiye"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="turkiye"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="turkiye"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(252, 252, 252, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="turkiye"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="turkiye"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="turkiye"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="turkiye"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="turkiye"] .noa-bglogo__in,
html[data-tema="turkiye"] .noa-bglogo__glow,
html[data-tema="turkiye"] .noa-bglogo__ring,
html[data-tema="turkiye"] .noa-bglogo__shine i { animation: none; }
}

/* ---- azerbaycan ---- */
html[data-tema="azerbaycan"] body.has-bglogo .n27-panel { background: rgba(0, 7, 15, 0.8); }
html[data-tema="azerbaycan"] body.has-bglogo .n27-card { background: rgba(1, 14, 23, 0.84); }
html[data-tema="azerbaycan"] .noa-bglogo { --bgl: 0, 178, 226; }
html[data-tema="azerbaycan"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="azerbaycan"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="azerbaycan"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="azerbaycan"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="azerbaycan"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="azerbaycan"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(252, 252, 252, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="azerbaycan"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="azerbaycan"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="azerbaycan"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="azerbaycan"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="azerbaycan"] .noa-bglogo__in,
html[data-tema="azerbaycan"] .noa-bglogo__glow,
html[data-tema="azerbaycan"] .noa-bglogo__ring,
html[data-tema="azerbaycan"] .noa-bglogo__shine i { animation: none; }
}

/* ---- yirmiyedi ---- */
html[data-tema="yirmiyedi"] body.has-bglogo .n27-panel { background: rgba(2, 13, 8, 0.8); }
html[data-tema="yirmiyedi"] body.has-bglogo .n27-card { background: rgba(6, 22, 15, 0.84); }
html[data-tema="yirmiyedi"] .noa-bglogo { --bgl: 40, 151, 112; }
html[data-tema="yirmiyedi"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="yirmiyedi"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="yirmiyedi"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="yirmiyedi"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="yirmiyedi"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="yirmiyedi"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(241, 247, 242, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="yirmiyedi"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="yirmiyedi"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="yirmiyedi"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="yirmiyedi"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="yirmiyedi"] .noa-bglogo__in,
html[data-tema="yirmiyedi"] .noa-bglogo__glow,
html[data-tema="yirmiyedi"] .noa-bglogo__ring,
html[data-tema="yirmiyedi"] .noa-bglogo__shine i { animation: none; }
}

/* ---- neon ---- */
html[data-tema="neon"] body.has-bglogo .n27-panel { background: rgba(10, 3, 22, 0.8); }
html[data-tema="neon"] body.has-bglogo .n27-card { background: rgba(18, 8, 32, 0.84); }
html[data-tema="neon"] .noa-bglogo { --bgl: 229, 70, 154; }
html[data-tema="neon"] .noa-bglogo__in { animation: bgl-breathe 9s ease-in-out 3s infinite; }
html[data-tema="neon"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.045); stroke: rgba(var(--bgl), 0.22); }
html[data-tema="neon"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.06); }
html[data-tema="neon"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.06); }
html[data-tema="neon"] .noa-bglogo__shine { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-tema="neon"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.35) 35%, rgba(255, 245, 250, 0.28) 50%, rgba(var(--bgl), 0.35) 65%, transparent); }
html[data-tema="neon"] .noa-bglogo.is-in .noa-bglogo__shine i { animation: bgl-shine 9s ease-in-out 3s infinite; }
html[data-tema="neon"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.12), rgba(var(--bgl), 0.04) 45%, transparent 70%); animation: bgl-pulse 8s ease-in-out infinite; }
html[data-tema="neon"] .noa-bglogo__ring { border: 1px solid rgba(var(--bgl), 0.07); border-top-color: rgba(var(--bgl), 0.32); animation: bgl-spin 48s linear infinite; }
html[data-tema="neon"] .noa-bglogo__ring.is-2 { border-style: dashed; border-top-color: rgba(var(--bgl), 0.12); animation-duration: 90s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-tema="neon"] .noa-bglogo__in,
html[data-tema="neon"] .noa-bglogo__glow,
html[data-tema="neon"] .noa-bglogo__ring,
html[data-tema="neon"] .noa-bglogo__shine i { animation: none; }
}

/* ---- elle (NOA-araclar/tema-el/noa-bglogo.css) ---- */
/* noa-bglogo.css — elle yazılmış tema kuralları (sayfanın arkasındaki dev N/O-A logosu; renk --bgl, noa-bglogo.js temaya göre yazar) */

/* ================= KARANLIK NOA ================= */
/* kapalı, sönük: ışıma azaltılır, çizgiler grafit-çelik */
html[data-tema="karanlik"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(var(--bgl), 0.08), rgba(var(--bgl), 0.025) 45%, transparent 70%); }
html[data-tema="karanlik"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.26) 35%, rgba(225, 226, 232, 0.18) 50%, rgba(var(--bgl), 0.26) 65%, transparent); }

/* ================= NOA BEYAZI ================= */
/* açık zeminde logo ince metal çizim gibi: dolgu çok hafif, kontur biraz daha belirgin; ışıma kirli leke bırakmasın */
html[data-tema="beyaz"] .noa-bglogo .main path { fill: rgba(var(--bgl), 0.035); stroke: rgba(var(--bgl), 0.26); }
html[data-tema="beyaz"] .noa-bglogo .main .o { fill: rgba(var(--bgl), 0.045); }
html[data-tema="beyaz"] .noa-bglogo .refl path { fill: rgba(var(--bgl), 0.045); }
html[data-tema="beyaz"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25) 45%, transparent 70%); }
html[data-tema="beyaz"] .noa-bglogo__ring { border-color: rgba(var(--bgl), 0.08); border-top-color: rgba(var(--bgl), 0.3); }
html[data-tema="beyaz"] .noa-bglogo__ring.is-2 { border-top-color: rgba(var(--bgl), 0.14); }
/* logonun üzerinden geçen ışık: gümüş-metal parıltı (koyu şerit yerine) */
html[data-tema="beyaz"] .noa-bglogo__shine i { background: linear-gradient(100deg, transparent, rgba(var(--bgl), 0.14) 35%, rgba(var(--bgl), 0.3) 50%, rgba(var(--bgl), 0.14) 65%, transparent); }
html[data-tema="beyaz"] .noa-bglogo .shine { mix-blend-mode: normal; }

/* 27 TEMASI: arka plan logosunun altın parıltısı yeşil zeminde haki görünüyordu → kapalı yeşim */
html[data-tema="yirmiyedi"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(61, 167, 127, 0.1), rgba(61, 167, 127, 0.03) 45%, transparent 70%); }

/* NEON-OTOMATIK-BASLA (tema_neon_el.py üretir: 27 TEMASI el kurallarının neon kopyası) */
html[data-tema="neon"] .noa-bglogo__glow { background: radial-gradient(circle, rgba(229, 82, 157, 0.1), rgba(229, 82, 157, 0.03) 45%, transparent 70%); }
/* NEON-OTOMATIK-BITIS */
/* TEMA-BITIS */
