/* =====================================================================
   Uniyorum — modern arayüz katmanı (2026-11-01)

   Genel sayfaların (_WriterLayout, _PolicyLayout) EN SONUNDA yüklenir ve
   yalnızca body.uy-theme altında çalışır; admin paneli (_AdminLayout) bu
   dosyayı yüklemez, etkilenmez. Değişkenler Tokens.css'te, logo BrandLogo.css'tedir.

   Kurallar:
   - Sınıf adlarına, id'lere ve data-* özniteliklerine DOKUNMAZ; JS
     (Evaluations.js, MainSearch.js, WriterLayout.js, Datatable.js) aynı
     kancalarla çalışmaya devam eder. Yalnızca görünümü değiştirir.
   - Birincil renk #08152a (koyu lacivert) korunur. Tema ikincil rengi
     #FF6A6A (mercan) bilerek KULLANILMAZ (kök CLAUDE.md §9.0.2: yalnızca
     çok nadir noktalarda). Etkileşim vurgusu (2026-11-05'ten beri) lacivert + krem tonudur;
     eski mavi (#2f5bea) kurumsal kimliğe alınmadı. Yazı tipi Nunito Sans.
   - Bazı eski view'larda satır içi style / Bootstrap !important sınıfları
     (text-body, float-*) olduğu için birkaç yerde !important zorunlu.
   ===================================================================== */

/* Tasarım token'ları (renk, ölçü, yazı tipi) Tokens.css'e taşındı (2026-11-05); layout bu dosyadan ÖNCE Tokens.css'i yükler. */

/* ---------- Temel ---------- */

body.uy-theme {
  font-family: var(--uy-font);
  color: var(--uy-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Genel başlık ve bağlantı renkleri :where() ile SIFIR öncelikte: yalnızca rengi başka bir sınıfla belirlenmemiş
   öğelere uygulanır (ör. profildeki .uy-locked-btn gibi bağlantı-düğmelerin beyaz yazısını ezmesin). */
:where(body.uy-theme) :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--uy-font);
  color: var(--uy-ink);
  letter-spacing: -.01em;
}

:where(body.uy-theme) a { color: var(--uy-accent); }
:where(body.uy-theme) a:hover { color: var(--uy-navy-3); }

body.uy-theme ::selection { background: rgba(8, 21, 42, .16); }

body.uy-theme :focus-visible {
  outline: 2px solid var(--uy-accent);
  outline-offset: 2px;
}

body.uy-theme .content-wrapper { background: var(--uy-bg); }
body.uy-theme .content-wrapper > .content { padding-top: 28px; padding-bottom: 32px; }

/* ---------- Üst menü (navbar) ---------- */

body.uy-theme .main-header.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--uy-nav-h);
  padding: .55rem 0;
  background: rgba(5, 13, 27, .94);   /* = --uy-navy-deep .94: lacivertten bir ton koyu menü (değişkenle aynı değer; rgba için ayrı yazıldı) */
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.uy-theme .main-header .navbar-brand { padding: 0; margin-right: 1.25rem; display: flex; align-items: center; line-height: 1; }   /* logo bar merkezinde (Bootstrap satır yüksekliği ~4,5 px yukarı itiyordu) */

/* Yatay logo temel kuralları (.uy-logo/.uy-emblem/.uy-logo-yazi) BrandLogo.css'e taşındı (yönetim paneliyle paylaşılır). */

/* Test ortamındaki kırmızı "TESTING" etiketi (yalnızca LocalTest, satır içi stilli) logonun altına alınır. */
body.uy-theme .main-header .navbar-brand > span[style] { bottom: -4px !important; right: 0 !important; font-size: 9px !important; letter-spacing: .14em; }

body.uy-theme .uy-footer-logo { display: inline-block; text-decoration: none; padding-bottom: 6px; }
body.uy-theme .uy-footer-logo .uy-logo { font-size: 1.2rem; --uy-uni-w: 300; }   /* h < 24 px → kompakt (UNI 300) */

/* Bootstrap telefonda menü kapsayıcısının iç boşluğunu sıfırlar; yazı logo ekran kenarına yapışmasın. */
@media (max-width: 767.98px) {
  body.uy-theme .main-header.navbar > .container { padding-left: 16px; padding-right: 16px; }
}

/* Telefonda tüm bölgeler (menü, karşılama bandı, içerik, alt bilgi) aynı sol çizgide başlar: 20 px
   (eskiden hero/footer yalnız ~8 px, içerik ~15 px idi → kenara yapışık görünüyordu). İçerik sütunlarında
   .row (-7.5 px) ve .col (+15 px) kalıbı net +7.5 px ekler; bu yüzden içerik kabı 12.5 px verilir. */
@media (max-width: 575.98px) {
  body.uy-theme .main-header.navbar > .container,
  body.uy-theme .uy-hero .container,
  body.uy-theme .uy-footer .container { padding-left: 20px; padding-right: 20px; }
  body.uy-theme .content-wrapper > .content > .container { padding-left: 12.5px; padding-right: 12.5px; }
  /* Yorum akışı sütun içinde iç içe .col-lg-12 ile basılıyor (satırsız): fazladan 7.5 px içeri alıyor; arama kutusu ve listeyle aynı çizgiye al. */
  body.uy-theme .uy-main > .col-lg-12 { padding-left: 0; padding-right: 0; }
  body.uy-theme .content-wrapper > .content { padding-top: 24px; }
}

@media (max-width: 575.98px) {
  body.uy-theme .main-header .uy-logo { font-size: 1.2rem; --uy-uni-w: 300; }   /* h < 24 px → kompakt (UNI 300) */
}

body.uy-theme .main-header .nav-link {
  color: rgba(251, 255, 240, .78);   /* krem (lacivert üstünde krem, BRAND.md) */
  font-weight: 400;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;          /* AdminLTE .main-header .nav-link { height: 2.5rem } içinde metni tam ortala */
  height: 2.5rem;
  padding: 0 .9rem;
  line-height: 1;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}

body.uy-theme .main-header .nav-link:hover,
body.uy-theme .main-header .nav-link:focus { color: var(--uy-cream); background: rgba(251, 255, 240, .08); }

body.uy-theme .main-header .nav-link.active { color: var(--uy-cream); font-weight: 700; background: rgba(251, 255, 240, .12); }

/* Giriş / kayıt düğmeleri (girişsiz ziyaretçi) */
body.uy-theme .main-header .uy-nav-login {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255, 255, 255, .22);
}

body.uy-theme .main-header .uy-nav-register {
  margin-left: .4rem;
  background: var(--uy-cream);   /* krem düğme, üstünde lacivert */
  color: var(--uy-navy);
  font-weight: 700;
}

body.uy-theme .main-header .uy-nav-register:hover,
body.uy-theme .main-header .uy-nav-register:focus { background: #e8edd6; color: var(--uy-navy); }

/* Girişli kullanıcı: baş harf rozeti + açılır menü */
body.uy-theme .main-header .uy-user-toggle { display: inline-flex; align-items: center; gap: .5rem; }
body.uy-theme .main-header .uy-nav-login .uy-nav-login-text { white-space: nowrap; }

body.uy-theme .uy-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--uy-navy-3);   /* marka kuralı: gradyan yok, düz ton */
  color: var(--uy-cream);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

body.uy-theme .main-header .dropdown-menu {
  margin-top: .5rem;
  padding: .4rem;
  border: 1px solid var(--uy-line) !important;
  border-radius: 12px;
  box-shadow: var(--uy-shadow-lg) !important;
  min-width: 190px;
}

body.uy-theme .main-header .dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--uy-ink);
}

body.uy-theme .main-header .dropdown-item i { width: 16px; text-align: center; color: var(--uy-muted); }
body.uy-theme .main-header .dropdown-item:hover { background: var(--uy-accent-soft); color: var(--uy-navy); }
body.uy-theme .main-header .dropdown-item:active { background: #e6ecd2; }
body.uy-theme .main-header .dropdown-divider { margin: .35rem 0; border-color: var(--uy-line); }

/* Menü düğmesi: YUVARLAK, içi boş (çizgi) ikon; telefonda hesap düğmesiyle aynı boy/çizgi (2026-11-07).
   Açıkken ikon X'e döner (Bootstrap aria-expanded'ı kendisi günceller). */
body.uy-theme .main-header .navbar-toggler {
  color: var(--uy-cream);
  background: transparent;
  border: 1.5px solid rgba(251, 255, 240, .4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;                   /* dokunma hedefi */
  min-width: 44px;
  height: 44px;
  padding: 0;
  margin-left: .4rem;
  transition: background-color .15s ease, border-color .15s ease;
}

body.uy-theme .main-header .navbar-toggler:hover,
body.uy-theme .main-header .navbar-toggler:focus { background: rgba(251, 255, 240, .1); border-color: rgba(251, 255, 240, .65); }

body.uy-theme .main-header .navbar-toggler svg { width: 20px; height: 20px; display: block; }
body.uy-theme .main-header .navbar-toggler .uy-ico-close { display: none; }
body.uy-theme .main-header .navbar-toggler[aria-expanded="true"] .uy-ico-menu { display: none; }
body.uy-theme .main-header .navbar-toggler[aria-expanded="true"] .uy-ico-close { display: block; }

/* display:inline-flex Bootstrap'in ".navbar-expand-md .navbar-toggler { display: none }" kuralını ezdiği için masaüstünde yeniden gizlenir. */
@media (min-width: 768px) {
  body.uy-theme .main-header .navbar-toggler { display: none; }
}

@media (max-width: 767.98px) {
  /* Açılır panel: tam genişlik, 48 px dokunma satırları, üstte ince ayırıcı */
  body.uy-theme .main-header #navbarCollapse { margin-top: .5rem; padding: .5rem 0 .6rem; border-top: 1px solid rgba(255, 255, 255, .1); align-items: stretch; }
  body.uy-theme .main-header #navbarCollapse .nav-item + .nav-item { margin-top: .15rem; }
  /* Menü elemanları SAĞA hizalı (2026-11-07) */
  body.uy-theme .main-header #navbarCollapse .nav-link { display: flex; justify-content: flex-end; text-align: right; height: auto; min-height: 48px; padding: 0 1rem; border-radius: 12px; font-size: 1rem; }
}

/* Telefon (iPhone 15 = 393 px): üst çubuk TEK satır: solda logo, sağda İKİ YUVARLAK düğme (hesap + menü), ikisi de içi boş
   (çizgi) ikon, 44 px. Girişsizde hesap düğmesi "Giriş Yap" yazısı değil profil simgesidir ve giriş sayfasına gider
   (dönüş adresiyle); girişlide simge yerine baş harf, düğmeye basınca hesap menüsü açılır (2026-11-07).
   İkincil bilgi (kullanıcı adı, Kayıt Ol) açılır panelde/menüde yaşar; hiçbir öğe alt satıra düşmez. */
@media (max-width: 575.98px) {
  body.uy-theme .main-header .navbar-brand { margin-right: .5rem; }
  body.uy-theme .main-header .uy-nav-register { display: none; }
  body.uy-theme .main-header .navbar-no-expand { margin-left: auto; }

  body.uy-theme .main-header .uy-nav-login,
  body.uy-theme .main-header .uy-user-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    border: 1.5px solid rgba(251, 255, 240, .4);
    border-radius: 50%;
    background: transparent;
    color: var(--uy-cream);
  }
  body.uy-theme .main-header .uy-nav-login:hover,
  body.uy-theme .main-header .uy-nav-login:focus,
  body.uy-theme .main-header .uy-user-toggle:hover,
  body.uy-theme .main-header .uy-user-toggle:focus { background: rgba(251, 255, 240, .1); border-color: rgba(251, 255, 240, .65); }

  body.uy-theme .main-header .uy-nav-login .uy-nav-login-text { display: none; }
  body.uy-theme .main-header .uy-nav-login i { font-size: 1.05rem; }

  body.uy-theme .main-header .uy-user-toggle .uy-user-name { display: none; }
  body.uy-theme .main-header .uy-user-toggle::after { display: none; }
  /* girişli: çerçeve düğmede, avatar yalnız baş harf (dolgu yok, içi boş) */
  body.uy-theme .main-header .uy-avatar { width: 100%; height: 100%; background: transparent; box-shadow: none; font-size: 1.05rem; color: var(--uy-cream); }

  body.uy-theme .main-header .dropdown-menu { min-width: 200px; }
  /* açılan hesap menüsü SAĞA hizalı: simge sağ uçta, yazı onun solunda */
  body.uy-theme .main-header .dropdown-item { flex-direction: row-reverse; justify-content: flex-start; text-align: right; }
  body.uy-theme .main-header .uy-menu-user { display: block; text-align: right; padding: .5rem .7rem .35rem; font-size: .8rem; font-weight: 700; color: var(--uy-navy); text-transform: none; letter-spacing: 0; }
}

/* Dar telefonlar (≤369 px, ör. 360 / 320): logo küçülür */
@media (max-width: 369.98px) {
  body.uy-theme .main-header .uy-logo { font-size: 1.05rem; --uy-uni-w: 300; }
}

/* ---------- Ana sayfa karşılama bandı (hero) ---------- */

body.uy-theme .uy-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px 0 60px;
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(63, 106, 230, .38), transparent 62%),
    radial-gradient(700px 300px at -5% 120%, rgba(63, 106, 230, .20), transparent 60%),
    linear-gradient(180deg, #08152a 0%, #0e2242 100%);
}

body.uy-theme .uy-hero::after {
  /* ince nokta dokusu: düz renk bloğu gibi durmasın */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  pointer-events: none;
}

body.uy-theme .uy-hero .container { position: relative; z-index: 1; }

body.uy-theme .uy-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .86);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

body.uy-theme .uy-hero h1.home-title {
  color: #fff;
  font-size: clamp(1.65rem, 1.05rem + 2.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 820px;
  margin: 1.1rem 0 1rem;
}

body.uy-theme .uy-hero-lead {
  max-width: 680px;
  margin: 0;
  color: rgba(226, 232, 245, .82);
  font-size: clamp(.98rem, .92rem + .3vw, 1.08rem);
  line-height: 1.65;
}

body.uy-theme .uy-hero-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 1.75rem 0 0;
}

body.uy-theme .uy-hero-steps li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .9rem .45rem .45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .88rem;
  font-weight: 400;
}

body.uy-theme .uy-hero-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--uy-navy);
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  body.uy-theme .uy-hero { padding: 40px 0 46px; }
  body.uy-theme .uy-hero h1.home-title { margin: 1.35rem 0 1.15rem; }
  body.uy-theme .uy-hero-steps { margin-top: 1.9rem; gap: .7rem; }
  body.uy-theme .uy-hero-steps li { font-size: .84rem; }
}

/* Bölüm başlıkları (ana sayfa akışı, sağ panel, sol liste) */
body.uy-theme .uy-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uy-muted);
}

body.uy-theme .uy-section-title i { color: var(--uy-navy); font-size: .85rem; }   /* bölüm başlığı simgeleri tema (lacivert) renginde */

/* ---------- Sayfa başlık kartı (üniversite / bölüm / akademisyen) ---------- */

body.uy-theme .uy-crumbs {
  font-size: .8rem;
  font-weight: 400;
  color: var(--uy-muted);
  margin-bottom: .75rem;
  line-height: 1.6;
}

body.uy-theme .uy-crumbs .LinkingPart {
  color: var(--uy-navy-3) !important;
  font-weight: 700;
}

body.uy-theme .uy-page-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  background: var(--uy-card);
  border: 1px solid var(--uy-line);
  border-radius: 18px;
  box-shadow: var(--uy-shadow);
  overflow: hidden;
}

body.uy-theme .uy-page-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--uy-navy);   /* gradyan kaldırıldı (marka kuralı); eskiden lacivert→mavi */
}

body.uy-theme .uy-page-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--uy-navy);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px -8px rgba(8, 21, 42, .6);
}

body.uy-theme .uy-page-head-body { min-width: 0; flex: 1 1 auto; }

body.uy-theme .uy-page-head h1.university-title,
body.uy-theme .uy-page-head h1.department-title,
body.uy-theme .uy-page-head h1.instructor-title {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--uy-ink);
  margin: .1rem 0 0;
  word-break: break-word;
}

body.uy-theme .uy-page-head h1 b { font-weight: inherit; }

body.uy-theme .uy-page-lead {
  margin: .6rem 0 0;
  color: var(--uy-muted);
  font-size: .95rem;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  body.uy-theme .uy-page-head { padding: 1.25rem 1.1rem 1.1rem; gap: .8rem; }
  body.uy-theme .uy-page-icon { flex-basis: 42px; height: 42px; font-size: 1.05rem; border-radius: 12px; }
}

/* ---------- Sık sorulan sorular ---------- */

body.uy-theme .faq-block { max-width: none; margin: 1.5rem 0; }
body.uy-theme .uy-page-head + .faq-block { margin-top: 0; }

body.uy-theme .faq-block h2 {
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uy-muted);
}

body.uy-theme .faq-item {
  margin-bottom: .5rem;
  background: var(--uy-card);
  border: 1px solid var(--uy-line);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .2s ease;
}

body.uy-theme .faq-item:hover { border-color: var(--uy-line-2); }
body.uy-theme .faq-item[open] { box-shadow: var(--uy-shadow); }

body.uy-theme .faq-item summary {
  position: relative;
  padding: .8rem 2.75rem .8rem 1rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--uy-ink);
  border-radius: 12px;
}

body.uy-theme .faq-item summary::before { content: none; }

body.uy-theme .faq-item summary::after {
  content: "\f078"; /* chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  color: var(--uy-muted);
  transition: transform .2s ease;
}

body.uy-theme .faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }

body.uy-theme .faq-item p {
  padding: 0 1rem .9rem;
  color: var(--uy-text);
  font-size: .92rem;
  line-height: 1.65;
}

/* ---------- Kartlar (genel) ---------- */

body.uy-theme .card {
  border: 1px solid var(--uy-line);
  border-radius: var(--uy-radius);
  box-shadow: var(--uy-shadow);
}

body.uy-theme .card > .card-header:first-child,
body.uy-theme .card .widget-user-header {
  border-top-left-radius: calc(var(--uy-radius) - 1px);
  border-top-right-radius: calc(var(--uy-radius) - 1px);
}

body.uy-theme .card > .card-footer:last-child {
  border-bottom-left-radius: calc(var(--uy-radius) - 1px);
  border-bottom-right-radius: calc(var(--uy-radius) - 1px);
}

body.uy-theme .alert { border-radius: 12px; border: 0; }

/* ---------- Yorum kartı ---------- */

body.uy-theme .comment-container > .card {
  margin-bottom: .75rem;
  overflow: hidden;
  box-shadow: none;   /* durağan hâlde düz: yorum listesi sayfada baskın olmasın (gölge yalnız hover) */
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

body.uy-theme .comment-container > .card:hover {
  border-color: var(--uy-line-2);
  box-shadow: var(--uy-shadow-lg);
}

/* Paylaşılan bağlantıyla gelinen yorum (#yorum-123) kısa süre vurgulanır */
body.uy-theme .comment-container:target > .card {
  border-color: var(--uy-accent);
  box-shadow: var(--uy-ring), var(--uy-shadow-lg);
}

body.uy-theme .comment-container .card-header {
  padding: .8rem 1.1rem;
  background: var(--uy-card);   /* kart zemini ile aynı (beyaz); krem şerit denendi, sahip beğenmedi (2026-11-05) */
  border-bottom: 1px solid var(--uy-line);
}

body.uy-theme .comment-container .card-header .tiklama {
  display: flex;
  align-items: center;          /* tek satırda da çok satırda da metin ve simge başlığın tam ortasında */
  gap: .65rem;
  font-size: .78rem;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--uy-navy) !important;
  text-decoration: none;
}

body.uy-theme .comment-container .card-header .tiklama:hover { color: var(--uy-accent) !important; }

/* Yorumun hedefine göre küçük simge; hedef türü bağlantı adresinden okunur (markup değişmedi). */
body.uy-theme .comment-container .card-header .tiklama::before {
  content: "\f02d"; /* book: varsayılan */
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--uy-accent-soft);
  color: var(--uy-navy-3);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: .72rem;
}

body.uy-theme .comment-container .card-header .tiklama[href^="/egitmen/"]::before { content: "\f51c"; }     /* chalkboard-teacher */
body.uy-theme .comment-container .card-header .tiklama[href^="/bolum/"]::before { content: "\f19d"; }       /* graduation-cap */
body.uy-theme .comment-container .card-header .tiklama[href^="/universite/"]::before { content: "\f19c"; }  /* university */

/* Gövde: float'lar yerine esnek satır (metin, altında oylar solda, tarih/yazar sağda) */
body.uy-theme .comment-container .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .75rem;
  padding: 1rem 1.1rem .9rem;
}

body.uy-theme .comment-container .card-body > .comment {
  flex: 1 1 100%;
  font-size: .97rem;
  line-height: 1.68;
  color: var(--uy-ink);
  overflow-wrap: anywhere;
}

body.uy-theme .comment-container .comment .myBtn {
  display: inline-block;
  margin-top: .25rem;
  color: var(--uy-accent);
  font-style: normal;
  font-weight: 700;
  font-size: .85rem;
}

body.uy-theme .comment-container .comment-actions {
  float: none !important;
  margin-top: .15rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

body.uy-theme .comment-container .card-body > .float-right {
  float: none !important;
  margin: .15rem 0 0 auto !important;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  font-size: .8rem;
  color: var(--uy-muted) !important;
}

body.uy-theme .comment-container .card-body > .float-right a {
  color: var(--uy-text) !important;
  font-weight: 700;
}

body.uy-theme .comment-container .card-body > .float-right a:hover { color: var(--uy-accent) !important; }

/* Oy ve paylaş düğmeleri: küçük kutular yerine hap (pill) biçimi. Metin (+3 / -1) JS ile güncellendiği
   için dokunulmadı; simge ::before ile eklenir. */
body.uy-theme .vote-button,
body.uy-theme .share-button {
  width: auto;
  min-width: 32px;
  height: 30px;
  padding: 0 .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--uy-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--uy-text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

body.uy-theme .vote-button::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: .78rem;
}

body.uy-theme .vote-button[data-vote="1"] { color: var(--uy-muted); }
body.uy-theme .vote-button[data-vote="1"]::before { content: "\f164"; }  /* thumbs-up */
body.uy-theme .vote-button[data-vote="-1"] { color: var(--uy-muted); }
body.uy-theme .vote-button[data-vote="-1"]::before { content: "\f165"; } /* thumbs-down */

/* Bildir düğmesi: "!" metni gizlenir, yalnızca bayrak simgesi görünür */
body.uy-theme .vote-button[data-vote="0"] { color: var(--uy-muted); font-size: 0; padding: 0; width: 32px; }
body.uy-theme .vote-button[data-vote="0"]::before { content: "\f024"; font-size: .76rem; }
body.uy-theme .vote-button .spinner-border { font-size: .8rem; }
body.uy-theme .vote-button:has(.spinner-border)::before { display: none; }

body.uy-theme .vote-button[data-vote="1"]:hover { background: var(--uy-good-soft); border-color: var(--uy-success-line); color: var(--uy-good); }
body.uy-theme .vote-button[data-vote="-1"]:hover { background: var(--uy-bad-soft); border-color: var(--uy-danger-line); color: var(--uy-bad); }
body.uy-theme .vote-button[data-vote="0"]:hover { background: var(--uy-bad-soft); border-color: var(--uy-danger-line); color: var(--uy-bad); }

body.uy-theme .vote-button[data-vote="1"].active { background: var(--uy-good); border-color: var(--uy-good); color: #fff; }
body.uy-theme .vote-button[data-vote="-1"].active { background: var(--uy-bad); border-color: var(--uy-bad); color: #fff; }
body.uy-theme .vote-button[data-vote="0"].active { background: var(--uy-bad); border-color: var(--uy-bad); color: #fff; }
/* Durağan hâl gri; oyu olan (sayı 0'dan farklı, `.has-votes`: sunucu + Evaluations.js) beğen/sevimsiz düğmesinde simge ilgili renkte dolu.
   Üzerine gelince düğmenin içi ilgili rengin açık tonuna döner (yukarıdaki :hover kuralları). Seçili (.active) düğme dolu renk + beyaz simge. */
body.uy-theme .vote-button[data-vote="1"].has-votes:not(.active)::before { color: var(--uy-good); }
body.uy-theme .vote-button[data-vote="-1"].has-votes:not(.active)::before { color: var(--uy-bad); }

body.uy-theme .share-button { width: 32px; padding: 0; color: var(--uy-muted); font-size: .76rem; }
body.uy-theme .share-button:hover { background: var(--uy-accent-soft); border-color: var(--uy-line-2); color: var(--uy-accent); }

/* ---------- Yorum yazma kutusu ---------- */

body.uy-theme .uy-write-card { margin-bottom: 1.25rem; }
body.uy-theme .uy-write-card .card-body { padding: 1.1rem 1.1rem 1rem; }

body.uy-theme .uy-write-card label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--uy-ink);
  margin-bottom: .6rem;
}

body.uy-theme .uy-write-card label::before {
  content: "\f4ad"; /* comment-dots */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--uy-accent);
}

body.uy-theme .uy-write-card textarea.form-control {
  min-height: 110px;
  padding: .8rem .9rem;
  resize: vertical;
  line-height: 1.6;
}

body.uy-theme .uy-write-card small { color: var(--uy-muted); margin-top: .35rem; }
body.uy-theme .uy-write-card .g-recaptcha { margin-top: .75rem; }

body.uy-theme .uy-write-card #submitBtn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  padding: .55rem 1.25rem;
  /* Karakter sayacı (small.float-right) ile düğme (float-lg-right) iki yüzen öğe: girişlide araya captcha bloğu girmediği için düğme
     sayacın SOLUNA yaslanıyor ve sayaç hanesi arttıkça (9 → 99 → 1000) sola kayıyordu. clear: düğme her zaman sayacın altına iner,
     sağ kenara tam yaslanır (anonimdeki gibi); sayaç genişliği düğmeyi etkilemez. */
  clear: both;
}

/* Yorum listesi üstündeki "giriş yaparak devam et" notu */
body.uy-theme .uy-main > .row > .col-lg-12 > .card-body[style*="center"] {
  padding: .25rem 0 1rem;
  color: var(--uy-muted);
  font-size: .9rem;
}

/* ---------- Form öğeleri ---------- */

body.uy-theme .form-control {
  border: 1px solid var(--uy-line-2);
  border-radius: 10px;
  color: var(--uy-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.uy-theme input.form-control,
body.uy-theme select.form-control { height: calc(2.6rem + 2px); }

body.uy-theme .form-control:focus { border-color: var(--uy-accent); box-shadow: var(--uy-ring); }

body.uy-theme .btn { border-radius: 10px; font-weight: 700; }

body.uy-theme .btn-primary,
body.uy-theme .btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--uy-navy) !important;
  border-color: var(--uy-navy) !important;
  color: #fff;
}

body.uy-theme .btn-primary:hover,
body.uy-theme .btn-primary:focus { background-color: var(--uy-navy-3) !important; border-color: var(--uy-navy-3) !important; }

/* Giriş, kayıt, şifre sıfırlama ve iletişim formları (.well.bs-component) kart olarak */
body.uy-theme .well.bs-component {
  max-width: 520px;
  margin: .5rem auto 1.5rem;
  padding: 2rem 2rem 1rem;
  background: var(--uy-card);
  border: 1px solid var(--uy-line);
  border-radius: 18px;
  box-shadow: var(--uy-shadow-lg);
}

body.uy-theme .well.bs-component h3,
body.uy-theme .well.bs-component h4 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--uy-ink);
  margin-bottom: .25rem;
}

body.uy-theme .well.bs-component hr { border-color: var(--uy-line); }
body.uy-theme .well.bs-component .form-group > .col-lg-12 { padding: 0; } /* gönder düğmesi kutularla aynı genişlikte */
body.uy-theme .well.bs-component label { font-size: .88rem; font-weight: 700; color: var(--uy-ink); }

@media (max-width: 575.98px) {
  body.uy-theme .well.bs-component { padding: 1.5rem 1.15rem .75rem; border-radius: 16px; }
}

/* ---------- Arama kutusu ---------- */

body.uy-theme .search-container { margin-bottom: 1rem; }

body.uy-theme .searchInput {
  height: 48px;
  padding: 0 .9rem 0 2.6rem;
  border: 1px solid var(--uy-line-2);
  border-radius: 12px;
  font-size: .92rem;
  color: var(--uy-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
  box-shadow: var(--uy-shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.uy-theme .searchInput::placeholder { color: #8a96ab; }
body.uy-theme .searchInput:focus { outline: none; border-color: var(--uy-accent); box-shadow: var(--uy-ring), var(--uy-shadow); }

/* Arama yükleniyor göstergesi: kutunun sağ içine küçük halka (display JS ile açılıp kapanır) */
body.uy-theme .lds-dual-ring { width: auto; height: auto; right: 10px; top: 0; }
body.uy-theme .lds-dual-ring:after {
  width: 20px;
  height: 20px;
  margin: 14px 4px;
  border-width: 3px;
  border-color: var(--uy-accent) transparent var(--uy-accent) transparent;
}

body.uy-theme .dropdown-content {
  margin-top: .5rem;
  padding: .35rem 0;
  background: #fff;
  border: 1px solid var(--uy-line);
  border-radius: 12px;
  box-shadow: var(--uy-shadow-lg);
  line-height: 1.25;
}

body.uy-theme .dropdown-content li { border-radius: 8px; margin: 0 .35rem; }
body.uy-theme .dropdown-content li:hover { background: var(--uy-accent-soft); }
body.uy-theme .dropdown-content li a { padding: .45rem .75rem; color: var(--uy-ink); font-size: .88rem; }
body.uy-theme .dropdown-content li a span { color: var(--uy-muted); }

/* ---------- Sol liste (üniversiteler / bölümler / akademisyenler) ---------- */

body.uy-theme .uy-side .uy-section-title { margin-top: .25rem; }

body.uy-theme .table-container {
  display: block;
  overflow-y: auto;
  background: var(--uy-card);
  border: 1px solid var(--uy-line) !important;
  border-radius: var(--uy-radius);
  box-shadow: var(--uy-shadow);
  scrollbar-width: thin;
  scrollbar-color: #c9d2e3 transparent;
}

body.uy-theme .table-container::-webkit-scrollbar { width: 8px; }
body.uy-theme .table-container::-webkit-scrollbar-thumb { background: #c9d2e3; border-radius: 8px; border: 2px solid #fff; }

body.uy-theme .datatbl { box-shadow: none; border-collapse: separate; border-spacing: 0; }
body.uy-theme .datatbl td { border: 0; border-bottom: 1px solid #eef1f6; padding: 0; }
body.uy-theme .datatbl tr:last-child td { border-bottom: 0; }
body.uy-theme .table-hover tbody tr:hover { background: transparent; }

body.uy-theme .datatbl td a {
  padding: .6rem .9rem;
  font-size: .79rem;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--uy-ink) !important;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}

body.uy-theme .datatbl tr:hover td a {
  background: var(--uy-accent-soft);
  color: var(--uy-navy) !important;
  padding-left: 1.15rem;
}

@media (min-width: 992px) {
  /* Masaüstünde sol sütun kaydırırken ekranda kalır; liste yüksekliği ekrana göre (JS'nin verdiği 79vh ezilir) */
  body.uy-theme .uy-side { position: sticky; top: calc(var(--uy-nav-h) + 20px); }
  body.uy-theme .uy-side .table-container { height: auto !important; max-height: calc(100vh - var(--uy-nav-h) - 170px); }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body.uy-theme .uy-side .table-container { height: auto !important; max-height: 70vh; }
}

@media (max-width: 767.98px) {
  body.uy-theme .uy-side { margin-bottom: 1.25rem; }
  body.uy-theme .uy-side .table-container { height: auto !important; max-height: 42vh; }
}

/* ---------- Ana sayfa sağ panel ---------- */

body.uy-theme .uy-top-uni {
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  background: var(--uy-card);
  border: 1px solid var(--uy-line);
  border-radius: var(--uy-radius);
  box-shadow: var(--uy-shadow);
  font-size: .82rem;
  color: var(--uy-muted);
}

body.uy-theme .uy-top-uni .tiklama {
  display: block;
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--uy-navy) !important;
  font-weight: 700;
  transition: color .15s ease;
}

/* Üzerine gelince: yorum kartlarıyla aynı davranış (kutu hafif yükselir, bağlantı vurgu rengine döner) */
body.uy-theme .uy-top-uni { transition: box-shadow .2s ease, border-color .2s ease; }
body.uy-theme .uy-top-uni:hover { border-color: var(--uy-line-2); box-shadow: var(--uy-shadow-lg); }
body.uy-theme .uy-top-uni .tiklama:hover,
body.uy-theme .uy-top-uni .tiklama:focus-visible { color: var(--uy-accent) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Sağ paneldeki yorum kartları daha sıkı */
body.uy-theme .sag-panel .comment-container .card-header { padding: .65rem .85rem; }
body.uy-theme .sag-panel .comment-container .card-body { padding: .8rem .85rem .75rem; }
body.uy-theme .sag-panel .comment-container .card-body > .comment { font-size: .9rem; }

/* ---------- Sayfalama ---------- */

body.uy-theme nav[aria-label="Sayfa Navigasyonu"] {
  padding: .5rem 0 1rem;
  border: 0;
}

body.uy-theme nav[aria-label="Sayfa Navigasyonu"] .pagination { gap: .4rem; flex-wrap: wrap; justify-content: center; }

body.uy-theme nav[aria-label="Sayfa Navigasyonu"] .page-link {
  min-width: 40px;
  height: 40px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uy-line-2);
  border-radius: 10px !important;
  background: #fff;
  color: var(--uy-ink);
  font-weight: 700;
  font-size: .9rem;
}

body.uy-theme nav[aria-label="Sayfa Navigasyonu"] .page-link:hover { background: var(--uy-accent-soft); color: var(--uy-navy); }

body.uy-theme nav[aria-label="Sayfa Navigasyonu"] a.page-link.active {
  background: var(--uy-navy);
  border-color: var(--uy-navy);
  color: #fff;
}

/* ---------- Karşılama penceresi (ilk ziyaret) ---------- */

body.uy-theme #once-popup {
  background: rgba(8, 21, 42, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.uy-theme #once-popup .inner {
  width: 520px;
  margin: 12vh auto 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--uy-shadow-lg);
}

body.uy-theme #once-popup h6 { font-size: .97rem; line-height: 1.65; font-weight: 400; color: var(--uy-text); }

body.uy-theme #once-popup #popup-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f4f9;
  font-size: 22px;
  line-height: 1;
  color: var(--uy-muted);
}

body.uy-theme #once-popup #popup-close:hover { background: #e6ebf3; color: var(--uy-ink); }

/* ---------- Yukarı çık düğmesi ---------- */
/* Kurumsal kimlik (2026-11-07): lacivert daire + krem ok (amblemle aynı düz uçlu çizgi dili); mercan yok.
   Koyu footer üstünde kaybolmasın diye krem halka; üzerine gelince ok hafifçe yükselir (hareketi azalt: sabit). */
body.uy-theme #scrollUpLink {
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  padding: 12px;   /* 46 − 22 (ok) = 24 → 12 px: JS display:block verdiği için ortalama dolgu ile */
  border-radius: 50%;
  background: var(--uy-navy);
  color: var(--uy-cream);
  box-shadow: 0 0 0 2px var(--uy-cream), var(--uy-shadow);
  text-decoration: none;
  transition: opacity .3s ease-in-out, visibility 0s linear .3s, background-color .15s ease;
}

body.uy-theme #scrollUpLink.is-visible { transition: opacity .3s ease-in-out, visibility 0s, background-color .15s ease; }

body.uy-theme #scrollUpLink:hover { background: var(--uy-action-hover); color: var(--uy-cream); }

body.uy-theme #scrollUpLink svg { width: 22px; height: 22px; display: block; transition: transform .2s ease; }

body.uy-theme #scrollUpLink:hover svg { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  body.uy-theme #scrollUpLink svg { transition: none; }
  body.uy-theme #scrollUpLink:hover svg { transform: none; }
}

/* ---------- 404 ---------- */

body.uy-theme .error-page { max-width: 560px; margin: 3rem auto; text-align: center; }
body.uy-theme .error-page > .headline {
  float: none;
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--uy-navy) !important;
}
body.uy-theme .error-page > .error-content { margin-left: 0; }
body.uy-theme .error-page > .error-content > h3 { font-size: 1.3rem; font-weight: 700; }

/* ---------- Site hakkında ---------- */

body.uy-theme h1.about-title { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Alt bilgi (footer) ---------- */

body.uy-theme footer.uy-footer {
  padding: 2.5rem 0 1.5rem;
  background: var(--uy-navy-deep);   /* menüyle aynı derin ton */
  color: rgba(251, 255, 240, .7);
  font-size: .88rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

body.uy-theme .uy-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.uy-theme .uy-footer-brand { max-width: 360px; }
body.uy-theme .uy-footer-brand p { margin: .75rem 0 0; line-height: 1.6; }

body.uy-theme .uy-footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; padding-top: .25rem; }

body.uy-theme .uy-footer-links a {
  color: rgba(251, 255, 240, .78);
  text-decoration: none;
  font-weight: 400;
}

body.uy-theme .uy-footer-links a:hover { color: var(--uy-cream); }

body.uy-theme .uy-footer-bottom { padding-top: 1.1rem; font-size: .8rem; color: rgba(251, 255, 240, .5); }

@media (max-width: 575.98px) {
  body.uy-theme footer.uy-footer { padding: 2.75rem 0 1.9rem; }
  body.uy-theme .uy-footer-top { gap: 1.9rem; padding-bottom: 1.25rem; }
  body.uy-theme .uy-footer-brand p { margin-top: .95rem; }
  /* bağlantılar iki sütun, her biri ≥44 px dokunma alanı */
  body.uy-theme .uy-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.25rem; width: 100%; padding-top: 0; }
  body.uy-theme .uy-footer-links a { display: flex; align-items: center; min-height: 44px; }
  body.uy-theme .uy-footer-bottom { padding-top: 1.35rem; }
}

/* ---------- Yorum sonrası öneri penceresi (2026-11-06, _CommentNextStepPartialView) ----------
   Yerel <dialog> (showModal). Telefonda alttan açılan panel. showModal yoksa .is-inline: yorum kutusunun üstünde kart. */

/* Çapa hedefi sabit menünün altında kalmasın */
body.uy-theme #yorum-yaz { scroll-margin-top: calc(var(--uy-nav-h) + 16px); }

/* Pencere açıkken arka sayfa kaymasın */
html.uy-noscroll,
html.uy-noscroll body { overflow: hidden; }

body.uy-theme dialog.uy-nextstep {
  width: calc(100% - 32px);
  max-width: 660px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--uy-card);
  color: var(--uy-text);
  box-shadow: 0 24px 60px -12px rgba(8, 21, 42, .45);
  overflow: hidden;
}
body.uy-theme dialog.uy-nextstep[open] { display: flex; flex-direction: column; animation: uyNsIn .22s ease-out; }
body.uy-theme dialog.uy-nextstep::backdrop { background: rgba(8, 21, 42, .55); }

/* İç sarmalayıcı pencereyi tümüyle kaplar ve kendi içinde kayar (arka plana tıklama yalnız dialog'un kendisine düşer) */
body.uy-theme .uy-nextstep-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.3rem 1.1rem;
}

/* showModal desteklemeyen tarayıcı: sayfa içi kart */
body.uy-theme dialog.uy-nextstep.is-inline {
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0 0 1rem;
  border: 1px solid #bfe5cc;
  border-radius: var(--uy-radius);
  box-shadow: var(--uy-shadow);
  animation: none;
}
body.uy-theme dialog.uy-nextstep.is-inline .uy-nextstep-inner { overflow: visible; }

body.uy-theme .uy-nextstep [hidden] { display: none !important; }

body.uy-theme .uy-nextstep-head { display: flex; align-items: center; gap: .7rem; min-height: 36px; padding-right: 2.75rem; }

body.uy-theme .uy-nextstep-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--uy-good-soft);
  color: var(--uy-good);
  font-size: .95rem;
}

body.uy-theme .uy-nextstep-title { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--uy-ink); }
body.uy-theme .uy-nextstep-title:focus { outline: none; }

/* Vurgu kutusu (sahip seçimi, 2026-11-06): sitenin lacivert zemini (#08152a → #1d3a6b, eski "üst bant" seçeneğinin rengi),
   beyaz yazı, öğrenci simgesi; sol şerit yok (sahip kararı). Beyaz / lacivert karşıtlığı çok yüksek (AAA). */
body.uy-theme .uy-nextstep-callout {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: .85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #08152a 0%, #1d3a6b 100%);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(8, 21, 42, .7);
}
body.uy-theme .uy-nextstep-callout > .fas {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .95rem;
}
body.uy-theme .uy-nextstep-emph { margin: 0; font-size: 1.06rem; font-weight: 700; line-height: 1.45; color: #fff; }
body.uy-theme .uy-nextstep-sub { margin: .35rem 0 0; font-size: .9rem; line-height: 1.55; color: rgba(226, 232, 245, .88); }

body.uy-theme .uy-nextstep-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 6px rgba(15, 23, 42, .12);
  color: var(--uy-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
body.uy-theme .uy-nextstep-close:hover { background: #f1f5f9; color: var(--uy-ink); }
body.uy-theme .uy-nextstep-close:focus-visible { outline: none; box-shadow: var(--uy-ring); }
/* Bootstrap'in button:focus çerçevesi fare/dokunmada kalmasın; klavyede :focus-visible halkası görünür */
body.uy-theme .uy-nextstep button:focus:not(:focus-visible) { outline: none; }

body.uy-theme .uy-nextstep-group { margin-top: 1.1rem; }

body.uy-theme .uy-nextstep-label { margin-bottom: .5rem; font-size: .82rem; font-weight: 700; color: var(--uy-ink); }

/* Öne çıkan öneriler: iki sütun (4 öneri 2×2), telefonda tek sütun */
body.uy-theme .uy-nextstep-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

body.uy-theme a.uy-nextstep-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 52px;
  padding: .55rem .75rem;
  background: #fff;
  border: 1px solid var(--uy-line-2);
  border-radius: var(--uy-radius-sm);
  color: var(--uy-ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.uy-theme a.uy-nextstep-link:hover,
body.uy-theme a.uy-nextstep-link:focus-visible {
  border-color: var(--uy-accent);
  box-shadow: var(--uy-ring);
  color: var(--uy-ink);
  text-decoration: none;
  outline: none;
}
body.uy-theme a.uy-nextstep-link:hover { transform: translateY(-1px); }

body.uy-theme .uy-nextstep-link > .fas:first-child {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--uy-accent-soft);
  color: var(--uy-navy);
  font-size: .8rem;
}

body.uy-theme .uy-nextstep-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
body.uy-theme .uy-nextstep-name { font-size: .9rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
body.uy-theme .uy-nextstep-meta { margin-top: .1rem; font-size: .76rem; color: var(--uy-muted); }
body.uy-theme .uy-nextstep-meta.is-new { color: var(--uy-good); font-weight: 600; }
body.uy-theme .uy-nextstep-go { flex: 0 0 auto; color: var(--uy-muted); font-size: .72rem; }
body.uy-theme a.uy-nextstep-link:hover .uy-nextstep-go { color: var(--uy-accent); }

/* "Tümünü göster" düğmesi ve tam liste */
body.uy-theme .uy-nextstep-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin-top: .3rem;
  padding: 0 .15rem;
  border: 0;
  background: none;
  color: var(--uy-accent);
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
}
body.uy-theme .uy-nextstep-toggle:hover { text-decoration: underline; }
body.uy-theme .uy-nextstep-toggle:focus-visible { outline: none; box-shadow: var(--uy-ring); border-radius: 8px; }

/* Tam liste kendi içinde kayan kutudur; arama kutusu hep üstünde görünür (kalabalık bölümde ~2000 satır) */
body.uy-theme .uy-nextstep-all .uy-nextstep-filter { margin: .25rem 0 .5rem; }

body.uy-theme .uy-nextstep-listbox {
  max-height: 340px;
  max-height: min(340px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--uy-line);
  border-radius: var(--uy-radius-sm);
}
body.uy-theme .uy-nextstep-list { margin: 0; padding: 0; list-style: none; }
body.uy-theme .uy-nextstep-list li + li { border-top: 1px solid var(--uy-line); }
body.uy-theme .uy-nextstep-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: .45rem .8rem;
  color: var(--uy-ink);
  text-decoration: none;
}
body.uy-theme .uy-nextstep-list a:hover,
body.uy-theme .uy-nextstep-list a:focus-visible { background: var(--uy-accent-soft); color: var(--uy-ink); text-decoration: none; outline: none; }
body.uy-theme .uy-nextstep-list .uy-nextstep-name { font-weight: 500; }
body.uy-theme .uy-nextstep-list .uy-nextstep-meta { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
body.uy-theme .uy-nextstep-empty { margin: 0; padding: .8rem; font-size: .85rem; color: var(--uy-muted); }

body.uy-theme .uy-nextstep-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--uy-line);
}
body.uy-theme .uy-nextstep-later {
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--uy-line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--uy-ink);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
body.uy-theme .uy-nextstep-later:hover { background: #f8fafc; border-color: #c5cede; }
body.uy-theme .uy-nextstep-later:focus-visible { outline: none; box-shadow: var(--uy-ring); }

@keyframes uyNsIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes uyNsUp { from { transform: translateY(100%); } to { transform: none; } }

/* Telefon: alttan açılan panel, tek sütun */
@media (max-width: 575.98px) {
  body.uy-theme dialog.uy-nextstep:not(.is-inline) {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 18px 18px 0 0;
  }
  body.uy-theme dialog.uy-nextstep[open]:not(.is-inline) { animation-name: uyNsUp; animation-duration: .26s; }
  body.uy-theme .uy-nextstep-inner { padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  body.uy-theme .uy-nextstep-links { grid-template-columns: 1fr; }
  body.uy-theme .uy-nextstep-foot { justify-content: stretch; }
  body.uy-theme .uy-nextstep-later { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.uy-theme dialog.uy-nextstep[open] { animation: none !important; }
}

/* ---------- Hareket azaltma tercihi ---------- */

@media (prefers-reduced-motion: reduce) {
  body.uy-theme *,
  body.uy-theme *::before,
  body.uy-theme *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Ortam göstergesi (2026-11-05) — Views/Shared/_EnvBadgePartialView.cshtml; yalnız Production DIŞINDA basılır.
   Üstte 3 px uyarı şeridi (uyarı tonu/lacivert çapraz) + sol altta küçük hap. Tıklamayı engellemez
   (pointer-events: none), yerleşimi kaydırmaz, baskıda görünmez. Yönetimdeki .uy-env rozetiyle aynı renk dili.
   ===================================================================== */
body.uy-theme .uy-envbar-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--uy-warning) 0 10px, var(--uy-navy) 10px 20px);
}

body.uy-theme .uy-envbar-pill {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1080;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border: 1px solid var(--uy-warning-line);
  border-radius: 999px;
  background: var(--uy-warning-soft);
  color: var(--uy-warning);
  font-family: var(--uy-font);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--uy-shadow);
}

body.uy-theme .uy-envbar-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }

/* Sayfa sonunda hap footer'ın son satırının (telif) üstüne binmesin: yalnız gösterge varken footer'a alt boşluk */
body.uy-theme .uy-envbar ~ footer,
body.uy-theme .uy-envbar ~ .footer { padding-bottom: 3.25rem; }

@media (max-width: 576px) {
  body.uy-theme .uy-envbar-pill { left: 8px; bottom: 8px; font-size: .64rem; padding: .25rem .55rem; }
}

@media print {
  body.uy-theme .uy-envbar { display: none; }
}

/* =====================================================================
   404 sayfası (2026-11-05) — Views/ErrorPage/Page404.cshtml
   "4 ☀ 4": sıfırın yerinde Doğan Ufuk amblemi; 6 ışın ufkun üstünde döner (BRAND.md §8; hareket azaltmada sabit). Arama kutusu ana sayfadakiyle aynı parça (_MainSearchPartialView).
   ===================================================================== */
body.uy-theme .uy-404 { text-align: center; padding: 2.5rem 0 3rem; }

body.uy-theme .uy-404-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .06em;
  margin-bottom: 1.1rem;
  color: var(--uy-navy);
  font-family: var(--uy-font);
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 200;
  line-height: 1;
}

body.uy-theme .uy-404-sun { width: 1.1em; height: 1.1em; overflow: visible; }

/* Işınlar SVG SMIL ile döner (Page404.cshtml): CSS animasyonu yok; saydamlık ve açı işaretlemede */

body.uy-theme .uy-404-kod {
  margin: 0 0 .35rem;
  color: var(--uy-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.uy-theme .uy-404-baslik { margin: 0 0 .75rem; color: var(--uy-ink); font-size: clamp(1.4rem, 4.2vw, 1.9rem); font-weight: 700; }

body.uy-theme .uy-404-metin { max-width: 34rem; margin: 0 auto 1.5rem; color: var(--uy-muted); font-size: 1rem; line-height: 1.6; }

body.uy-theme .uy-404-ara { max-width: 34rem; margin: 0 auto 1.5rem; text-align: left; }

body.uy-theme .uy-404-eylem { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; }

body.uy-theme .uy-404-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.25rem; }

body.uy-theme .uy-404-link { color: var(--uy-muted); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }

body.uy-theme .uy-404-link:hover { color: var(--uy-ink); }

/* ---- Google ile giriş + "Beni hatırla" + POST çıkış düğmesi (2026-11-12) ---- */
body.uy-theme .uy-or { display: flex; align-items: center; gap: .75rem; margin: .25rem 0 1rem; color: var(--uy-muted); font-size: .85rem; }
body.uy-theme .uy-or::before,
body.uy-theme .uy-or::after { content: ""; flex: 1; height: 1px; background: var(--uy-line); }

/* Google marka kuralı: beyaz zemin, ince çerçeve, renkli "G", koyu yazı (markanın düğme rengi burada kullanılmaz) */
body.uy-theme .uy-google-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: var(--uy-btn-radius, 8px);
  font-weight: 700; min-height: 44px;
}
body.uy-theme .uy-google-btn:hover { background: #f6f8f2; color: #1f1f1f; }
body.uy-theme .uy-google-btn:focus-visible { outline: 2px solid var(--uy-navy); outline-offset: 2px; }
body.uy-theme .uy-google-g { flex: 0 0 auto; }

body.uy-theme .uy-remember label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 400; cursor: pointer; }
body.uy-theme .uy-remember input { width: 18px; height: 18px; accent-color: var(--uy-navy); }

body.uy-theme .uy-google-linked { margin: 0 0 .5rem; font-size: .92rem; color: var(--uy-ink); }
body.uy-theme .uy-google-linked i { color: var(--uy-muted); margin-right: .25rem; }

/* Hesap menüsündeki "Çıkış Yap" artık <button> (POST): bağlantı satırlarıyla aynı görünsün */
body.uy-theme .main-header button.dropdown-item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; }
body.uy-theme .main-header button.dropdown-item:hover { background: var(--uy-accent-soft); }
