/* ═══════════════════════════════════════════════════════════════
   KAYABODHA.COM — Dark Mode Design System
   Based on CIRHU dark theme, adapted for spiritual awakening
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gold: #c9a84c;
  --gold-light: #d4b86a;
  --gold-dark: #a88830;
  --saffron: #e8a838;
  --amber: #c9922e;
  --deep-bg: #0a0a1a;
  --deep-bg2: #0f1035;
  --card-bg: #12123a;
  --card-bg2: #161648;
  --text-primary: #e8e0d0;
  --text-secondary: #a09880;
  --text-muted: #706858;
  --border-color: rgba(201, 168, 76, 0.2);
  --border-glow: rgba(201, 168, 76, 0.35);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 26, 0.95);
  --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--deep-bg) !important;
  color-scheme: dark;
  scrollbar-gutter: stable;
}

html, body, .site-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.5) rgba(5, 5, 18, 0.92);
}

html::-webkit-scrollbar, body::-webkit-scrollbar, .site-main::-webkit-scrollbar {
  width: 10px; height: 10px;
}
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, .site-main::-webkit-scrollbar-track {
  background: rgba(5, 5, 18, 0.92);
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, .site-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.6), rgba(212, 184, 106, 0.4));
  border-radius: 999px;
  border: 2px solid rgba(5, 5, 18, 0.92);
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.8), rgba(212, 184, 106, 0.6));
}

::selection { background: rgba(201, 168, 76, 0.25); color: #fff; }

body {
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.06), transparent 30%),
    radial-gradient(circle at top right, rgba(106, 90, 205, 0.06), transparent 28%),
    linear-gradient(135deg, #050510 0%, var(--deep-bg) 42%, var(--deep-bg2) 100%) !important;
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION HEADER
   ═══════════════════════════════════════════════════════════════ */

.onevoice-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: background 0.3s, box-shadow 0.3s;
}

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

@media screen and (max-width: 782px) {
  body.admin-bar .onevoice-header { top: 46px; }
}

.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  flex: 0 0 auto;
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-logo {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
}

.logo-text {
  color: var(--gold);
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Hamburger */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  gap: 4px;
  transition: all 0.3s;
}

.hamburger-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item a, .nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-item a:hover, .nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

/* Dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85em;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-dropdown-link:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.nav-dropdown-label {
  display: block;
  padding: 6px 14px 4px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Login/Account */
.nav-item.nav-login .nav-dropdown-trigger {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-size: 0.82em;
}

.nav-item.nav-login .nav-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 170px;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .hamburger-menu { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 18, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    gap: 2px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 999;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item { width: 100%; }
  .nav-item a, .nav-dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-item.nav-login .nav-dropdown-menu { right: auto; left: 0; }
  body.admin-bar .nav-menu { top: calc(var(--header-height) + 46px); }
}

@media (max-width: 480px) {
  .nav-label { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1 { font-size: 2.2em; color: var(--gold); margin: 30px 0 20px; }
h2 { font-size: 1.8em; color: var(--gold); margin: 25px 0 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
h3 { font-size: 1.3em; color: var(--gold-light); margin: 20px 0 12px; }
h4 { font-size: 1.1em; color: var(--text-primary); margin: 15px 0 10px; }
p { margin: 12px 0; line-height: 1.8; }
strong { color: var(--gold); font-weight: 600; }
a { color: var(--gold); transition: color 0.2s; }
a:hover { color: var(--gold-light); }

ul, ol { margin: 15px 0 15px 30px; }
ul li, ol li { margin: 8px 0; line-height: 1.8; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: linear-gradient(160deg, rgba(22, 22, 72, 0.8) 0%, rgba(15, 15, 40, 0.85) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.15);
}

.card h3, .card h4 { color: var(--gold-light); }
.card p, .card li { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn, button, .button, input[type="submit"], input[type="button"] {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: #0a0a1a !important;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 10px 10px 10px 0;
}

.btn:hover, button:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
  color: #0a0a1a !important;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.grid-col-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) { .grid-col-2 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

input, textarea, select, button { color-scheme: dark; }

input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="tel"],
input[type="number"], input[type="date"], textarea, select {
  background: rgba(10, 10, 26, 0.75) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder { color: var(--text-muted) !important; opacity: 1; }

select option, select optgroup {
  background: #0a0a1a !important;
  color: var(--text-primary) !important;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--gold) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px #0a0a1a inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.onevoice-footer {
  background: linear-gradient(135deg, var(--deep-bg) 0%, var(--card-bg) 100%);
  border-top: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 40px 0 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-section h3 { font-size: 1.4em; margin-bottom: 15px; color: var(--gold); }
.footer-section h4 { font-size: 1.1em; margin-bottom: 12px; color: var(--text-primary); }
.footer-section p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95em; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95em;
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
}
.footer-bottom p { margin: 5px 0; }

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 20px; }
  .footer-section { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */

table { background: var(--card-bg) !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; width: 100%; border-collapse: collapse; }
table thead th { background: rgba(201, 168, 76, 0.1) !important; color: var(--gold) !important; padding: 10px 14px; text-align: left; }
table td { padding: 10px 14px; border-color: var(--border-color) !important; }
table tbody tr:hover { background: rgba(201, 168, 76, 0.04) !important; }

/* ═══════════════════════════════════════════════════════════════
   CODE & BLOCKQUOTES
   ═══════════════════════════════════════════════════════════════ */

code { background: rgba(0, 0, 0, 0.3); padding: 2px 6px; border-radius: 3px; color: var(--gold); font-family: 'Courier New', monospace; }
pre { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); padding: 15px; border-radius: 5px; overflow-x: auto; margin: 15px 0; }
blockquote { background: rgba(0, 0, 0, 0.2); border-left: 3px solid var(--gold); padding: 15px 20px; margin: 15px 0; color: var(--text-secondary); border-radius: 0 8px 8px 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
}

/* ═══════════════════════════════════════════════════════════════
   WIDGETS & SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.widget { background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 8px; margin: 20px 0; border: 1px solid var(--border-color); }
.widget-title { color: var(--gold); font-size: 1.1em; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════════════════════════ */

.highlight { background: rgba(201, 168, 76, 0.15); padding: 2px 6px; border-radius: 3px; color: var(--gold); }
.box { background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 8px; margin: 15px 0; border: 1px solid var(--border-color); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; margin: 5px 5px 5px 0; background: rgba(201, 168, 76, 0.15); color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 20px 0; }
.stat-box { background: rgba(201, 168, 76, 0.06); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); }
.stat-number { font-size: 2em; color: var(--gold); font-weight: bold; margin-bottom: 5px; }
.stat-label { font-size: 0.9em; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL DARK MODE HARDENING
   ═══════════════════════════════════════════════════════════════ */

main, .content, .site-content, .page-content, .entry-content, .post-content {
  background: transparent !important;
  color: var(--text-primary) !important;
}

body > * { color: var(--text-primary) !important; }
.wrap, .page, .post { background: transparent !important; }

#page, .site, .site-content, .site-inner, .content,
.page-content, main, .wp-site-blocks, [role="main"] {
  background: transparent !important;
}

main > *, main > div, main > div > div { background: transparent !important; }

/* Bio layout */
.kb-bio-wrap {
  display:flex; gap:30px; align-items:flex-start; margin:20px 0;
}
.kb-bio-photo {
  flex:0 0 280px; max-width:280px;
}
.kb-bio-text { flex:1; min-width:0; }
@media (max-width:640px) {
  .kb-bio-wrap { flex-direction:column; }
  .kb-bio-photo { flex:0 0 auto; max-width:200px; }
}
