/* ====== Tema geral ====== */
:root {
  --bg-body: #05060a;
  --bg-elevated: #101117;
  --bg-sidebar: #0c0d12;
  --bg-topbar: #080910;
  --border-color-soft: #252634;
  --text-main: #f1f1f4;
  --text-muted: #898ca5;
  --accent-gold: #e0b865;
  --accent-gold-soft: #8a6a32;
  --accent-gold-strong: #f4cf7a;
  --accent-link: #b38cff;
  --radius-lg: 16px;
  --transition-fast: 0.18s ease-out;
  /*--shadow-soft: 0 24px 40px rgba(0, 0, 0, 0.45);*/
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.theme-dark {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #191b2a 0, #05060a 55%);
  color: var(--text-main);
}

/* ====== Layout principal ====== */
.layout {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 18px 22px 32px;
  max-width: 1080px;
}

/* ====== Sidebar ====== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #11131d 0%, #05060a 100%);
  border-right: 1px solid var(--border-color-soft);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
  transform: translateX(0);
  transition: transform var(--transition-fast);
}

.sidebar-header {
  padding: 6px 6px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(224, 184, 101, 0.12), transparent 55%);
  margin-bottom: 10px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 20%, var(--accent-gold-strong), var(--accent-gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #140c02;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(244, 207, 122, 0.8);
}

.logo-letter {
  transform: translateY(-1px);
}

.sidebar-title {
  font-weight: 600;
  font-size: 14px;
}

.sidebar-subtitle {
  font-size: 11px;
}

.sidebar-nav {
  margin-top: 10px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 2px 8px 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 9px;
  border-radius: 9px;
  font-size: 13px;
  color: #d7d7e6;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.sidebar-link .sidebar-icon {
  width: 18px;
  text-align: center;
}

.sidebar-link:hover {
  background: radial-gradient(circle at left, rgba(224, 184, 101, 0.18), rgba(43, 45, 69, 0.8));
  transform: translateX(1px);
  color: #fff;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(224, 184, 101, 0.4), rgba(57, 50, 34, 0.95));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(234, 204, 134, 0.6);
}

.sidebar-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-color-soft);
  font-size: 11px;
  color: var(--text-muted);
}

/* Scrollbar sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #2c3046;
  border-radius: 4px;
}

/* ====== Topbar ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 10px 22px;
  background: radial-gradient(circle at top, #171927 0%, #070811 60%);
  border-bottom: 1px solid var(--border-color-soft);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.topbar-path {
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-search .input-group-text {
  font-size: 11px;
}

.topbar-search .form-control {
  font-size: 13px;
}

/* ====== Hero ====== */
.hero {
  margin-top: 10px;
  padding: 40px 24px 32px;
  border-radius: 24px;
  /*background:*/
  /*  radial-gradient(circle at top left, rgba(244, 207, 122, 0.22), transparent 60%),*/
  /*  radial-gradient(circle at bottom right, rgba(88, 123, 255, 0.2), transparent 55%),*/
  /*  linear-gradient(135deg, #141520, #05060a);*/
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  /*background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0, transparent 50%),*/
  /*  radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06) 0, transparent 45%),*/
  /*  radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.04) 0, transparent 50%);*/
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold-strong);
  position: relative;
}

.hero-title {
  margin: 0;
  margin-top: 4px;
  font-size: clamp(36px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  color: #f7f7ff;
}

.hero-title span {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85em;
  background: linear-gradient(180deg, #fbe7b4 0%, #c9953b 40%, #7a5726 80%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(249, 220, 155, 0.65);
}

.hero-subtitle {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
}

/* ====== Cards / callouts ====== */
.border-gold-soft {
  border-color: rgba(224, 184, 101, 0.55) !important;
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, var(--accent-gold-strong), var(--accent-gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-section {
  background: radial-gradient(circle at top, rgba(244, 207, 122, 0.1), rgba(18, 19, 32, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(83, 83, 120, 0.85);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.card-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(244, 207, 122, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card-link:hover .card-section,
.card-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.8);
  border-color: rgba(234, 204, 134, 0.9);
}

.card-link:hover .card-section::before,
.card-section:hover::before {
  opacity: 1;
}

.card-link-label {
  font-size: 12px;
  color: var(--accent-link);
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(17, 142, 237, 0.18);
  color: #d0e7ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Callout caixas */
.callout {
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(18, 19, 32, 0.95);
  border: 1px solid var(--border-color-soft);
}

.callout-tip {
  background: rgba(13, 70, 43, 0.85);
  border-color: rgba(36, 215, 131, 0.75);
}

/* ====== Breadcrumb & artigo ====== */
.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 12px;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

.breadcrumb-custom a {
  color: var(--accent-link);
  text-decoration: none;
}
.breadcrumb-custom a:hover {
  text-decoration: underline;
}

.doc-article {
  background: rgba(9, 10, 18, 0.96);
  border-radius: 18px;
  padding: 22px 22px 24px;
  border: 1px solid var(--border-color-soft);
  box-shadow: var(--shadow-soft);
}

.doc-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.doc-meta {
  font-size: 12px;
}

.doc-section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.doc-code-block {
  margin: 10px 0 14px;
  background: #05060a;
  border-radius: 10px;
  border: 1px solid #343852;
  padding: 10px 12px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  overflow-x: auto;
}

/* ====== Utilidades ====== */
.text-gold {
  color: var(--accent-gold-strong) !important;
}

/* ====== Responsividade & animação sidebar ====== */
@media (max-width: 991.98px) {
  .layout {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-open .layout::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1035;
  }

  .content {
    padding: 16px 14px 24px;
  }

  .hero {
    padding: 30px 18px 26px;
  }
}

/* Pequenas melhorias mobile */
@media (max-width: 575.98px) {
  .topbar {
    padding-inline: 14px;
  }

  .topbar-path {
    max-width: 180px;
  }
}




