/* ===== Simple Stuff — Shared Layout ===== */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1220, #0f172a);
  color: #ffffff;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: #0b1220;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
}

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

.site-logo img {
  height: 36px;
}

.site-logo span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Navigation ── */
.site-nav { position: relative; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

/* Nav group label & indent */
.nav-group-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 14px 2px;
  cursor: default;
}

/* Desktop: hide group label, no indent */
@media (min-width: 769px) {
  .nav-group-label { display: none; }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .nav-indent a {
    padding-left: 28px;
  }
}

/* ── Footer ── */
.site-footer {
  margin-top: 40px;
  padding: 20px 0 12px;
  border-top: 1px solid #1f2937;
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.site-footer-nav a:hover { color: #38bdf8; }

.site-footer-nav .nav-icon {
  width: 16px;
  height: 16px;
}

.site-footer-copy {
  color: #475569;
  font-size: 12px;
}
