/* =====================================================================
   TOKDEF - Ön yüz stilleri (Bootstrap 5 üzerine, mobile-first)
   ===================================================================== */
:root {
  --tk-navy: #0b2545;
  --tk-navy-2: #13315c;
  --tk-red: #a4161a;
  --tk-red-2: #c1121f;
  --tk-gold: #e0a100;
  --tk-blue: #128ecb;        /* logodaki mavi */
  --tk-blue-text: #0a77af;   /* aynı mavinin beyaz zeminde okunaklı (4.9:1) yazı tonu */
  --tk-bg: #f5f7fa;
  --tk-text: #1f2933;
  --tk-muted: #5f6b7a;
  --tk-radius: 14px;
  --tk-shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --bs-primary: #0b2545;
  --bs-primary-rgb: 11, 37, 69;
  --bs-link-color: #13315c;
  --bs-link-hover-color: #a4161a;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { background: var(--tk-bg); color: var(--tk-text); padding-bottom: 68px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.skip-link { position: absolute; z-index: 2000; top: .5rem; left: .5rem; background: #fff; padding: .5rem 1rem; }

/* Butonlar */
.btn { border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { min-height: 34px; }
.btn-primary { --bs-btn-bg: var(--tk-navy); --bs-btn-border-color: var(--tk-navy); --bs-btn-hover-bg: var(--tk-navy-2); --bs-btn-hover-border-color: var(--tk-navy-2); --bs-btn-active-bg: var(--tk-navy-2); }
.btn-accent { background: var(--tk-red); border-color: var(--tk-red); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--tk-red-2); border-color: var(--tk-red-2); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--tk-navy); --bs-btn-border-color: var(--tk-navy); --bs-btn-hover-bg: var(--tk-navy); --bs-btn-hover-border-color: var(--tk-navy); }

/* Üst bar ve header */
.topbar { background: var(--tk-navy); color: #cfd8e3; font-size: .85rem; padding: .4rem 0; }
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: #fff; }
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.site-header .navbar { padding: .5rem 0; }
.navbar-brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; color: var(--tk-navy);
  padding-left: .7rem; border-left: 3px solid var(--tk-blue); }
.brand-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: 2px; }
.brand-text small { font-size: .74rem; font-weight: 700; color: var(--tk-blue-text); letter-spacing: .2px; white-space: nowrap; }
@media (min-width: 576px) {
  .navbar-brand img { width: 62px; height: 62px; }
  .brand-text strong { font-size: 1.7rem; }
  .brand-text small { font-size: .9rem; }
}
@media (min-width: 1200px) {
  .navbar-brand img { width: 68px; height: 68px; }
  .brand-text strong { font-size: 1.95rem; letter-spacing: 2.5px; }
  .brand-text small { font-size: 1.02rem; }
}
/* lg aralığında menü 8 öğe olduğu için başlık biraz küçülür, satır kırılmaz */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-text strong { font-size: 1.5rem; }
  .brand-text small { font-size: .78rem; }
  .navbar .nav-link { padding-left: .6rem; padding-right: .6rem; }
}
.navbar-toggler { border: 0; font-size: 1.5rem; color: var(--tk-navy); width: 48px; height: 48px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar .nav-link { color: var(--tk-text); font-weight: 500; padding: .75rem 1rem; border-radius: 8px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--tk-red); }
.dropdown-menu { border: 0; box-shadow: var(--tk-shadow); border-radius: 12px; padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .6rem .9rem; }
.dropdown-item:active { background: var(--tk-navy); }
@media (max-width: 991.98px) {
  .offcanvas { max-width: 86vw; }
  .navbar .nav-link { font-size: 1.05rem; border-bottom: 1px solid #eef1f5; border-radius: 0; }
  .dropdown-menu { box-shadow: none; background: var(--tk-bg); }
}
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* Mobil alt menü */
.mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: #fff;
  border-top: 1px solid #e3e8ef; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.mobile-dock a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; color: var(--tk-muted); font-size: .7rem; }
.mobile-dock a i { font-size: 1.15rem; }
.mobile-dock a.active { color: var(--tk-red); }

/* Hero / slider */
.hero { position: relative; background: var(--tk-navy); color: #fff; overflow: hidden; }
.hero .carousel-item, .hero .hero-static { height: 440px; }
@media (min-width: 992px) { .hero .carousel-item, .hero .hero-static { height: 520px; } }
.hero .carousel-indicators { margin-bottom: 2.25rem; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }
@media (max-width: 991.98px) { .hero .carousel-control-prev, .hero .carousel-control-next { display: none; } }

/* Banner: tam genişlik görsel */
.hero-banner picture, .hero-banner img { display: block; width: 100%; height: 100%; }
.hero-banner img { object-fit: cover; object-position: center; }
.hero-banner-caption { position: absolute; inset: auto 0 0 0; padding: 4rem 0 3.5rem;
  background: linear-gradient(transparent, rgba(8,26,51,.88)); }
.hero-banner-caption h2 { font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 800; max-width: 820px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-banner-caption p { max-width: 720px; font-size: 1.1rem; opacity: .92; }

/* Haber manşeti: bulanık arka plan + net fotoğraf kartı (düşük çözünürlüklü fotoğraflar için de iyi görünür) */
.hero-news { position: relative; background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, #5c1a23 130%); }
.hero-blur { position: absolute; inset: -30px; background-size: cover; background-position: center;
  filter: blur(4px) brightness(.4); transform: scale(1.05); }
@media (min-width: 992px) { .hero-blur { filter: blur(22px) brightness(.38) saturate(1.2); } }
.hero-news::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,37,69,.85) 0%, rgba(11,37,69,.35) 70%, rgba(11,37,69,.15) 100%); }
.hero-news .container { z-index: 2; }
.hero-title { font-size: clamp(1.45rem, 4.2vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: #ffd6d6; }
.hero-text { font-size: 1.1rem; opacity: .9; max-width: 640px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(1.5deg); }
.hero-logo { display: block; width: 320px; height: 320px; margin-left: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.4)); }
.hero-static { padding: 0; }

/* Sayfa başlığı */
.page-hero { background: linear-gradient(120deg, var(--tk-navy), var(--tk-navy-2)); color: #fff; padding: 2rem 0 1.75rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .85rem; }
.page-hero .breadcrumb a { color: #fff; }
.page-title { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; margin: 0; }
.page-sub { opacity: .8; }

/* Bölümler */
.section { padding: 2.5rem 0; }
@media (min-width: 992px) { .section { padding: 4rem 0; } }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-title h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--tk-navy); margin: 0; position: relative; padding-bottom: .5rem; }
.section-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--tk-red); border-radius: 4px; }

/* Kartlar */
.card-tk { background: #fff; border: 0; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); overflow: hidden; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.card-tk:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,37,69,.12); }
.card-tk .card-img-top { aspect-ratio: 16/10; object-fit: cover; background: #e9eef4; }
.card-tk .card-body { padding: 1.1rem 1.2rem; }
.card-tk .card-title { font-size: 1.05rem; font-weight: 600; color: var(--tk-navy); line-height: 1.35; }
.card-tk .meta { font-size: .8rem; color: var(--tk-muted); }
.stretched-link:focus-visible { outline: 3px solid var(--tk-gold); }
.badge-cat { background: rgba(164,22,26,.1); color: var(--tk-red); font-weight: 600; }

/* Dernek kartı */
.dernek-card .avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--tk-navy); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
.dernek-card .avatar img { width: 100%; height: 100%; object-fit: contain; }
.dernek-card .avatar:has(img) { background: #fff; border: 1px solid #e3e8ef; }
.dernek-card .actions .btn { flex: 1; }
.dernek-iletisim { font-size: .9rem; border-top: 1px solid #eef1f5; padding-top: .75rem; display: grid; gap: .35rem; }
.dernek-iletisim > div { display: flex; gap: .5rem; min-width: 0; }
.dernek-iletisim dt { font-weight: 600; color: var(--tk-muted); width: 104px; flex-shrink: 0; }
.dernek-iletisim dt i { color: var(--tk-red); margin-right: .3rem; }
.dernek-iletisim dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dernek-iletisim dd.dd-adres { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .85rem; }

/* İstatistik */
.stats { background: var(--tk-navy); color: #fff; }
.stat { text-align: center; padding: 1.25rem .5rem; }
.stat .num { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; color: var(--tk-gold); line-height: 1; }
.stat .lbl { font-size: .85rem; opacity: .8; margin-top: .35rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--tk-red), #6a040f); color: #fff; border-radius: var(--tk-radius); padding: 2rem; }

/* Etkinlik */
.event-date { width: 64px; min-width: 64px; text-align: center; border-radius: 12px; background: var(--tk-navy); color: #fff; padding: .45rem 0; }
.event-date .d { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date .m { font-size: .75rem; text-transform: uppercase; opacity: .85; }
.event-date.tatil { background: var(--tk-red); }
.calendar { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.calendar th { text-align: center; font-size: .8rem; color: var(--tk-muted); font-weight: 600; }
.calendar td { background: #fff; border-radius: 10px; vertical-align: top; height: 96px; padding: 6px; font-size: .8rem; }
.calendar td.bos { background: transparent; }
.calendar td.bugun { outline: 2px solid var(--tk-red); }
.calendar .gun { font-weight: 700; color: var(--tk-navy); }
.calendar .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(11,37,69,.08); color: var(--tk-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar .ev.tatil { background: rgba(164,22,26,.12); color: var(--tk-red); }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; } }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #e9eef4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.lightbox .modal-content { background: #000; border: 0; }
.lightbox img { max-height: 82vh; object-fit: contain; width: 100%; }

/* İçerik */
.content-body { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 1.25rem; font-size: 1.05rem; line-height: 1.75; }
@media (min-width: 768px) { .content-body { padding: 2rem 2.5rem; } }
.content-body img { border-radius: 10px; margin: .5rem 0; }
.content-body iframe { max-width: 100%; }
.content-body h2, .content-body h3, .content-body h4, .content-body h5 { color: var(--tk-navy); margin-top: 1.5rem; }

/* Formlar */
.form-card { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 1.25rem; }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-control, .form-select { min-height: 48px; border-radius: 10px; font-size: 16px; } /* 16px: iOS yakınlaştırmasını önler */
textarea.form-control { min-height: 110px; }
.form-check-input { width: 1.3em; height: 1.3em; }
.form-section { font-size: 1rem; font-weight: 700; color: var(--tk-navy); border-bottom: 2px solid #eef1f5; padding-bottom: .5rem; margin: 1.5rem 0 1rem; }
.form-section:first-child { margin-top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rehber */
.person-card .photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #e9eef4; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--tk-navy); margin: 0 auto; }

/* Arama kutusu */
.search-bar { position: relative; }
.search-bar i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--tk-muted); }
.search-bar input { padding-left: 2.75rem; }

.empty-state { color: var(--tk-muted); }

/* Footer */
.site-footer { background: #081a33; color: #cfd8e3; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #cfd8e3; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .5rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.topbar .social a { width: auto; height: auto; background: none; }
.site-footer hr { border-color: rgba(255,255,255,.12); }

/* Kurullar */
.member { text-align: center; }
.member .photo { width: 120px; height: 120px; box-shadow: 0 6px 18px rgba(11,37,69,.15); border-radius: 50%; margin: 0 auto .75rem; background: #e9eef4; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--tk-navy); font-size: 1.8rem; font-weight: 700; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member.lead .photo { width: 168px; height: 168px; border: 4px solid var(--tk-gold); }
.member.lead .fw-bold { font-size: 1.15rem; }
a.member, .member:has(.stretched-link) { cursor: pointer; }
.member:has(.stretched-link):hover .fw-bold { color: var(--tk-red); }

/* Kurul üyesi profil sayfası */
.profil-foto { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 5px solid #fff;
  box-shadow: 0 12px 34px rgba(11,37,69,.18); background: #e9eef4; display: flex; align-items: center; justify-content: center; }
.profil-foto img { width: 100%; height: 100%; object-fit: cover; }
.profil-foto span { font-size: 3.4rem; font-weight: 800; color: var(--tk-navy); }
.profil-bilgi { border-top: 1px solid #eef1f5; padding-top: 1rem; display: grid; gap: .5rem; font-size: .95rem; }
.profil-bilgi > div { display: flex; gap: .5rem; }
.profil-bilgi dt { width: 104px; flex-shrink: 0; color: var(--tk-muted); font-weight: 600; }
.profil-bilgi dt i { color: var(--tk-red); margin-right: .3rem; }
.profil-bilgi dd { margin: 0; min-width: 0; word-break: break-word; }
.profil-sosyal a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--tk-bg); color: var(--tk-navy); }
.profil-sosyal a:hover { background: var(--tk-navy); color: #fff; }
@media (min-width: 992px) { .profil-kart { position: sticky; top: 100px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
