/* css/styleB.css
   Style B: Sidebar header + dark, editorial layout
   (Works with the existing HTML from the project: .site-header/.header-inner/.brand/.nav/.toggle-btn/main/.hero/.section/.grid/.card/.badges/.badge/.footer/.footer-inner)
*/

:root {
  --bg: #0f1220;
  --panel: #161a2d;
  --panel2: #1b2140;
  --text: #eef0ff;
  --muted: #b8bde6;
  --border: rgba(255, 255, 255, 0.12);
  --link: #9fd3ff;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Base reset */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, #1b245c, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #2c1658, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* =========================
   Sidebar Header (Style B)
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  z-index: 50;
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  justify-content: flex-start;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand .name {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.brand .tagline {
  color: var(--muted);
  font-size: 13px;
}

/* Nav becomes vertical */
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(27, 33, 64, 0.35);
}

.nav a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.nav a.active {
  border-color: var(--border);
  background: rgba(27, 33, 64, 0.85);
}

/* Toggle button sits at bottom of sidebar */
.toggle-btn {
  margin-top: auto;
  border: 1px solid var(--border);
  background: rgba(22, 26, 45, 0.7);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.toggle-btn:hover {
  box-shadow: var(--shadow);
}

/* =========================
   Main content area
   ========================= */
main {
  max-width: none;
  margin-left: 260px; /* same as sidebar width */
  padding: 20px 24px 48px;
  display: grid;
  gap: 14px;
}

/* Hero + sections become panels */
.hero {
  background: rgba(22, 26, 45, 0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.12;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.section {
  background: rgba(22, 26, 45, 0.65);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.3px;
}

/* Cards + grids */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  background: rgba(27, 33, 64, 0.65);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(27, 33, 64, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* Resume embed helpers (optional but safe if present) */
.resume-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.resume-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-frame--large {
  height: 85vh;
  min-height: 750px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  color: var(--muted);
  margin-left: 260px; /* align with main */
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* =========================
   Responsive fallback
   ========================= */
@media (max-width: 950px) {
  .site-header {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
  }

  main {
    margin-left: 0;
    padding: 18px 16px 40px;
  }

  .footer {
    margin-left: 0;
  }

  .toggle-btn {
    margin-top: 0;
  }
}
