/* ===================================================================
   Musical Demon — shared site chrome
   Fonts + CSS variables + header + nav.  Linked from every page.
   Add right before </head>:
     <link rel="stylesheet" href="/Navigation/site-shared.css">
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --md-primary: #C06A2A;
  --md-secondary: #8A5A2F;
  --md-accent: #ff9800;
  --md-accent-light: #ffb74d;
  --md-dark: #0E0D0A;
  --md-darker: #1A1814;
  --md-text: #E8E3D8;
  --md-gold: #FFD700;
  --md-teal: #6F7F3A;
  --md-pink: #B65F4A;
  --md-card-shadow: 0 8px 32px rgba(0,0,0,0.24);
  --md-glow: 0 0 12px rgba(192,106,42,0.55);
}

/* ---------- Typography (this is what fixes the "wrong font" bug) ---------- */
body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.navbar-nav .nav-link,
.header-logo {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
}

/* ---------- Header ---------- */
.header-logo {
  /* !important beats a page's leftover `.header-logo { background-color:#077CC4 }` */
  background: linear-gradient(-45deg, var(--md-primary), var(--md-darker),
                                      var(--md-secondary), var(--md-darker)) !important;
  background-size: 400% 400% !important;
  animation: mdGradientBG 15s ease infinite;
  padding: 15px 0 6px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@keyframes mdGradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.header-logo-image {
  max-height: 70px;
  width: auto;
  margin-bottom: 5px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7))
          drop-shadow(0 0 15px rgba(192,106,42,0.55)) !important;
  transition: transform .3s ease;
  position: relative;
  z-index: 1;
}

/* ---------- Navigation ---------- */
#navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 58px;
}
#navigation .navbar {
  background-color: rgba(30,24,14,0.8) !important;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(192,106,42,0.3);
  backdrop-filter: blur(10px);
  transition: all .3s ease-in-out;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(224,224,255,0.85);
  position: relative;
  padding: .5rem 1rem;
  transition: all .3s ease;
}
.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 50%;
  background: linear-gradient(90deg, var(--md-teal), var(--md-pink));
  transition: width .3s ease, left .3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; }
.navbar-dark .navbar-nav .nav-link:hover::after { width: 80%; left: 10%; }
.navbar-dark .navbar-nav .nav-link.active { color: var(--md-accent-light); }
.navbar-logo {
  max-height: 50px; width: auto;
  filter: drop-shadow(0 0 5px rgba(192,106,42,0.5));
  transition: all .3s ease;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--md-teal);
  outline-offset: 4px;
  box-shadow: 0 0 12px var(--md-teal);
}

/* ---------- Optional: opt-in dark page background ---------- */
/* Add class="md-dark-page" to <body> on pages that should match the dark theme. */
body.md-dark-page {
  background: var(--md-dark);
  color: var(--md-text);
}

/* ---------- Mobile: nav docks to the bottom (matches main site) ---------- */
@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  #navigation {
    position: fixed;
    bottom: 0; top: auto;
    border-bottom: 0;
    border-top: 1px solid rgba(192,106,42,0.3);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
  }
  #navigation .navbar-collapse {
    position: absolute;
    bottom: 100%; left: 0;
    width: 100%;
    background-color: rgba(30,24,14,0.95);
    border-top: 1px solid rgba(192,106,42,0.3);
    max-height: 75vh;
    overflow-y: auto;
  }
}