/* Hexed Details — page-specific styles (shared layout lives in layout.css) */

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

:root {
  --spellbound-purple-mystic: #30195e;
  --spellbound-purple-mystic-alpha: rgba(48,25,94,0.85);
  --spellbound-lavender-1: #e6d6ff;
  --spellbound-lavender-2: #dac9f9;
  /* slightly softer glow */
  --spellbound-glow-active: 0 0 4px #ffffff, 0 0 6px #dac9f9, 0 0 10px #dac9f9;
  --spellbound-glow-hover: 0 0 2px #ffffff, 0 0 4px #dac9f9;
}

body {
  margin: 0;
  background: url('background-forest.png') center center fixed;
  background-size: cover;
  font-family: sans-serif;
  color: #2c1b47;
  cursor: url('wand.cur'), auto;
}

/* Header & site title */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 950px;
  margin: 20px auto 5px;
}
.header-row .top-link {
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  color: var(--spellbound-lavender-2);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}
.header-row .top-link:hover { text-shadow: var(--spellbound-glow-hover); color: var(--spellbound-lavender-1); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IM Fell English SC', serif;
  font-size: 56px;
  color: var(--spellbound-lavender-1);
  text-shadow: 3px 3px 6px #000000aa;
  white-space: nowrap;
}
.site-header .star { font-size: 28px; color: #bfaeff; text-shadow: 1px 1px 3px #00000066; margin: 0 10px; }

/* Sticky nav */
#global-nav-wrapper { position: sticky; top: 0; z-index: 100; width: 950px; margin: 0 auto; }
#global-nav {
  background: var(--spellbound-purple-mystic-alpha);
  padding: 4px 16px;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  border-radius: 6px; box-shadow: 0 0 10px rgba(0,0,0,0.5);
  font-family: 'IM Fell English SC', serif; font-size: 22px;
}
#global-nav a { color: var(--spellbound-lavender-2); text-decoration: none; transition: color .15s, text-shadow .15s; }
#global-nav a:hover { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
#global-nav a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); }

/* ================
   Two-column layout
   ================ */
.columns {
  display: flex;
  gap: 16px;
  align-items: stretch;   /* children equal height; height set via JS helper */
}

/* Sidebar (converted from absolute -> panel) */
.sidebar-left {
  flex: 0 0 160px;              /* keep your width */
  background-color: rgba(244, 239, 255, 0.65);
  padding: 1rem;
  border-radius: 1rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 18px;
  overflow-y: auto;             /* its own scroll */
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-height: 100%;             /* match .columns height */
}

/* Sidebar links — darker for readability */
.sidebar-left a {
  display: block;
  margin: 6px 0;
  color: #2c1b47;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
}
.sidebar-left a:hover  { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-hover); }
.sidebar-left a.active { color: var(--spellbound-lavender-1); text-shadow: var(--spellbound-glow-active); font-weight: 700; }

/* Sidebar scrollbar styling (match main) */
.sidebar-left::-webkit-scrollbar { width: 8px; }
.sidebar-left::-webkit-scrollbar-thumb { background-color: #bda0ff; border-radius: 6px; border: 2px solid #f4efff; }

/* Main content box */
.content-box {
  flex: 1 1 auto;
  height: 100%;         /* fill .columns height */
  overflow: auto;
  overflow-x: hidden;
  background-color: rgba(244, 239, 255, 0.65);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Breed header */
.breed-header {
  font-family: 'IM Fell English SC', serif;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  color: var(--spellbound-purple-mystic);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.5px;
  scroll-margin-top: 90px; /* anchor clear of sticky nav */
}

/* Pet blocks (unchanged look) */
.pet-block {
  display: flex; align-items: center;
  background-color: rgba(244, 239, 255, 0.65);
  margin: 1rem 0; padding: 1rem;
  border-radius: 1rem; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.pet-image { width: 200px; text-align: center; display: flex; justify-content: center; align-items: center; }
.pet-image img { max-height: 170px; border-radius: 8px; object-fit: contain; }

.header { text-align: center; }
.header .call-name { font-size: 24px; font-weight: bold; }
.header .show-name { font-size: 18px; font-style: italic; font-weight: bold; margin-top: 0.25rem; }
.meta-line { font-size: 14px; margin-top: 0.5rem; color: #2c1b47; }
.ribbons { margin-top: 0.5rem; text-align:center; }
.ribbons img { height: 24px; margin-right: 4px; }

.lineage-link { font-weight: bold; color: #5b3fa7; text-decoration: none; }
.lineage-link:hover { text-decoration: underline; text-shadow: var(--spellbound-glow-active); }
.lineage-title { font-size: 16px; font-weight: bold; color: #2c1b47; text-align: center; }

/* Mobile */
@media (max-width: 900px) {
  #global-nav-wrapper { width: 100%; }
  #global-nav { flex-wrap: wrap; font-size: 20px; }
  .header-row, .content-stack { width: 90%; }
  .columns { display: block; }
  .sidebar-left { display: none; }
  .content-box { width: 100%; height: auto; }
}
