/* Herkese açık sitenin görsel cilası — yalnızca CSS, hiçbir markup/JS'e bağımlı değil (kaldırılırsa site
   eski görünümüne döner). _Layout.cshtml'de site.css/effects.css'ten SONRA yüklenir. Renkler mevcut
   --odtu-red belirteçlerinden gelir; dark mod uyumludur. */

:root {
  --polish-radius: 18px;
  --polish-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --polish-shadow-md: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 34px rgba(16, 24, 40, .12);
  --polish-shadow-red: 0 10px 28px rgba(164, 30, 53, .28);
}

html[data-theme="dark"] {
  --polish-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
  --polish-shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .5);
}

/* --- Gezinme çubuğu: hafif cam efekti ve alt gölge --- */
.navbar-odtu {
  box-shadow: 0 6px 24px rgba(125, 22, 39, .22);
}
.navbar-odtu .nav-link {
  position: relative;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.navbar-odtu .nav-link:hover {
  background-color: rgba(255, 255, 255, .14);
}

/* --- Bölüm başlıkları: kısa kırmızı vurgu çizgisi --- */
main h1.h3,
main h2.h4 {
  position: relative;
  padding-bottom: .65rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
main h1.h3::after,
main h2.h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--odtu-red), var(--odtu-red-light));
}
main .text-center > h2.h4::after,
main h2.h4.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Kartlar: yumuşak gölge, hover'da yükselme --- */
.feature-card {
  border: 1px solid var(--border-color);
  border-radius: var(--polish-radius);
  box-shadow: var(--polish-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--polish-shadow-md);
  border-color: rgba(164, 30, 53, .35);
}

/* Branş listesi: logo kartlarında hover'da hafif yakınlaştırma (görsel yine kartı tam doldurur) */
a.d-block.h-100 > .feature-card.overflow-hidden > img {
  transition: transform .4s ease;
}
a.d-block.h-100 > .feature-card.overflow-hidden:hover > img {
  transform: scale(1.04);
}

/* --- Butonlar: yuvarlak hatlı, hover'da hafif gölge --- */
.btn-odtu,
.hero-odtu .btn,
.btn-light,
.btn-outline-light {
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-odtu:hover,
.hero-odtu .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--polish-shadow-red);
}

/* --- Formlar: belirgin odak halkası --- */
.form-control,
.form-select {
  border-radius: 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--odtu-red-light);
  box-shadow: 0 0 0 .25rem rgba(164, 30, 53, .15);
}

/* --- Alt bilgi --- */
.site-footer {
  border-top: 3px solid var(--odtu-red);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-card:hover,
  .btn-odtu:hover,
  .hero-odtu .btn:hover,
  a.d-block.h-100 > .feature-card.overflow-hidden > img,
  a.d-block.h-100 > .feature-card.overflow-hidden:hover > img {
    transition: none;
    transform: none;
  }
}

/* ===== v2: panel ile aynı görsel dil (sıcak zemin, lacivert üst çubuk, yumuşak kartlar) ===== */
html:not([data-theme="dark"]) body {
  background-color: #f6f3f1;
  background-image:
    radial-gradient(1100px 520px at 100% -10%, rgba(164, 30, 53, .07), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(30, 64, 175, .04), transparent 60%);
  background-attachment: fixed;
}

/* Üst çubuk: panel kenar çubuğuyla aynı lacivert, altında ince bordo çizgi */
html:not([data-theme="dark"]) .navbar-odtu {
  background: linear-gradient(to bottom, #6b1223, #2b0b13);
  border-bottom: 2px solid #a41e35;
  box-shadow: 0 8px 28px -12px rgba(43, 11, 19, .55);
}
.navbar-odtu .nav-link { font-weight: 500; border-radius: 12px; padding: .5rem .85rem !important; }
.navbar-odtu .nav-link:hover { background-color: rgba(255, 255, 255, .09); }
.navbar-odtu .nav-link.active { background: linear-gradient(135deg, #c94a5c, #8f1a2e); color: #fff; }

/* Kartlar: panel kartlarıyla aynı yuvarlaklık ve gölge */
.feature-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(28, 25, 23, .05);
  box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 32px -14px rgba(28, 25, 23, .16);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(28, 25, 23, .25); }

/* Kart ikonları: sıra sıra renkli kutucuk (panel istatistik ikonlarıyla uyumlu) */
.feature-card .bi { transition: transform .2s ease; }

/* Butonlar */
.btn { border-radius: 14px; font-weight: 600; }
.btn-lg { border-radius: 16px; }
.btn-odtu, .btn-primary { background: linear-gradient(135deg, #c94a5c, #8f1a2e); border: 0; box-shadow: 0 10px 22px -10px rgba(164, 30, 53, .7); }

/* Form alanları */
.form-control, .form-select { border-radius: 14px; padding-top: .65rem; padding-bottom: .65rem; }
.form-control:focus, .form-select:focus { border-color: #a41e35; box-shadow: 0 0 0 4px rgba(164, 30, 53, .12); }

/* Tablolar ve kart bileşenleri */
.card { border-radius: 1.25rem; border-color: rgba(28, 25, 23, .05); box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 32px -14px rgba(28, 25, 23, .16); }
.table-responsive, .table { border-radius: 1rem; }
.table thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #78716c; }
.badge { font-weight: 600; letter-spacing: .01em; }
.alert { border-radius: 1rem; border: 0; }

/* Alt bilgi: üst çubukla aynı lacivert */
html:not([data-theme="dark"]) .site-footer {
  background: linear-gradient(to bottom, #6b1223, #2b0b13);
  color: rgba(255, 255, 255, .7);
  border-top: 2px solid #a41e35;
}
html:not([data-theme="dark"]) .site-footer a { color: rgba(255, 255, 255, .85); }

/* ===== Hakkımızda sayfası: canlı rakamlar + branş listesi (veritabanından), açıklamalar widget'lardan ===== */
.about-widgets .feature-card.m-flip { min-height: 165px; }
.about-widgets .m-front > i.bi { font-size: 1.9rem !important; margin-bottom: .6rem; }
.about-widgets .m-front h3 { font-size: 1.02rem; }
.about-live .about-stat { position: relative; }
.about-live .about-stat-icon { font-size: 1.4rem; color: #a41e35; opacity: .85; margin-bottom: .35rem; display: block; }
.about-live .stat-number-lg { color: #a41e35; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.about-live .about-stat-label { margin-top: .3rem; font-size: .86rem; font-weight: 600; color: #57534e; }
.about-branch { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 1rem; background: #fff; text-decoration: none; color: #1c1917;
  border: 1px solid rgba(28, 25, 23, .06); box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 24px -16px rgba(28, 25, 23, .2); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.about-branch:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(28, 25, 23, .3); color: #a41e35; }
.about-branch-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; }
.about-branch-text { display: flex; flex-direction: column; min-width: 0; }
.about-branch-name { font-weight: 700; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.about-branch-count { font-size: .76rem; color: #78716c; }

/* ===== Başarılar: Hakkımızda ===== */
.about-recent-title { margin-top: 1.8rem; margin-bottom: .8rem; font-weight: 700; color: #7d1627; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.about-recent { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 1rem; background: #fff; height: 100%;
  border: 1px solid rgba(28, 25, 23, .06); box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 24px -16px rgba(28, 25, 23, .2); }
.about-recent-icon { font-size: 1.5rem; line-height: 1; margin-top: .1rem; }
.about-recent-name { font-weight: 700; color: #1c1917; line-height: 1.25; }
.about-recent-meta { font-size: .8rem; color: #78716c; margin-top: .15rem; }
.about-branch-medals { display: flex; flex-wrap: wrap; gap: .1rem .55rem; font-size: .76rem; font-weight: 700; color: #44403c; margin-top: .1rem; }
.about-branch-medals i { margin-right: .15rem; }
.about-branch-national { color: #a41e35; }
html[data-theme="dark"] .about-recent { background: #1f2430; border-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .about-recent-name { color: #f5f0ee; }
