/* ============================================
  Topbar Styles
============================================ */

/* #topbar-placeholder{
 padding-bottom: 100px;
} */

.topbar {
  position: fixed; 
  inset: 0;
  height: max-content;
  background: var(--db-primary);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--db-light);
  display: flex; 
  align-items: center;
  padding: 15px 25px; 
  gap: 16px;
  z-index: 100;
}

.topbar-site-info{
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.topbar-logo {
  font-size: clamp(1.125rem, 0.875rem + 0.5vw, 1.25rem);
  font-weight: 600;
  color: var(--db-light);
  display: flex; 
  align-items: center; 
  gap: 8px;
  text-decoration: none;
}

.topbar-image-container{
  width: 120px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex; 
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.topbar-image-container img{
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.topbar-logo .badge {
  font-size: clamp(0.5rem, 0.25rem + 0.5vw, 0.625rem);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--db-light);
  color: var(--db-primary);
  padding: 2px 8px;
  border-radius: 20px;
}

.topbar-right {
  margin-left: auto;
  display: flex; 
  align-items: center; 
  gap: 12px;
}

.topbar-right a {
  display: none; 
  width: max-content;
  color: var(--db-light);
  font-size: clamp(0.875rem, 0.75rem + 0.25vw, 0.9375rem);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 8px;
}

.topbar-right a:hover { 
  background-color: var(--db-secondary);
}

.topbar-right a.active { 
  font-weight: 600; 
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--db-light);
}

.version-tag {
  font-size: clamp(0.5rem, 0.25rem + 0.5vw, 0.625rem);
  background: var(--db-secondary);
  border-radius: 20px;
  padding: 3px 12px;
  color: var(--db-light);
  font-weight: 600;
  margin-top: 5px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* margin-left: 12px; */
  width: 35px; 
  height: 35px;
  background: var(--db-secondary);
  border: 1px solid var(--db-light);
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger:hover { 
  background: var(--db-secondary); 
}

.hamburger span {
  display: block;
  width: 100%; 
  height: 2px;
  background: var(--db-light);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  inset: 0;
  width: 90%;
  z-index: 201;
  background: var(--db-light);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0 20px;
  flex-shrink: 0;
}

.drawer-menu-text {
  font-size: 18px;
  color: var(--db-high);
}

.drawer-close {
  width: 35px; 
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--db-dark);
  background: none;
  font-size: 25px;
  color: var(--db-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drawer-sidebar-placeholder .sidebar {
  position: static;
  display: block;
  width: 100%;
  border: none;
  padding: 16px 0 40px;
  flex: 1;
}

.nav-text{
  color: var(--db-primary);
}

@media (min-width: 900px){

  .topbar-image-container{
    width: 160px;
  }

  .topbar-site-info{
    flex-direction: row;
    align-items: center;
  }

  .hamburger { 
    display: none; 
  }

  .topbar-right a {
    display: flex;
  }

  .version-tag {
    margin: 0;
  }
}


/* ============================================
  Siderbar Styles
============================================ */

.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  bottom: 0; 
  left: 0;
  overflow-y: auto;
  background: var(--db-light);
  padding: 28px 0 60px;
}

.drawer .sidebar{
  position: static;
  display: block;
  width: 100%;
  border: none;
  padding: 16px 0 40px;
}

.sidebar::-webkit-scrollbar { 
  width: 4px; 
}

.sidebar::-webkit-scrollbar-thumb { 
  background: var(--db-primary); 
  border-radius: 4px; 
}

.nav-section { 
  margin-bottom: 8px; 
}


.nav-sub-section{
   padding-left: 20px;
}

.nav-sub-section a{
    font-size: 14px;
}

.nav-section-label {
  font-size: clamp(0.75rem, 0.625rem + 0.25vw, 0.8125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color:  var(--db-primary);
  padding: 14px 24px 6px;
  margin-bottom: 0;
}

.nav-link {
  display: flex; 
  align-items: center; 
  gap: 9px;
  padding: 8px 24px;
  font-size: clamp(0.875rem, 0.75rem + 0.25vw, 0.9375rem);
  color: var(--db-dark);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.nav-link:hover { 
  color: var(--db-dark); 
  background: var(--db-low);
}

.nav-link.active {
  color: var(--db-dark);
  font-weight: 600;
  border-left-color: var(--db-high);
  background: var(--db-low);
}

.nav-link .icon { 
  font-size: 13px; 
  opacity: 0.7; 
}

/* ============================================
  Main Styles
============================================ */

.main {
  margin-left: 300px;
  margin-top: 100px;
  flex: 1;
  padding: 20px 60px 100px;
}

@media (max-width: 900px) {
  .sidebar { 
    display: none; 
  }

  .main { 
    margin-left: 0; 
    padding: 20px 20px 80px; 
  }
}


/* ============================================
  Page Footer Styles
============================================ */

.doc-footer {
  margin-top: 80px;
  padding: 32px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--db-primary), var(--db-light) 50%);
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: space-between;
  font-size: 13px;
  color: color-mix(in srgb, var(--db-dark), var(--db-light) 50%); 
}

.doc-footer a { 
  color: color-mix(in srgb, var(--db-dark), var(--db-light) 50%); 
  text-decoration: none; 
}

.doc-footer a:hover { 
  color: var(--db-dark); 
}

.doc-footer span{
  order: 2;
}

.doc-footer-links { 
  order: 1;
  display: flex; 
  gap: 20px; 
  margin-bottom: 20px;
}

@media (min-width:600px){
  .doc-footer {
    flex-direction: row;
  }

  .doc-footer span{
    order: 1;
  }

  .doc-footer-links { 
    order: 2;
    margin-bottom: 0px;
  }

}

/* ============================================
  Section Navigation Styles
============================================ */

.section-nav {
  display: flex; 
  justify-content: space-between; 
  gap: 16px;
  margin-top: 56px; 
  /* padding-top: 32px; */
  /* border-top: 1px solid color-mix(in srgb, var(--db-dark), var(--db-light) 80%); */
}

.section-nav a {
  display: flex; 
  align-items: center; 
  gap: 10px;
  padding: 14px 20px;
  background: var(--db-light);
  border: 1px solid var(--db-low);
  border-radius: 10px;
  text-decoration: none;
  color: var(--db-dark);
  font-size: 13.5px;
  font-weight: 500;
  max-width: 48%;
}
.section-nav a:hover {
  border-color: var(--db-primary); 
}

.section-nav a.prev { 
  flex-direction: row; 
}

.section-nav a.next { 
  flex-direction: row-reverse;
  margin-left: auto; 
}

.section-nav .nav-label { 
  font-size: 11px; 
  color: var(--db-dark); 
  display: block; 
  margin-bottom: 2px; 
}

.section-nav .nav-title { 
  color: var(--db-primary); 
  font-weight: 600; 
  font-size: 14px; 
}

/* ============================================
  FAQ Styles
============================================ */

.faq-container{
  position: relative;
  counter-reset: details-counter;
  padding: 0;
}


.faq-container details{
  position: relative;
  padding: 20px 0 25px;
  border-bottom: 1px solid color-mix(in srgb, var(--db-dark), transparent 70%) ;
}

.faq-container details summary {
  cursor: pointer;
  font-size: clamp(1rem, 0.75rem + 0.5vw, 1.125rem);
  font-weight: 600;
  list-style: none;
  margin-left: 45px;
  width: 77%;
}

.faq-container details summary::-webkit-details-marker {
  display: none;
}

.faq-container details summary::before {
  align-content: center;
  border: 1px solid var(--db-dark);
  border-radius: 50%;
  color: var(--db-dark);
  content: counter(details-counter);
  counter-increment: details-counter;
  display: inline-block;
  height: 35px;
  justify-self: center;
  position: absolute;
  left: 0px;
  top: 17px;
  text-align: center;
  width: 35px;
}

.faq-container details[open]{
  padding-bottom: 0;
}

.faq-container details[open] summary::before{
  color: var(--db-high);
  border-color: var(--db-high);
}

.faq-container details summary::after {
  color: var(--db-dark);
  content: "+";
  position: absolute;
  top: 10px;
  right: 0px;
  font-size: 22px;
  transition: transform .3s ease;
}

.faq-container details[open] summary::after {
  content: "−";
  color: var(--db-primary);
}

.faq-container details p{
  font-size: clamp(0.9375rem, 0.6875rem + 0.5vw, 1.0625rem);
  padding: 10px 30px;
  background-color: var(--db-low);
  margin: 20px 0px 0px ;
}

.faq-container details:last-child{
  border: none;
}

.changelog-container{
  margin-left: 10px;
}

.changelog-container li{
  list-style:circle;
  margin: 10px 0px;
}

.changelog-container a{
  color: var(--db-high);
}