/* =========================================
   GLOBAL NAVBAR (DEĞİŞMEDİ)
========================================= */

.navbar {

  background:
    rgba(15, 23, 42, 0.78) !important;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(255,255,255,0.06);

  padding:
    0.9rem 2rem !important;

  box-shadow:
    0 6px 28px rgba(0,0,0,0.16);
}


/* =========================================
   NAVBAR CENTER LAYOUT
========================================= */

.navbar .container-fluid {

  display: flex !important;

  justify-content: center !important;

  align-items: center !important;

  position: relative;
}


/* BRAND SOLDA SABİT */
.navbar-brand {

  position: absolute;

  left: 1.8rem;

  font-weight: 800 !important;

  color: #f8fafc !important;

  font-size: 1.35rem !important;
}


/* NAV ORTADA */
.navbar-nav {

  display: flex;

  justify-content: center;

  gap: 1.2rem;

  margin: 0 auto;
}


/* =========================================
   🧠 ANA PROBLEM DÜZELTME (LAYOUT FIX)
========================================= */

/* ANA İÇERİĞİ ORTALA */
.quarto-container,
.content,
main {

  max-width: 1200px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 20px;
  padding-right: 20px;
}


/* =========================================
   📌 "ON THIS PAGE" (TOC) DÜZENİ
========================================= */

#TOC {

  position: fixed;

  right: 20px;

  top: 120px;

  width: 240px;

  background: rgba(255,255,255,0.04);

  backdrop-filter: blur(12px);

  border-radius: 16px;

  padding: 16px;

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}


/* TOC BAŞLIK */
#TOC h2 {

  font-size: 0.9rem;

  opacity: 0.8;
}


/* =========================================
   ANA İÇERİK + TOC BOŞLUK DENGESİ
========================================= */

body {

  padding-right: 280px; /* sağ TOC için boşluk */
}


/* =========================================
   RESPONSIVE (MOBİLDE TOC KAPAT)
========================================= */

@media (max-width: 992px) {

  #TOC {
    display: none;
  }

  body {
    padding-right: 0;
  }

  .quarto-container {
    max-width: 100% !important;
  }
}


/* =========================================
   NAV LINKS (DEĞİŞMEDİ)
========================================= */

.navbar-nav .nav-link {

  border-radius: 999px;

  padding: 0.6rem 1.2rem !important;

  transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover {

  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}


/* =========================================
   PAGE ANIMATION
========================================= */

body {

  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}