/* =========================================================================
   RSPD — Lacivert renk katmanı (style.css'in üzerine, açık sayfalar)
   Eski tasarımın yerleşimi, yazı tipleri ve animasyonları aynen kalır;
   yalnızca siyah tonlar portalla aynı koyu laciverte, vurgular pirince döner.
   Portal bu dosyayı değil kurum.css'i kullanır.
   ========================================================================= */

:root {
  --bg: #0a1626;
  --bg-2: #0d1b2e;
  --surface: #11233a;
  --surface-2: #172c47;
  --line: rgba(173, 196, 224, 0.14);
  --line-strong: rgba(173, 196, 224, 0.28);
  --input-border: rgba(173, 196, 224, 0.4);
  --text-2: #b4c2d3;
  --muted: #8c9cb0;
  --link: #9cc3f5;
  --brass: #d4a84a;
  --brass-ink: #e2bc66;
  --siren: linear-gradient(90deg, #2f6db5, #3a7cc7);
  --siren-hover: linear-gradient(90deg, #3a7cc7, #4a8ad4);
  --blue: #2f6db5;
  --glow: #2f6db5;
  --career-bg: #0c1d33;
  --calc-bg: #13294a;
}

:focus-visible { outline-color: var(--brass-ink); }
.kicker, .footer-motto, .rank-card .ins, .tier-card li i { color: var(--brass-ink); }

/* Menü ve mobil menü */
.nav::before { background: linear-gradient(180deg, rgba(10, 22, 38, 0.94) 0%, rgba(10, 22, 38, 0.72) 60%, rgba(10, 22, 38, 0) 100%); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--brass-ink); }
.dropdown { background: rgba(17, 35, 58, 0.96); }
.mobile-menu { background: var(--bg); }

/* Hero, küp ve görseller */
.hero { background: radial-gradient(60% 50% at 50% 45%, rgba(47, 109, 181, 0.2), transparent 70%), var(--bg); }
.cube-face { background: var(--img, none) center / cover no-repeat, linear-gradient(140deg, #1a3a5e, #0a1626 70%); }
.cube-face::before { background: linear-gradient(180deg, rgba(10, 22, 38, 0.1), rgba(10, 22, 38, 0.72)); }
.media, .shot .shot-ph, .rs-photo, .dossier-photo { background: linear-gradient(140deg, #16314f, #0a1626 75%); }
.div-img { background: var(--img, none) center / cover no-repeat, linear-gradient(140deg, #16314f, #0a1626 75%); }
.window-bar .rec::before { background: var(--red); }

/* Formlar */
select option { background: var(--surface); }
input:focus, select:focus, textarea:focus { background: #0f2036; }
.btn-dark { background: var(--surface); }

/* Diyalog, ışık kutusu, bildirim, iskelet */
.dossier { background: #0f1f33; }
.dossier-head { background: rgba(15, 31, 51, 0.95); }
.dossier-facts div { background: #0f1f33; }
.dossier-badge { background: linear-gradient(90deg, rgba(47, 109, 181, 0.94), rgba(31, 74, 128, 0.94)); border-top: 2px solid var(--brass); }
.lightbox { background: rgba(7, 19, 34, 0.95); }
.toast { background: rgba(23, 48, 79, 0.96); }
.skeleton { background: linear-gradient(90deg, #11233a 0%, #182e4a 50%, #11233a 100%); background-size: 200% 100%; }
.login-visual { background: linear-gradient(180deg, rgba(10, 22, 38, 0.2), rgba(10, 22, 38, 0.95)), var(--img, none) center / cover no-repeat, var(--career-bg); }

/* Etiketler */
.hc-tag { background: var(--brass); color: #0a1626; }
.rs-photo--sm.rs-photo--empty, .avatar { background: linear-gradient(140deg, #2f6db5, #16314f); }
.tab[aria-selected="true"] i { background: var(--brass); color: #0a1626; }

/* High Command: görsel düzenleme */
.hc-img-fab { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--brass); background: rgba(17, 35, 58, 0.96); color: #fff; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.hc-img-fab i { color: var(--brass-ink); font-size: 1.2rem; }
.hc-img-fab:hover { background: var(--surface-2); }
.hc-body .btn { width: auto; }
.hc-body > .btn-primary { justify-self: start; }
.hc-body .help { font-size: 0.85rem; color: var(--muted); margin-top: -10px; }
.hc-body .p-sub { margin-top: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-ink); }
.img-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.img-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.img-list li.muted { display: block; padding: 14px; }
.img-list strong { display: block; font-size: 0.95rem; }
.img-list small { display: block; font-size: 0.8rem; color: var(--muted); }
.img-thumb { width: 64px; height: 48px; border-radius: 6px; background: var(--img, none) center / cover no-repeat, linear-gradient(140deg, #16314f, #0a1626); border: 1px solid var(--line); }
.img-acts { display: flex; gap: 6px; }
.img-form { display: grid; gap: 18px; }
.img-preview { aspect-ratio: 16 / 9; border-radius: var(--r); border: 1px dashed var(--line-strong); background: var(--img, none) center / cover no-repeat, var(--bg-2); display: grid; place-items: center; }
@media (max-width: 560px) {
  .img-list li { grid-template-columns: 56px 1fr; }
  .img-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .hc-img-fab { right: 12px; bottom: 12px; }
}
.hc-body .btn-icon { width: 40px; flex-shrink: 0; }
.img-preview { overflow: hidden; background: var(--bg-2); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-prev-msg { padding: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; max-width: 40ch; }
.img-prev-msg.is-bad { color: var(--alert); }

/* Ana sayfa: küpün arkasındaki görsel. Görsel karartılır ve hafif bulanıklaştırılır;
   küpün çevresinde koyu bir hale ve gölge küpü öne çıkarır. */
.hero.has-bg { isolation: isolate; }
.hero.has-bg::before {
  content: ""; position: absolute; inset: -24px; z-index: -1; pointer-events: none;
  background: var(--img, none) center / cover no-repeat;
  filter: blur(3px) brightness(0.42) saturate(0.85);
}
.hero.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 46%, rgba(10, 22, 38, 0.82), rgba(10, 22, 38, 0.35) 70%, transparent 100%),
    linear-gradient(180deg, rgba(10, 22, 38, 0.55) 0%, rgba(10, 22, 38, 0) 30%, rgba(10, 22, 38, 0) 60%, rgba(10, 22, 38, 0.92) 100%);
}
.hero.has-bg .cube-face { border-color: rgba(226, 188, 102, 0.35); box-shadow: 0 0 0 1px rgba(10, 22, 38, 0.6), 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero.has-bg .hero-bgtext { opacity: 0.18; }

/* Galeri sekmeleri ve ana sayfadaki personel galerisi */
.gal-tabs { margin-bottom: 16px; }
.shot figcaption span { display: grid; gap: 2px; }
.shot figcaption .shot-by { color: var(--brass-ink); letter-spacing: 0.05em; text-transform: none; font-size: 0.72rem; }
.staff-gal { padding-top: clamp(56px, 7vw, 96px); }
.staff-lead { margin: -16px 0 28px; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.staff-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(140deg, #16314f, #0a1626 75%); }
.staff-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.staff-tile:hover img { transform: scale(1.04); }
.staff-tile span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 28px 16px 14px; background: linear-gradient(180deg, transparent, rgba(7, 19, 34, 0.92)); }
.staff-tile strong { font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; }
.staff-tile small { font-size: 0.78rem; color: var(--brass-ink); }
@media (max-width: 860px) { .staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .staff-grid { grid-template-columns: 1fr; } }

/* İletişim: vatandaş geri bildirim formu */
.citizen-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.citizen-intro h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cf-kinds { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
.cf-kinds legend { width: 100%; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.cf-kind { position: relative; cursor: pointer; }
.cf-kind input { position: absolute; opacity: 0; inset: 0; }
.cf-kind span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--text-2); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.cf-kind input:checked + span { background: var(--surface-2); border-color: var(--brass); color: #fff; }
.cf-kind input:focus-visible + span { outline: 3px solid var(--brass-ink); outline-offset: 2px; }
.citizen-form .result { margin-top: 14px; }
@media (max-width: 900px) { .citizen-form { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; } }

/* Erişilebilirlik: metin içindeki bağlantı renkten bağımsız ayırt edilsin; rütbe sıra numarası okunur kontrastta */
p a.accent, .muted a.accent { text-decoration: underline; text-underline-offset: 2px; }
.rank-card .num { color: rgba(255, 255, 255, 0.5); }
