/* Dogz 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;

  /* 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;
}

/* Site background + base text */
body {
  margin: 0;
  background: url('background-forest.png') no-repeat 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 bar */
#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 0.15s ease, text-shadow 0.15s ease;
}
#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; /* make children equal height */
  height: 100%;         /* controlled by layout.js */
}

/* Left sidebar */
.sidebar-left {
  flex: 0 0 160px; /* fixed 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;   /* scrollable if taller */
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-height: 100%;   /* match content-box height */
}

/* Sidebar links */
.sidebar-left a {
  display: block;
  margin: 6px 0;
  color: #2c1b47;   /* darker for readability */
  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 */
.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;
  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 headers & pet blocks
   =========================== */
.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;
}

.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 { object-fit: contain; border-radius: 8px; }

.pet-info {
  flex-grow: 1;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
}
.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; }

.centered-show-data { text-align: center; margin-top: 1rem; }

.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; }

.pet-gallery { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 1em; }
.gallery-arrow { background: none; border: none; font-size: 24px; cursor: pointer; color: #2c1b47; }
.gallery-image { object-fit: contain; }

/* =========
   Mobile
   ========= */
@media (max-width: 1024px) {
  #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; }
}
