:root {
  --p: #1a7f37;
  --p-dark: #0d5c26;
  --p-light: #e8f5ec;
  --gold: #f2b705;
  --dark: #12261b;
  --gray: #6b7a86;
}

* { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2c3e50;
  background: #f4f6f9;
  overflow-x: hidden;
}
a { color: var(--p); text-decoration: none; }
a:hover { color: var(--p-dark); }
.text-p { color: var(--p) !important; }
.bg-p { background: var(--p) !important; }
.bg-p-dark { background: var(--p-dark) !important; }
.bg-p-light { background: var(--p-light) !important; }

/* Topbar */
.topbar { background: #212529; color: #adb5bd; font-size: .82rem; padding: 8px 0; }
.topbar a { color: #adb5bd; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .3; margin: 0 10px; }
.social-links a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); margin-left: 4px; font-size: .8rem; }
.social-links a:hover { background: var(--p); color: #fff; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1020;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-toggler-border-color: rgba(0,0,0,.12);
}
.site-header .navbar-toggler { display: none; padding: .35rem .7rem; border-radius: 10px; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--p-light); }
@media (max-width: 991.98px) { .site-header .navbar-toggler { display: inline-block; } }
.site-header .brand { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.site-header .brand img { max-height: 60px; }
.site-header .brand .brand-title { font-weight: 800; font-size: 1.05rem; line-height: 1.1; color: var(--dark); text-transform: uppercase; }
.site-header .brand .brand-sub { font-size: .74rem; color: var(--gray); font-weight: 500; }
.brand-badge { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }

.main-nav { border-top: 3px solid var(--p); }
.main-nav .navbar-nav .nav-link {
  color: #2c3e50; font-weight: 600; font-size: .9rem; padding: 14px 14px;
  text-transform: uppercase; letter-spacing: .02em; border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.main-nav .navbar-nav .nav-link:hover, .main-nav .navbar-nav .nav-link.active { color: var(--p); border-bottom-color: var(--p); }
.main-nav .nav-link:focus,
.main-nav .nav-link:focus-visible,
.main-nav .nav-link.dropdown-toggle:focus,
.main-nav .dropdown-menu:focus,
.main-nav .nav-item.dropdown:focus-within { outline: none; }

/* Açılır menü görünümü */
.main-nav .dropdown-menu {
  border: none; box-shadow: 0 14px 40px rgba(0,0,0,.16); border-radius: 12px; padding: 10px;
  min-width: 240px; border-top: 3px solid var(--p); margin-top: 0;
}
.main-nav .dropdown-item { border-radius: 8px; font-size: .9rem; padding: 9px 14px; transition: background .15s, color .15s, padding-left .15s; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--p-light); color: var(--p-dark); padding-left: 18px; }
.main-nav .dropdown-divider { margin: 6px 4px; }
.main-nav .nav-link.dropdown-toggle::after { transition: transform .2s; }

/* Masaüstünde fareyle üzerine gelince aç (JS .show ile; gecikmeli kapanış) */
@media (min-width: 992px) {
  .main-nav .nav-item.dropdown > .dropdown-menu.show { display: block; animation: navDrop .18s ease; }
  .main-nav .nav-item.dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobil menü: sağdan açılan tam boy çekmece */
@media (max-width: 991.98px) {
  .main-nav .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 75%;
    max-width: 380px;
    height: 100vh;
    max-height: 100vh;
    z-index: 1045;
    background: #fff;
    box-shadow: -16px 0 48px rgba(0,0,0,.25);
    overflow-y: auto;
    padding: 0 0 16px;
    border-radius: 0;
    transition: none;
  }
  .main-nav .navbar-collapse.show { animation: navSlideIn .3s ease; }
  .main-nav .navbar-collapse.collapsing { height: 100vh !important; overflow: hidden; }
  .main-nav .navbar-nav { width: 100%; }
  .main-nav .navbar-nav .nav-item + .nav-item { border-top: 1px solid #edf1ee; }
  .main-nav .navbar-nav .nav-link { padding: 14px 20px; }
  .main-nav .dropdown-menu { box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px; margin: 0; background: #f7faf8; }
  .main-nav .dropdown-menu .dropdown-item + .dropdown-item { border-top: 1px solid #eef1ef; }
  .main-nav .dropdown-item { padding: 11px 28px; }
}
@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Çekmece başlığı ve kapatma butonu */
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #edf1ee; position: sticky; top: 0; background: #fff; z-index: 2; }
.nav-drawer-brand { display: flex; align-items: center; }
.nav-drawer-brand img { max-height: 44px; }
.nav-close { border: none; background: var(--p-light); color: var(--p-dark); width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.nav-close:hover { background: var(--p); color: #fff; }

/* Arka plan karartma (soldaki boşluk) */
.nav-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(10,20,14,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* Hero slider */
.hero-slide { height: 440px; background-size: cover; background-position: center; position: relative; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,38,27,.82), rgba(18,38,27,.25)); }
.hero-caption { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-caption h2 { font-weight: 800; font-size: 2.2rem; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.carousel-indicators [data-bs-target] { width: 30px; height: 4px; }

/* Manşet haber */
.manset-wrap { padding: 18px 0 6px; }
.manset { border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.manset .carousel-inner { border-radius: 14px; overflow: hidden; }
.manset-slide { position: relative; display: block; height: 430px; background-size: cover; background-position: center; }
.manset-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,12,.10) 0%, rgba(6,20,12,.45) 55%, rgba(6,20,12,.92) 100%); }
.manset-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 30px; color: #fff; }
.manset-caption h2 { font-weight: 800; font-size: 1.7rem; line-height: 1.25; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.manset-caption p { color: rgba(255,255,255,.92); margin-bottom: 10px; max-width: 720px; }
.manset-meta { font-size: .82rem; color: rgba(255,255,255,.85); }
.manset .carousel-control-prev, .manset .carousel-control-next { width: 7%; opacity: .85; }
.manset .carousel-indicators { z-index: 3; }

.manset-side { position: relative; height: 430px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); background: linear-gradient(135deg, var(--p-dark), var(--p)); }
.manset-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manset-side-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-style: italic; font-weight: 600; font-size: .92rem; line-height: 1.35; background: rgba(63, 81, 110, .85); text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.manset-side-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; }
.manset-side-ph i { font-size: 2.4rem; opacity: .85; }
.manset-side-ph span { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.hizli-kutular { margin-top: 16px; }
.hizli-kutu { display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 100px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: #fff; font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.hizli-kutu:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.hizli-kutu i { font-size: 1.35rem; flex: 0 0 auto; }

/* Döküman kutuları */
.dokuman-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.dokuman-filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 30px; background: #fff; color: #2c3e50; font-weight: 600; font-size: .88rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid #eef1ef; transition: .2s; }
.dokuman-filter:hover { color: var(--p); border-color: var(--p); }
.dokuman-filter.active { background: var(--kat, var(--p)); color: #fff; border-color: var(--kat, var(--p)); }
.dokuman-filter .c { background: rgba(0,0,0,.08); border-radius: 20px; padding: 1px 9px; font-size: .74rem; font-weight: 700; }
.dokuman-filter.active .c { background: rgba(255,255,255,.25); }

.dokuman-kutu { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 88px; padding: 18px 20px; border-radius: 10px; background: var(--kat, var(--p)); color: #fff; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s, filter .2s; }
.dokuman-kutu:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.16); filter: brightness(.88); }
.dokuman-kutu i { font-size: 1.2rem; flex: 0 0 auto; }

@media (max-width: 991.98px) {
  .manset-slide { height: 320px; }
  .manset-caption { padding: 20px 22px; }
  .manset-caption h2 { font-size: 1.3rem; }
  .manset-side { height: 230px; }
}
@media (max-width: 575.98px) {
  .manset-slide { height: 250px; }
  .manset-caption { padding: 16px 18px; }
  .manset-caption h2 { font-size: 1.05rem; }
  .manset-side { height: 180px; }
  .hizli-kutu { min-height: 86px; font-size: .74rem; flex-direction: column; gap: 6px; }
}

/* Section */
.section { padding: 46px 0; }
.section-title { font-weight: 800; font-size: 1.4rem; color: var(--dark); position: relative; padding-left: 16px; margin-bottom: 24px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--p); }
.section-title[id] { scroll-margin-top: 120px; }
.section-title.text-center { padding-left: 0; }
.section-title.text-center::before { display: none; }

/* Cards */
.news-card { border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; height: 100%; background: #fff; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.news-card .news-img { height: 180px; object-fit: cover; width: 100%; }
.news-card .news-body { padding: 16px; }
.news-card h5 { font-size: 1rem; font-weight: 700; }
.news-meta { font-size: .78rem; color: var(--gray); }

@media (max-width: 575.98px) {
  .news-card .news-img { height: 120px; }
  .news-card .news-body { padding: 12px; }
  .news-card h5 { font-size: .9rem; }
  .news-card .news-meta { font-size: .72rem; }
}

.badge-cat { display: inline-block; background: var(--p); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; }
.badge-duyuru { background: var(--gold); color: #12261b; }

/* Tables */
.standings-table thead th { background: var(--p); color: #fff; font-size: .78rem; text-transform: uppercase; border: none; }
.standings-table tbody tr:nth-child(-n+2) td:first-child { border-left: 3px solid var(--p); }
.standings-table td, .standings-table th { vertical-align: middle; }
.takim-logo { border-radius: 50%; object-fit: contain; }
.takim-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--p-light); color: var(--p-dark); font-weight: 700; font-size: .72rem; }

.fixture-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #e3e8e5; }
.fixture-row .team { flex: 1; display: flex; align-items: center; gap: 8px; }
.fixture-row .team.home { justify-content: flex-end; text-align: right; }
.fixture-score { min-width: 60px; text-align: center; font-weight: 700; background: #f0f4f2; border-radius: 6px; padding: 4px 8px; }

/* Footer */
.site-footer { background: #212529; color: #adb5bd; padding: 50px 0 0; margin-top: 40px; }
.footer-brand img { max-height: 64px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-brand-text { color: #fff; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.site-footer a { color: #adb5bd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { padding: 5px 0; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 18px 0; font-size: .82rem; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.08); margin-right: 6px; }
.footer-social a:hover { background: var(--p); color: #fff; }

/* Page header */
.page-hero { background: linear-gradient(135deg, var(--p-dark), var(--p)); color: #fff; padding: 40px 0; }
.page-hero h1 { font-weight: 800; margin: 0; }
.breadcrumb-light a { color: rgba(255,255,255,.85); }
.breadcrumb-light { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); color: #fff; margin: 0; }

.stat-box { background: #fff; border-radius: 12px; padding: 22px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--p); }
.stat-box .lbl { color: var(--gray); font-size: .85rem; }
.stat-box-sm { padding: 16px 10px; }
.stat-box-sm .num { font-size: 1.5rem; }
.stat-box-sm .lbl { font-size: .74rem; line-height: 1.2; }

/* Puan durumu tablo kartları (grup bazlı) */
.puan-tablo-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 1px solid #eef1ef; }
.puan-tablo-head { background: var(--ptc, var(--p)); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em; padding: 12px 18px; text-transform: uppercase; }
.puan-tablo thead th { background: #f5f7f6; color: #5b6660; font-size: .72rem; text-transform: uppercase; border: none; font-weight: 700; }
.puan-tablo td { vertical-align: middle; border-color: #f0f3f1; }
.puan-sira { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; color: #fff; font-size: .72rem; font-weight: 700; }

/* Cezalılar PDF görüntüleyici */
.ceza-viewer { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 1px solid #eef1ef; }
.ceza-viewer iframe { display: block; width: 100%; height: 82vh; border: 0; }
@media (max-width: 575.98px) { .ceza-viewer iframe { height: 70vh; } }

.content-article { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.content-article img { max-width: 100%; height: auto; border-radius: 8px; }
.content-article h2, .content-article h3 { color: var(--dark); font-weight: 700; }

.sidebar-box { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; margin-bottom: 22px; }
.sidebar-box .box-head { background: var(--p); color: #fff; padding: 12px 16px; font-weight: 700; font-size: .95rem; }
.sidebar-box .box-body { padding: 14px 16px; }

.quick-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 3px solid transparent; color: #2c3e50; border-bottom: 1px solid #f0f3f1; }
.quick-link:hover { background: var(--p-light); border-left-color: var(--p); color: var(--p-dark); }
.quick-link i { font-size: 1.2rem; color: var(--p); }

/* Uygulanacak Esaslar kartı */
.esaslar-card { border-radius: 12px; }
.esaslar-card .card-body { padding: 16px 16px 18px; }
.esaslar-card-img { max-width: 100%; max-height: 300px; width: auto; height: auto; }
.esaslar-card-title { margin-top: 14px; color: var(--p); font-weight: 800; font-size: 1rem; line-height: 1.35; }
.esaslar-card-title span + span { margin-top: 2px; }

/* Kararlar sayfası */
.karar-stat { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border-left: 4px solid var(--p); }
.karar-stat .n { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.karar-stat .l { color: var(--gray); font-size: .85rem; margin-top: 4px; }
.karar-stat.is-disiplin { border-left-color: #c0392b; }
.karar-stat.is-tertip { border-left-color: var(--gold); }

.karar-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.karar-filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 30px; background: #fff; color: #2c3e50; font-weight: 600; font-size: .9rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid #eef1ef; transition: .2s; }
.karar-filter:hover { color: var(--p); border-color: var(--p); }
.karar-filter.active { background: var(--p); color: #fff; border-color: var(--p); }
.karar-filter .c { background: rgba(0,0,0,.08); border-radius: 20px; padding: 1px 9px; font-size: .75rem; font-weight: 700; }
.karar-filter.active .c { background: rgba(255,255,255,.25); }

.karar-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #eef1ef; transition: transform .2s, box-shadow .2s; }
.karar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.karar-card .karar-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f2f4f3; }
.karar-card .karar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.karar-card:hover .karar-media img { transform: scale(1.04); }
.karar-ribbon { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; background: #c0392b; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.karar-card.is-tertip .karar-ribbon { background: var(--gold); color: #12261b; }
.karar-card .karar-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.karar-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--gray); margin-bottom: 8px; }
.karar-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.karar-title a { color: var(--dark); }
.karar-title a:hover { color: var(--p); }
.karar-ozet { font-size: .85rem; color: #6b7770; margin-bottom: 14px; }
.karar-actions { margin-top: auto; display: flex; gap: 8px; }

.karar-empty { text-align: center; color: var(--gray); padding: 60px 20px; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.karar-empty i { font-size: 2.4rem; color: #cbd5cf; display: block; margin-bottom: 10px; }

/* Team detail */
.team-hero { background: linear-gradient(135deg, var(--p-dark), var(--p)); color: #fff; padding: 30px; border-radius: 12px; display: flex; align-items: center; gap: 20px; }
.team-hero img { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }

@media (max-width: 767.98px) {
  .hero-slide { height: 320px; }
  .hero-caption h2 { font-size: 1.5rem; }
  .site-header .brand img { max-height: 44px; }
}

/* Mobil alt sabit menü */
.mobile-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  display: flex; align-items: stretch; justify-content: space-around;
  background: #fff; border-top: 1px solid #e6ebe8;
  box-shadow: 0 -2px 12px rgba(0,0,0,.09);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 4px 2px; border-radius: 10px;
  color: #6b7280; font-size: .68rem; font-weight: 600; line-height: 1.1; text-decoration: none;
}
.mobile-bottom-nav a i { font-size: 1.25rem; line-height: 1; }
.mobile-bottom-nav a.active { color: var(--p); }
.mobile-bottom-nav a:active { background: var(--p-light); }
@media (max-width: 767.98px) { body { padding-bottom: 66px; } }
