:root {
  --theme-bg: #06060a;
  --theme-panel: #0f0f14;
  --theme-line: rgba(255,255,255,.10);
  --theme-text: #f0eade;
  --theme-muted: #a09890;
  --theme-orange: #f47a1f;
  --theme-red: #8f1717;
}

* { box-sizing: border-box; }

html { background: var(--theme-bg); }
html, body { min-height: 100%; }

body {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ─── HEADER ──────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0;
  background: rgba(6,6,10,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* linha laranja sutil no bottom */
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(244,122,31,.6) 35%,
    rgba(244,122,31,.8) 50%,
    rgba(244,122,31,.6) 65%,
    transparent 100%);
  pointer-events: none;
}

.site-header__inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

body.admin-bar .site-header { top: 32px; }

/* ─── BRAND ───────────────────────────────────────────────────────── */

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--theme-text) !important;
  min-width: 200px;
  transition: opacity .2s;
}
.site-brand:hover { opacity: .82; }

.site-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(244,122,31,.40));
  transition: filter .25s;
}
.site-brand:hover img {
  filter: drop-shadow(0 0 20px rgba(244,122,31,.65));
}

.site-brand span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 18px;
  letter-spacing: .05em;
  line-height: 1;
  color: var(--theme-text);
  text-transform: uppercase;
}

/* ─── NAV ─────────────────────────────────────────────────────────── */

.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}

.site-nav li { position: relative; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(240,234,222,.65) !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.site-nav a:hover {
  color: var(--theme-text) !important;
  background: rgba(255,255,255,.06);
}

.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a {
  color: var(--theme-orange) !important;
  background: rgba(244,122,31,.08);
}

/* indicador laranja na base do item ativo */
.site-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px; right: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--theme-orange);
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,.06);
  color: var(--theme-text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s;
}
.menu-toggle:hover { background: rgba(244,122,31,.10); }

/* ─── ACTIONS ─────────────────────────────────────────────────────── */

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(165deg, #ff9030 0%, #d44e0a 100%);
  color: #080808 !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  border: 0;
  box-shadow: 0 4px 20px rgba(212,78,10,.40), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.site-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,122,31,.55);
  filter: brightness(1.08);
}

.site-action--ghost {
  background: transparent;
  color: rgba(240,234,222,.75) !important;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.site-action--ghost:hover {
  background: rgba(255,255,255,.07);
  box-shadow: none;
  color: var(--theme-text) !important;
}

/* ─── MAIN ────────────────────────────────────────────────────────── */

.site-main {
  min-height: 72vh;
  background: var(--theme-bg);
  color: var(--theme-text);
}

.theme-loop,
.theme-page,
.theme-single {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 20px;
}

.theme-page {
  max-width: none;
  padding: 0;
  background: transparent;
}

.theme-post,
.theme-single__header,
.theme-event-meta {
  background: var(--theme-panel);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.theme-post img,
.theme-single img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.theme-single h1,
.theme-loop h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: .97;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.theme-content {
  font-size: 17px;
  line-height: 1.75;
  color: #ccc4b8;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px clamp(20px, 4vw, 60px);
  background: #030306;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(244,122,31,.50) 30%,
    rgba(244,122,31,.70) 50%,
    rgba(244,122,31,.50) 70%,
    transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 200% at 50% 200%, rgba(244,122,31,.07), transparent);
  pointer-events: none;
}

.site-footer strong { color: var(--theme-text); }
.site-footer,
.site-footer a {
  color: var(--theme-muted);
  text-decoration: none;
  font-size: 14px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .site-header__inner { width: min(100% - 28px, 1280px); }
  .site-brand { min-width: auto; }
  .site-brand span {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-nav a { font-size: 11px; padding: 7px 8px; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    display: none;
    background: rgba(6,6,10,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 20px;
  }
  body.admin-bar .site-nav { top: 76px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 4px; }
  .site-nav a { min-height: 44px; font-size: 13px; }
  .site-nav .current-menu-item > a::after {
    bottom: auto;
    top: 11px;
    left: 4px; right: auto;
    width: 3px;
    height: 22px;
    border-radius: 0 2px 2px 0;
  }
  .site-actions { margin-left: auto; }
  .site-footer { display: grid; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .site-brand span { font-size: 16px; }
}

@media (max-width: 620px) {
  .site-header__inner { min-height: 64px; gap: 10px; }
  .site-brand img { width: 42px; height: 42px; }
  .site-brand span { display: none; }
  .site-actions { gap: 6px; }
  .site-action { min-height: 44px; padding: 0 14px; font-size: 11px; }
  .site-nav { top: 64px; }
  .site-nav a { min-height: 48px; font-size: 14px; padding: 0 12px; }
  .menu-toggle { min-height: 44px; min-width: 44px; }
  .theme-content { font-size: 16px; }
}

/* ── Mobile small ─────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .site-header__inner { width: calc(100% - 24px); }
  .site-action--ghost { display: none; }
}
