/* ==========================================================================
   HOOPOE.CSS — The Daily Hoopoe
   Modern lifestyle magazine aesthetic with clean, airy editorial design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Color Variables — Modern Magazine Palette
   -------------------------------------------------------------------------- */
:root {
  --bg: #faf5ef;
  --text: #2d3436;
  --accent: #d4a843;
  --headline: #2d5a3d;
  --border: #e0d5c5;
  --pink: #e8a0b5;
  --green: #2d5a3d;
  --muted: #7f8c8d;
  --surface: #ffffff;
  --white: #ffffff;
  --cream: #fdf9f3;
  --blush: #fef0f3;
  --sage: #e8f0e4;
  --gold-light: #fdf6e3;
  --shadow-sm: 0 1px 4px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 52, 54, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 52, 54, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
}

body {
  background-color: var(--bg);
  color: var(--text);
}


/* --------------------------------------------------------------------------
   Paper Container
   -------------------------------------------------------------------------- */
.hoopoe-paper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(224, 213, 197, 0.5),
    var(--shadow-lg);
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hoopoe-paper {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   Hoopoe Masthead — Clean Modern Editorial
   -------------------------------------------------------------------------- */
.hoopoe-masthead {
  border-top: none;
  border-bottom: 3px solid var(--green);
  padding: 2rem 0 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.hoopoe-masthead::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.hoopoe-masthead .masthead-title {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.hoopoe-masthead .masthead-tagline {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hoopoe-masthead .masthead-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .hoopoe-masthead .masthead-title {
    font-size: 2rem;
    letter-spacing: 0.05em;
  }
}


/* --------------------------------------------------------------------------
   Magazine Layout — Hero + Two-Column
   -------------------------------------------------------------------------- */
.hoopoe-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hoopoe-layout__hero {
  grid-column: 1 / -1;
}

.hoopoe-layout__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hoopoe-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .hoopoe-layout__content {
    grid-template-columns: 1fr;
  }
}

/* Magazine 2-column equal */
.hoopoe-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .hoopoe-columns {
    grid-template-columns: 1fr;
  }
}

/* Magazine 3-column */
.hoopoe-columns--three {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .hoopoe-columns--three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hoopoe-columns--three {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Section Headers — Inter, Green, Modern
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

.hoopoe-section-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.hoopoe-section-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 0.4rem;
  border-radius: 1px;
}

.hoopoe-paper .section-subheader {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Magazine Typography Overrides
   -------------------------------------------------------------------------- */
.hoopoe-paper .article-headline {
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--green);
  letter-spacing: -0.01em;
}

.hoopoe-paper .article-headline--hero {
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hoopoe-paper .article-headline--secondary {
  font-size: 1.5rem;
  color: var(--green);
}

.hoopoe-paper .article-subheadline {
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--muted);
}

.hoopoe-paper .article-body {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  hyphens: none;
}

.hoopoe-paper .article-byline {
  color: var(--green);
  font-size: 0.72rem;
  border-bottom: none;
  margin-bottom: 1rem;
}

.hoopoe-paper .article-byline strong {
  color: var(--green);
}

.hoopoe-paper .drop-cap::first-letter {
  color: var(--green);
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   Section Dividers — Thin Green Line
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-divider {
  margin: 2.5rem 0;
}

.hoopoe-paper .section-divider::before,
.hoopoe-paper .section-divider::after {
  background-color: var(--green);
  opacity: 0.2;
}

.hoopoe-paper .section-divider span {
  color: var(--green);
  font-size: 0.65rem;
}

/* Clean green hairline */
.hoopoe-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.2;
  margin: 2rem 0;
}


/* --------------------------------------------------------------------------
   Magazine Cards — Rounded, Breathable
   -------------------------------------------------------------------------- */
.hoopoe-paper .character-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: var(--white);
  transition: all 0.25s ease;
}

.hoopoe-paper .character-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--pink);
}

.hoopoe-paper .character-card__name {
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--green);
}

/* Accent border on hover via pseudo */
.hoopoe-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: var(--white);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hoopoe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hoopoe-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.hoopoe-card:hover::before {
  opacity: 1;
}

/* Feature card — larger, with gradient bg */
.hoopoe-feature-card {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sage) 100%);
  position: relative;
}

.hoopoe-feature-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}


/* --------------------------------------------------------------------------
   Quote Blocks — Green Border
   -------------------------------------------------------------------------- */
.hoopoe-paper .quote-block {
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.05rem;
}

.hoopoe-paper .quote-block cite {
  color: var(--green);
}

.hoopoe-paper .quote-block--large {
  border-left-width: 4px;
  border-left-color: var(--accent);
}

/* Magazine pullquote */
.hoopoe-pullquote {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hoopoe-pullquote::before {
  content: '\201C';
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.2;
  display: block;
  margin-bottom: -1rem;
}

.hoopoe-pullquote__text {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--green);
}

.hoopoe-pullquote__author {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 0.75rem;
}


/* --------------------------------------------------------------------------
   Tags — Rounded Pills
   -------------------------------------------------------------------------- */
.hoopoe-paper .theme-tag {
  border-radius: var(--radius-pill);
  border-color: var(--border);
  background-color: var(--cream);
  font-size: 0.72rem;
  padding: 4px 12px;
  transition: all 0.2s ease;
}

.hoopoe-paper .theme-tag:hover {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.hoopoe-paper .theme-tag--active {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}


/* --------------------------------------------------------------------------
   Badges — Magazine Style
   -------------------------------------------------------------------------- */
.hoopoe-paper .priority-badge {
  border-radius: var(--radius-sm);
}

.hoopoe-paper .category-badge {
  border-radius: var(--radius-sm);
}

.hoopoe-paper .verse-ref {
  color: var(--green);
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   Breaking News — Soft Treatment
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-breaking-news {
  background-color: var(--sage);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  border-top-width: 1px;
}

.hoopoe-paper .section-breaking-news::before {
  background-color: var(--green);
  border-radius: var(--radius-sm);
  top: -0.6rem;
  font-size: 0.6rem;
}

.hoopoe-paper .section-breaking-news .article-headline {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Witness Testimony
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-witness-testimony {
  column-rule-color: transparent;
}

.hoopoe-paper .testimony-item {
  border-left-color: var(--green);
  border-left-width: 2px;
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}


/* --------------------------------------------------------------------------
   Psychology Column — Need Bars
   -------------------------------------------------------------------------- */
.hoopoe-paper .need-bar {
  border-radius: var(--radius-sm);
  height: 26px;
  background-color: color-mix(in srgb, var(--border) 40%, var(--white) 60%);
}

.hoopoe-paper .need-bar__fill {
  border-radius: var(--radius-sm);
}


/* --------------------------------------------------------------------------
   Relationship Web
   -------------------------------------------------------------------------- */
.hoopoe-paper .relationship-card {
  border-radius: var(--radius-md);
  border-color: var(--border);
  background-color: var(--white);
  padding: 0.85rem;
}

.hoopoe-paper .relationship-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
}

.hoopoe-paper .relationship-card__arrow {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Spiritual Barometer
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-spiritual-barometer {
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}


/* --------------------------------------------------------------------------
   Power Index
   -------------------------------------------------------------------------- */
.hoopoe-paper .power-rank {
  border-bottom-color: var(--border);
  border-bottom-style: dotted;
  padding: 0.6rem 0;
}

.hoopoe-paper .power-rank::before {
  color: var(--green);
}

.hoopoe-paper .power-rank__bar {
  border-radius: var(--radius-pill);
}

.hoopoe-paper .power-rank__bar-fill {
  background: linear-gradient(90deg, var(--green), var(--accent));
  border-radius: var(--radius-pill);
}


/* --------------------------------------------------------------------------
   Consequence Ledger
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-consequence-ledger {
  border-radius: var(--radius-md);
  overflow: hidden;
  border-color: var(--border);
}

.hoopoe-paper .section-consequence-ledger__header {
  background-color: var(--sage);
  border-color: var(--border);
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Daily Action
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-daily-action {
  background-color: var(--sage);
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--border) 80%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.hoopoe-paper .action-item::before {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Dua Corner
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-dua-corner {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.hoopoe-paper .section-dua-corner::before,
.hoopoe-paper .section-dua-corner::after {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   Reflection Pool
   -------------------------------------------------------------------------- */
.hoopoe-paper .reflection-question {
  border-bottom-style: dotted;
  border-bottom-color: var(--border);
  padding: 0.75rem 0 0.75rem 2rem;
}

.hoopoe-paper .reflection-question::before {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Cross References
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-cross-reference a {
  border-radius: var(--radius-pill);
  border-color: var(--border);
}

.hoopoe-paper .section-cross-reference a:hover {
  background-color: var(--green);
  border-color: var(--green);
}


/* --------------------------------------------------------------------------
   Archetype Analysis
   -------------------------------------------------------------------------- */
.hoopoe-paper .archetype-card {
  border-radius: var(--radius-md);
  border-color: var(--border);
}

.hoopoe-paper .archetype-card:hover {
  border-color: var(--green);
}

.hoopoe-paper .archetype-card__title {
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--green);
}

.hoopoe-paper .archetype-card__type {
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   Voice of Verse (Audio)
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-voice-of-verse {
  border-radius: var(--radius-md);
  background-color: var(--cream);
}

.hoopoe-paper .section-voice-of-verse__play {
  background-color: var(--green);
}


/* --------------------------------------------------------------------------
   Weekly Challenge
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-weekly-challenge {
  border: 2px dashed var(--green);
  border-radius: var(--radius-md);
  background-color: var(--sage);
}

.hoopoe-paper .section-weekly-challenge__title {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Scene Report
   -------------------------------------------------------------------------- */
.hoopoe-paper .section-scene-report {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sage) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}


/* --------------------------------------------------------------------------
   Edition Cards (Archive page)
   -------------------------------------------------------------------------- */
.hoopoe-paper .edition-card {
  border-radius: var(--radius-md);
  border-color: var(--border);
  background-color: var(--white);
}

.hoopoe-paper .edition-card:hover {
  border-color: var(--green);
}


/* --------------------------------------------------------------------------
   Magazine Navigation Override
   -------------------------------------------------------------------------- */
.hoopoe-nav {
  background-color: var(--white);
  border-bottom: 2px solid var(--green);
  backdrop-filter: blur(12px);
}

.hoopoe-nav a {
  color: var(--text);
}

.hoopoe-nav a:hover {
  color: var(--green);
}

.hoopoe-nav .edition-nav__logo {
  color: var(--green);
  font-family: 'Source Serif Pro', Georgia, serif;
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   Magazine: Sidebar widget box
   -------------------------------------------------------------------------- */
.hoopoe-sidebar-box {
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.hoopoe-sidebar-box__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
}


/* --------------------------------------------------------------------------
   Magazine: Hero image/feature area
   -------------------------------------------------------------------------- */
.hoopoe-hero-feature {
  background: linear-gradient(135deg, var(--sage) 0%, var(--cream) 50%, var(--gold-light) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hoopoe-hero-feature::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 181, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hoopoe-hero-feature__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hoopoe-hero-feature__title {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hoopoe-hero-feature__subtitle {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   Magazine: Accent decorative elements
   -------------------------------------------------------------------------- */
.hoopoe-accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hoopoe-accent-dot--green { background-color: var(--green); }
.hoopoe-accent-dot--pink  { background-color: var(--pink); }
.hoopoe-accent-dot--gold  { background-color: var(--accent); }

.hoopoe-accent-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
  display: inline-block;
}


/* --------------------------------------------------------------------------
   Magazine: Footer Override
   -------------------------------------------------------------------------- */
.hoopoe-paper .site-footer {
  border-top-color: var(--green);
  margin-top: 3rem;
}

.hoopoe-paper .site-footer a {
  color: var(--green);
}


/* --------------------------------------------------------------------------
   Magazine Print Enhancement
   -------------------------------------------------------------------------- */
@media print {
  .hoopoe-paper {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
  }

  .hoopoe-nav {
    display: none;
  }

  .hoopoe-hero-feature {
    background: #f0f0f0 !important;
    border-radius: 0;
  }
}
