/*
Theme Name: OA Dreamscape
Theme URI: https://whatiftheoa.local
Description: A dark, ethereal tribute theme for "What If The OA Never Ended" — built on Twenty Twenty-Five.
Author: What If The OA
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oa-dreamscape
Tags: dark, full-site-editing, block-theme, custom-colors, custom-typography
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — THE OA PALETTE
   ============================================================ */
:root {
  --oa-bg:           #0d0f1e;
  --oa-surface:      #13162a;
  --oa-surface-2:    #1b1f38;
  --oa-border:       #2a2f50;
  --oa-text:         #e8e0d5;
  --oa-text-muted:   #9a9097;
  --oa-gold:         #c9a052;
  --oa-gold-light:   #e4c07a;
  --oa-gold-dim:     #7a5f28;
  --oa-rose:         #a86c7c;
  --oa-teal:         #4a8f8c;
  --oa-white:        #f5f0e8;
  --oa-serif:        'Cormorant Garamond', Georgia, serif;
  --oa-sans:         'Lato', system-ui, sans-serif;
  --oa-max-width:    900px;
  --oa-wide-width:   1200px;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--oa-bg);
  color: var(--oa-text);
  font-family: var(--oa-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-post-title {
  font-family: var(--oa-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--oa-white);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.4rem; }

p {
  margin: 0 0 1.4em;
  color: var(--oa-text);
}

a {
  color: var(--oa-gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--oa-gold-light);
}

blockquote {
  border-left: 3px solid var(--oa-gold);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--oa-surface);
  font-family: var(--oa-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--oa-gold-light);
  border-radius: 0 4px 4px 0;
}

blockquote cite {
  display: block;
  margin-top: 0.75em;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--oa-text-muted);
  font-family: var(--oa-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

hr {
  border: none;
  border-top: 1px solid var(--oa-border);
  margin: 3em 0;
}

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.oa-container {
  max-width: var(--oa-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.oa-wide {
  max-width: var(--oa-wide-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* WordPress alignment classes */
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.wp-block-template-part.header,
header.wp-block-template-part {
  background: rgba(13, 15, 30, 0.97);
  border-bottom: 1px solid var(--oa-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.oa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--oa-wide-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

/* Site title in header */
.wp-block-site-title {
  font-family: var(--oa-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--oa-white) !important;
}

.wp-block-site-title a {
  color: var(--oa-white) !important;
  text-decoration: none;
}

.wp-block-site-title a:hover {
  color: var(--oa-gold) !important;
}

/* Navigation */
.wp-block-navigation {
  font-family: var(--oa-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wp-block-navigation a {
  color: var(--oa-text-muted) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.3em 0;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  color: var(--oa-gold) !important;
}

.wp-block-navigation ul {
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Mobile hamburger */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--oa-text-muted);
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--oa-bg);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.wp-block-template-part.footer,
footer.wp-block-template-part {
  background: var(--oa-surface);
  border-top: 1px solid var(--oa-border);
  padding: 3rem 0;
  text-align: center;
}

.oa-footer-inner {
  max-width: var(--oa-wide-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.oa-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(201, 160, 82, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(74, 143, 140, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(168, 108, 124, 0.05) 0%, transparent 60%),
              var(--oa-bg);
}

.oa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(201, 160, 82, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(74, 143, 140, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.oa-hero-eyebrow {
  font-family: var(--oa-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oa-gold);
  margin-bottom: 1.5rem;
}

.oa-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--oa-white);
  margin: 0 0 1.5rem;
  max-width: 800px;
  line-height: 1.1;
}

.oa-hero h1 em {
  font-style: italic;
  color: var(--oa-gold-light);
}

.oa-hero-subtitle {
  font-family: var(--oa-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--oa-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.oa-btn {
  display: inline-block;
  font-family: var(--oa-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border: 1px solid var(--oa-gold);
  color: var(--oa-gold);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.oa-btn:hover {
  background: var(--oa-gold);
  color: var(--oa-bg);
}

.oa-btn-filled {
  background: var(--oa-gold);
  color: var(--oa-bg);
}

.oa-btn-filled:hover {
  background: var(--oa-gold-light);
  color: var(--oa-bg);
}

.wp-block-button .wp-block-button__link {
  font-family: var(--oa-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border: 1px solid var(--oa-gold);
  color: var(--oa-gold);
  background: transparent;
  border-radius: 0;
  transition: all 0.25s ease;
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--oa-gold);
  color: var(--oa-bg);
}

/* ============================================================
   INTRO / ABOUT SECTION
   ============================================================ */
.oa-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.oa-intro p {
  font-family: var(--oa-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.85;
  color: var(--oa-text);
}

.oa-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem auto;
  max-width: 400px;
  color: var(--oa-gold-dim);
}

.oa-divider::before,
.oa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oa-border);
}

.oa-divider-symbol {
  font-family: var(--oa-serif);
  font-size: 1.4rem;
  color: var(--oa-gold);
  line-height: 1;
}

/* ============================================================
   STORY GRID (HOMEPAGE)
   ============================================================ */
.oa-section-label {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oa-gold);
  text-align: center;
  margin-bottom: 1rem;
}

.oa-section-title {
  font-family: var(--oa-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  text-align: center;
  color: var(--oa-white);
  margin: 0 0 0.5rem;
}

.oa-section-subtitle {
  font-family: var(--oa-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--oa-text-muted);
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 500px;
}

.oa-stories-section {
  padding: 5rem 2rem;
  background: var(--oa-surface);
}

.oa-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  max-width: var(--oa-wide-width);
  margin: 0 auto;
  background: var(--oa-border);
  border: 1px solid var(--oa-border);
}

.oa-story-card {
  background: var(--oa-surface);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
  position: relative;
}

.oa-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--oa-gold);
  transition: height 0.3s ease;
}

.oa-story-card:hover {
  background: var(--oa-surface-2);
}

.oa-story-card:hover::before {
  height: 100%;
}

.oa-card-number {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--oa-gold-dim);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.oa-card-title {
  font-family: var(--oa-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--oa-white);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.oa-card-seasons {
  font-family: var(--oa-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--oa-teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.oa-card-teaser {
  font-size: 0.9rem;
  color: var(--oa-text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 1.5rem;
}

.oa-card-theme {
  font-family: var(--oa-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--oa-rose);
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--oa-border);
}

.oa-card-link {
  font-family: var(--oa-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oa-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.oa-card-link:hover {
  gap: 0.8rem;
  color: var(--oa-gold-light);
}

.oa-card-link::after {
  content: '→';
}

/* Recap card (special) */
.oa-recap-card {
  background: linear-gradient(135deg, var(--oa-surface) 0%, rgba(74, 143, 140, 0.1) 100%);
  border: 1px solid var(--oa-teal);
  padding: 3rem;
  max-width: var(--oa-wide-width);
  margin: 4rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.oa-recap-card-text {
  flex: 1;
  min-width: 250px;
}

.oa-recap-card-label {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oa-teal);
  margin-bottom: 0.75rem;
}

.oa-recap-card-title {
  font-family: var(--oa-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--oa-white);
  margin: 0 0 0.75rem;
}

.oa-recap-card-desc {
  font-size: 0.9rem;
  color: var(--oa-text-muted);
  margin: 0;
}

/* ============================================================
   STORY TREATMENT PAGE
   ============================================================ */
.oa-story-header {
  padding: 7rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 160, 82, 0.07) 0%, transparent 60%),
              var(--oa-bg);
  border-bottom: 1px solid var(--oa-border);
}

.oa-story-number {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oa-gold);
  margin-bottom: 1.25rem;
}

.oa-story-title {
  font-family: var(--oa-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--oa-white);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.oa-story-seasons-badge {
  display: inline-block;
  font-family: var(--oa-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oa-teal);
  border: 1px solid var(--oa-teal);
  padding: 0.35em 1em;
  margin-bottom: 1.5rem;
}

.oa-story-byline {
  font-family: var(--oa-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--oa-text-muted);
}

.oa-story-theme-banner {
  background: var(--oa-surface);
  border-top: 1px solid var(--oa-border);
  border-bottom: 1px solid var(--oa-border);
  padding: 1.5rem 2rem;
  text-align: center;
}

.oa-story-theme-label {
  font-family: var(--oa-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oa-text-muted);
  margin-bottom: 0.3rem;
}

.oa-story-theme-text {
  font-family: var(--oa-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--oa-rose);
}

.oa-story-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.oa-story-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--oa-gold-light);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--oa-border);
}

.oa-story-body h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--oa-white);
  margin: 2rem 0 0.75rem;
}

.oa-story-body p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.oa-season-block {
  background: var(--oa-surface);
  border: 1px solid var(--oa-border);
  border-left: 3px solid var(--oa-gold);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.oa-season-label {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oa-gold);
  margin-bottom: 0.5rem;
}

.oa-season-title {
  font-family: var(--oa-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--oa-white);
  margin: 0 0 0.75rem;
}

.oa-season-block p {
  font-size: 0.95rem;
  color: var(--oa-text-muted);
  margin: 0;
}

.oa-character-fates {
  background: linear-gradient(135deg, var(--oa-surface) 0%, rgba(168, 108, 124, 0.05) 100%);
  border: 1px solid var(--oa-border);
  padding: 2.5rem;
  margin: 3rem 0;
}

.oa-character-fates h3 {
  font-family: var(--oa-serif);
  font-size: 1.4rem;
  color: var(--oa-rose);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--oa-border);
}

.oa-fate-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 47, 80, 0.5);
}

.oa-fate-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.oa-fate-name {
  font-family: var(--oa-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--oa-white);
  min-width: 120px;
}

.oa-fate-desc {
  font-size: 0.9rem;
  color: var(--oa-text-muted);
  margin: 0;
}

/* Story navigation */
.oa-story-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  border-top: 1px solid var(--oa-border);
  gap: 2rem;
  flex-wrap: wrap;
}

.oa-story-nav a {
  font-family: var(--oa-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oa-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.oa-story-nav a:hover {
  color: var(--oa-gold);
}

/* ============================================================
   RECAP PAGE
   ============================================================ */
.oa-recap-header {
  padding: 7rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(74, 143, 140, 0.08) 0%, transparent 60%),
              var(--oa-bg);
  border-bottom: 1px solid var(--oa-border);
}

.oa-recap-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--oa-white);
  margin: 0 0 1rem;
}

.oa-recap-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.oa-recap-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--oa-teal);
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--oa-border);
}

.oa-recap-body h3 {
  font-size: 1.3rem;
  color: var(--oa-white);
}

.oa-recap-body p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.oa-cliffhanger {
  background: linear-gradient(135deg, rgba(201, 160, 82, 0.06) 0%, rgba(168, 108, 124, 0.06) 100%);
  border: 1px solid var(--oa-gold-dim);
  border-left: 4px solid var(--oa-gold);
  padding: 3rem;
  margin: 3rem 0;
}

.oa-cliffhanger-label {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oa-gold);
  margin-bottom: 1rem;
}

.oa-cliffhanger h3 {
  font-family: var(--oa-serif);
  font-size: 1.6rem;
  color: var(--oa-white);
  margin: 0 0 1rem;
}

.oa-cliffhanger p {
  color: var(--oa-text);
}

/* ============================================================
   POST / PAGE CONTENT (GUTENBERG)
   ============================================================ */
.wp-block-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.wp-block-post-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  padding-top: 5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .oa-stories-grid {
    grid-template-columns: 1fr;
  }

  .oa-story-nav {
    flex-direction: column;
    text-align: center;
  }

  .oa-recap-card {
    flex-direction: column;
  }

  .oa-fate-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .oa-header-inner {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .oa-story-body,
  .oa-recap-body {
    padding: 3rem 1.5rem 4rem;
  }
}

/* ============================================================
   SELECTION & FOCUS
   ============================================================ */
::selection {
  background: rgba(201, 160, 82, 0.25);
  color: var(--oa-white);
}

:focus-visible {
  outline: 2px solid var(--oa-gold);
  outline-offset: 3px;
}

/* ============================================================
   SCROLLBAR (webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--oa-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--oa-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--oa-gold-dim);
}

/* ============================================================
   NAVIGATION DROPDOWN
   ============================================================ */
.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  background: #13162a !important;
  border: 1px solid #2a2f50 !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  min-width: 220px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container a {
  padding: 0.55rem 1.25rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  color: #9a9097 !important;
  display: block !important;
  transition: all 0.15s ease !important;
  border-left: 2px solid transparent !important;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container a:hover {
  color: #c9a052 !important;
  border-left-color: #c9a052 !important;
  padding-left: 1.5rem !important;
}

.wp-block-navigation .has-child > a {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

/* Mobile navigation overlay */
.wp-block-navigation__responsive-container.is-menu-open {
  background: #0d0f1e !important;
  padding: 2rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  font-size: 1.2rem !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid #2a2f50 !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: #e8e0d5 !important;
}

/* ============================================================
   WORDPRESS ADMIN BAR ADJUSTMENT
   ============================================================ */
.admin-bar .oa-site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  .admin-bar .oa-site-header {
    top: 46px !important;
  }
}

/* ============================================================
   OA POSTER IMAGE
   ============================================================ */
.oa-poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 2rem;
  background: var(--oa-bg);
}

.oa-poster {
  width: 100%;
  max-width: 360px;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(201, 160, 82, 0.2),
    0 0 60px rgba(201, 160, 82, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.oa-poster-caption {
  margin-top: 1rem;
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oa-text-muted);
  text-align: center;
}

/* ============================================================
   ENGAGE BAR — RATINGS + FAVORITES
   ============================================================ */
.oa-engage {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.oa-engage-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--oa-surface);
  border: 1px solid var(--oa-border);
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
}

.oa-engage-label {
  font-family: var(--oa-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oa-text-muted);
  margin: 0 0 0.75rem;
}

.oa-engage-divider {
  width: 1px;
  height: 60px;
  background: var(--oa-border);
  flex-shrink: 0;
}

.oa-engage-rating,
.oa-engage-favorite {
  flex: 1;
  min-width: 180px;
}

/* ============================================================
   KK STAR RATINGS — CUSTOM STYLING
   ============================================================ */

/* Main wrapper — flatten defaults */
.kk-star-ratings {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
}

/* Stars container */
.kksr-stars {
  position: relative !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Active stars overlay */
.kksr-stars-active {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Individual star wrapper */
.kksr-star {
  display: inline-block !important;
  cursor: pointer !important;
}

/* SVG stars — inactive */
.kksr-stars .kksr-star svg {
  fill: var(--oa-border) !important;
  width: 26px !important;
  height: 26px !important;
  transition: fill 0.15s ease, transform 0.1s ease !important;
}

/* SVG stars — active/filled */
.kksr-stars-active .kksr-star svg {
  fill: var(--oa-gold) !important;
}

/* Hover effect */
.kk-star-ratings:not(.kksr-disabled) .kksr-stars:hover .kksr-star svg {
  fill: var(--oa-gold-dim) !important;
}

.kk-star-ratings:not(.kksr-disabled) .kksr-stars .kksr-star:hover svg,
.kk-star-ratings:not(.kksr-disabled) .kksr-stars .kksr-star:hover ~ .kksr-star svg {
  fill: var(--oa-gold) !important;
}

/* Legend text (rating count / greeting) */
.kksr-legend {
  font-family: var(--oa-sans) !important;
  font-size: 0.75rem !important;
  color: var(--oa-text-muted) !important;
  letter-spacing: 0.05em !important;
  margin: 0 !important;
}

.kksr-legend .kksr-muted {
  font-style: italic !important;
  color: var(--oa-text-muted) !important;
}

/* Disabled state */
.kk-star-ratings.kksr-disabled .kksr-star {
  cursor: default !important;
}

/* ============================================================
   FAVORITES PLUGIN (simplefavorites) — CUSTOM STYLING
   ============================================================ */

/* Button base */
.simplefavorite-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: transparent !important;
  border: 1px solid var(--oa-border) !important;
  color: var(--oa-text-muted) !important;
  font-family: var(--oa-sans) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.65em 1.4em !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.simplefavorite-button:hover {
  border-color: var(--oa-rose) !important;
  color: var(--oa-rose) !important;
}

/* Active / favorited state */
.simplefavorite-button.active {
  border-color: var(--oa-rose) !important;
  color: var(--oa-rose) !important;
  background: rgba(168, 108, 124, 0.08) !important;
  opacity: 1 !important;
}

/* Icon inside button (simplefavorites icon font) */
.simplefavorite-button .sf-icon-favorite,
.simplefavorite-button .sf-icon-love,
.simplefavorite-button .sf-icon-star-full,
.simplefavorite-button .sf-icon-bookmark {
  font-size: 1rem !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}

.simplefavorite-button.active .sf-icon-favorite,
.simplefavorite-button.active .sf-icon-love {
  transform: scale(1.15) !important;
}

/* Loading spinner */
.simplefavorites-loading {
  color: var(--oa-text-muted) !important;
  font-size: 0.75rem !important;
}

/* Count display */
.simplefavorite-button.has-count::after {
  content: attr(data-count) !important;
  font-size: 0.7rem !important;
  color: var(--oa-text-muted) !important;
  margin-left: 0.25rem !important;
}

/* ============================================================
   ENGAGE BAR RESPONSIVE
   ============================================================ */
@media (max-width: 540px) {
  .oa-engage-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .oa-engage-divider {
    width: 100%;
    height: 1px;
  }
}
