/* ========================================================
   OTORİTE PORTALI GENİŞLETİLMİŞ CSS (1560px)
   TEMA: Cobalt (#1d4ed8)
   ======================================================== */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* GENİŞLETİLMİŞ 1560px KONTEYNER */
.container {
  width: min(1560px, 94vw);
  margin: 0 auto;
}

/* 1. TOP BAR */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.84rem;
  color: var(--text-light);
  padding: 0.6rem 0;
  width: 100%;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text-muted);
}
.top-bar-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

/* 2. HEADER */
header.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.45rem 0;
  width: 100%;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.brand-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-logo {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  text-decoration: none;
  line-height: 1.2;
}
.site-logo span {
  color: #0f172a;
}

.search-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-box input {
  border: 1px solid var(--border-color);
  border-right: none;
  padding: 0.75rem 1.15rem;
  border-radius: 6px 0 0 6px;
  font-size: 0.92rem;
  outline: none;
  width: 300px;
  font-family: inherit;
  background: #ffffff;
}
.search-box input:focus {
  border-color: var(--primary);
}
.search-box button {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 0.75rem 1.35rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.search-box button:hover {
  background: var(--primary-hover);
}

/* 3. NAVİGASYON (ESNEK, KESİNTİSİZ) */
nav.primary-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0;
}
.nav-menu::-webkit-scrollbar {
  display: none;
}
.nav-menu li {
  flex-shrink: 0;
}
.nav-menu li a {
  display: block;
  padding: 0.85rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

/* 4. KIRINTI (BREADCRUMB) */
.breadcrumb-bar {
  padding: 1.25rem 0 0.75rem;
  font-size: 0.86rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb-bar a {
  color: var(--text-light);
  font-weight: normal;
}
.breadcrumb-bar a:hover {
  color: var(--primary);
}
.breadcrumb-bar span.sep {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

/* 5. GENİŞLETİLMİŞ DÜZEN (İÇERİK + YAN MENÜ) */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.75rem;
  margin: 1.25rem 0 4rem;
  width: 100%;
}
.main-column {
  min-width: 0;
  width: 100%;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3.25rem 3.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  margin-bottom: 2.5rem;
  word-wrap: break-word;
}

/* BAŞLIKLAR (KESİNLİKLE NUMARASIZDIR) */
h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 0.95rem;
}
.entry-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.entry-meta strong {
  color: var(--text-main);
}

/* SADECE ANA SAYFADA ÇIKAN ÖZET KUTUSU */
.summary-widget {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  padding: 1.45rem 1.85rem;
  margin-bottom: 2.5rem;
}
.summary-widget-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.summary-widget p {
  margin: 0;
  font-size: 1.05rem;
  color: #1e293b;
  line-height: 1.75;
}

h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  border-left: 4px solid var(--primary);
  padding-left: 0.95rem;
}
h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: #334155;
  margin-bottom: 1.45rem;
}

/* ÖNE ÇIKAN BİLGİ KARTLARI */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0;
}
.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  border-top: 4px solid var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.metric-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}
.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.metric-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* STABİL VE KORUMALI KARŞILAŞTIRMA TABLOLARI */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.25rem 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  padding: 1.15rem 1.35rem;
  border-bottom: 2px solid var(--border-color);
}
td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: #fcfdfe;
}
.badge-status {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* YAN MENÜ (SADECE SAYFA LİNKLERİ) */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.sidebar-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}
.sidebar-card-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--primary);
}
.sidebar-links {
  list-style: none;
  padding: 0;
}
.sidebar-links li {
  margin-bottom: 0.95rem;
  line-height: 1.55;
}
.sidebar-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: block;
}
.sidebar-links a:hover {
  color: var(--primary);
}

/* SADE VE TEMİZ FOOTER (GEREKSİZ AÇIKLAMA METİNLERİ YOK) */
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}
.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.footer-col p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-light);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* MOBİL VE TABLET UYUMU */
@media (max-width: 1100px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .content-card {
    padding: 2.5rem 2.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8rem;
  }
  header.site-header {
    padding: 1.25rem 0;
  }
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.95rem;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    width: 100%;
    flex: 1;
    min-width: 0;
  }
  .content-card {
    padding: 1.65rem 1.35rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
  }
  .summary-widget {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.75rem;
  }
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
  }
  p {
    font-size: 0.98rem;
  }
}
