/* ==========================================================================
   theme.css — aldenbryce.com/theme.css
   Shared across ALL projects. Import this first.

   Philosophy: everything structural and typographic lives here.
   The ONLY thing local stylesheets need to override is color.
   Each project sets its own :root color values. Everything else is shared.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   Variable NAMES are defined here. VALUES are set in each project's
   local :root block. This file uses var() throughout so it adapts
   to any color scheme automatically.
   -------------------------------------------------------------------------- */

:root {
  /* Colors — values intentionally blank here, set locally per project */
  --color-bg:        ;
  --color-surface:   ;
  --color-border:    ;
  --color-text:      ;
  --color-muted:     ;
  --color-accent:    ;
  --color-accent-hover: ;

  /* Env badge — values set locally, structure defined here */
  --color-env-badge-bg:   ;
  --color-env-badge-text: ;

  /* Status colors — same meaning everywhere, fixed values */
  --color-green: #22c55e;
  --color-yellow: #eab308;
  --color-orange: #fb923c;
  --color-red: #ef4444;

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size-xs: 0.85rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 60px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Layout */
  --container-max: 900px;
  --container-padding: 0 20px;

  /* Z-index */
  --z-sticky: 1000;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   BASE — BODY
   -------------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--font-size-base);
}

main {
  flex: 1;
}

/* --------------------------------------------------------------------------
   CONTAINER
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --------------------------------------------------------------------------
   LINKS
   -------------------------------------------------------------------------- */

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */

.navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 16px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.unstyled-link {
  text-decoration: none;
  color: inherit;
}

.unstyled-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   ENV LABEL BADGE
   Shown in the header on non-prod environments only.
   JS sets display: inline-block when active, hides on prod.
   Values (bg/text color) set locally per project.
   -------------------------------------------------------------------------- */

.env-label-header {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
  background: var(--color-env-badge-bg);
  color: var(--color-env-badge-text);
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-xl) 0;
}

.section.alt {
  background: var(--color-surface);
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  padding: 80px 0 50px;
  text-align: center;
  background: var(--color-surface);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-subtext {
  max-width: 600px;
  margin: auto;
  color: var(--color-muted);
}

/* 


.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.button:hover {
  filter: brightness(0.9);
  text-decoration: none;
}
 */

/* ── Button ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

.btn:active {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.footer {
  text-align: center;
  padding: 25px 0;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   STATUS UTILITY CLASSES
   -------------------------------------------------------------------------- */

.status-ok {
  color: var(--color-green);
}
.status-warn {
  color: var(--color-yellow);
}
.status-error {
  color: var(--color-red);
}
.status-degraded {
  color: var(--color-yellow);
}
.status-down {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */

.text-muted {
  color: var(--color-muted);
}
.text-sm {
  font-size: var(--font-size-sm);
}
.text-xs {
  font-size: var(--font-size-xs);
}
.label {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

/* small muted metadata line — used under headings and in card meta rows */
.page-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — NAVBAR
   -------------------------------------------------------------------------- */

@media (min-width: 1280px) {
  .navbar .container {
    max-width: 1200px;
    padding: 0 32px;
  }

  .logo {
    font-size: 1.7rem;
  }

  .nav-links a {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 1024px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .nav-content {
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }

  .logo {
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: normal;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-links a {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 400px) {
  .nav-content {
    padding: 8px;
    gap: 8px;
  }

  .logo {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
