/* ============================================================
   KRAMPUS VEREIN PINELLAS — CUSTOM CSS
   Location: Appearance → Custom CSS (SiteOrigin CSS)
   Last updated: 2026-03-28

   ARCHITECTURE NOTES:
   - CSS variables defined once in :root — change colors here only
   - Homepage rows targeted via .panel-grid:has(.{row-class})
     because SiteOrigin applies row classes to an inner
     .panel-row-style div, NOT to .panel-grid itself
   - Widget internals targeted by their real DOM class names,
     verified by browser inspection (not guessed)
   - No nth-of-type selectors — too fragile with SiteOrigin's DOM
   - !important used only where SiteOrigin's inline or
     auto-generated widget CSS would otherwise win

   ROW CLASS MAP (set in SiteOrigin Row Settings → Attributes → CSS Class):
     .row-convention   → Convention Banner        dark bg
     .row-krampusnacht → Krampusnacht CTA         dark red bg
     .row-teaser       → Who is Krampus teaser    transparent/tan
     .row-slider       → Photo Slider             transparent/tan
     .row-youtube      → YouTube embed            dark bg
     .row-events       → Upcoming Events          dark bg
     .row-join         → Join / Follow CTA        dark bg

   WIDGET HTML CLASS HOOKS (wrap widget content in these divs):
     .krampus-teaser-text  → Who is Krampus editor widget
     .youtube-wrap         → YouTube editor widget
     .join-cta             → Join CTA editor widget

   SiteOrigin CTA widget DOM structure (for reference):
     .sow-cta-base
       .sow-cta-text
         .sow-cta-title     ← h4, the Title field
         .sow-cta-subtitle  ← h4, the Subtitle field
       .ow-button-base
         a                  ← the actual button anchor
   ============================================================ */


/* ============================================================
   CSS VARIABLES
   Edit colors here — they propagate everywhere automatically
   ============================================================ */
:root {
  --krampus-red:            crimson;       /* Primary accent — titles, borders, buttons */
  --krampus-red-light:      #ff6666;       /* Hover states, lighter accents */
  --krampus-red-glow:       #ff3333;       /* Glow effects on hover */
  --krampus-parchment:      #ffefe3;       /* Primary light text color */
  --krampus-parchment-dark: #d4c59e;       /* Aged parchment — CTA button backgrounds */
  --krampus-dark:           #121212;       /* Primary dark background */
  --krampus-dark-mid:       #2c2c2c;       /* Mid-tone dark — alternating rows */
  --krampus-dark-red:       #2a1411;       /* Deep red-black — Krampusnacht row */
}


/* ============================================================
   GLOBAL LINK STYLING
   Applied site-wide. Parchment text with crimson underline.
   Hover turns black for contrast on tan/light backgrounds.
   ============================================================ */
a {
  text-decoration: underline;
  text-decoration-color: var(--krampus-red);
  text-underline-offset: 3px;
  color: var(--krampus-parchment);
  transition: color 0.3s ease;
}

a:hover,
.entry-content a:hover,
.panel-layout a:hover,
.sow-editor a:hover,
.krampus-section a:hover {
  color: #000;
}


/* ============================================================
   SPECIAL LINK: KRAMPUSNACHT CTA INLINE LINK
   Targets any anchor pointing to the krampus-nacht page.
   Styled as a button-like parchment badge with red glow.
   ============================================================ */
a[href*="krampus-nacht"] {
  background-color: var(--krampus-parchment-dark);
  color: #1a1a1a;                   /* Dark text — passes contrast on parchment */
  padding: 5px 10px;
  border: 2px solid var(--krampus-red);
  font-weight: bold;
  box-shadow: 0 0 10px var(--krampus-red);
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

a[href*="krampus-nacht"]:hover {
  color: var(--krampus-red);
  box-shadow: 0 0 15px var(--krampus-red-glow);
}


/* ============================================================
   SITE TITLE
   Prevents unwanted color shift on hover while keeping
   underline as a subtle hover indicator.
   ============================================================ */
.site-title a:hover {
  color: inherit;
  text-decoration: underline;
}


/* ============================================================
   MAIN NAVIGATION
   Active and hovered menu items turn black for legibility
   against the tan header background.
   ============================================================ */
.main-navigation .menu-item a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #000;
}


/* ============================================================
   KRAMPUS AURA IMAGE
   Used on images with class="krampus-aura" set in SiteOrigin
   Image widget → Widget Styles → CSS Class.
   Adds dramatic shadow and smooth hover transition.
   ============================================================ */
.krampus-aura {
  position: relative;
  display: block;
  overflow: visible;
}

.krampus-aura img {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
  position: relative;
  z-index: 2;
  border-radius: 6px;
}


/* ============================================================
   SCHEDULE BLOCK
   Used on the Scheduled Events page for event listings.
   Dark card with crimson left border and red glow.
   Alternating row colors for readability.
   ============================================================ */
.schedule {
  background: var(--krampus-dark);
  color: var(--krampus-parchment);
  border-left: 5px solid var(--krampus-red);
  padding: 1rem 2rem;
  margin-top: 2rem;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
  font-size: 1.25rem;
}

.schedule .html-br {
  margin-bottom: 8px;
}

.schedule-entry {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--krampus-red);
  transition: border-color 0.3s ease;
  font-size: 1.25rem;
}

/* Alternating backgrounds for visual rhythm */
.schedule-entry:nth-child(even) { background-color: var(--krampus-dark-mid); }
.schedule-entry:nth-child(odd)  { background-color: var(--krampus-dark-red); }

.schedule-entry:hover {
  border-left-color: var(--krampus-red-light);
}


/* ============================================================
   KRAMPUS SECTION
   Reusable component for interior pages (not homepage).
   Wrap content in  in any
   SiteOrigin Editor widget.
   Features pulsing red glow animation and Gothic headings.
   ============================================================ */
.krampus-section {
  background-color: var(--krampus-dark);
  color: var(--krampus-parchment);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.25),
              inset 0 0 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  animation: pulseShadow 4s ease-in-out infinite;
  font-family: 'Georgia', serif;
}

.krampus-section p {
  color: var(--krampus-parchment) !important; /* ties in specificity with the
    theme Customizer's dynamic "body.popularfx-body p" rule; !important
    needed so this dark-background component always wins regardless of
    which style block prints later in <head> */
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.krampus-section h3 {
  color: var(--krampus-red);
  font-size: 1.8rem;
  margin-top: 2rem;
  font-family: 'UnifrakturCook', cursive;
  letter-spacing: 1px;
}

.krampus-section .krampus-image {
  display: block;
  margin: 2rem auto;
  border: 4px solid var(--krampus-red);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}


/* ============================================================
   ANIMATIONS
   pulseShadow: slow breathing red glow used on .krampus-section
   ============================================================ */
@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25),
                inset 0 0 40px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4),
                inset 0 0 50px rgba(0, 0, 0, 0.7);
  }
}


/* ============================================================
   HOMEPAGE ROWS — page-id-28
   ============================================================ */


/* ============================================================
   GLOBAL: Strip SiteOrigin CTA widget card
   SiteOrigin generates a styled card background on all
   .sow-cta-base elements. We override it globally to
   transparent so row backgrounds show through cleanly.
   The auto-generated rule uses a widget-specific class like
   .so-widget-sow-cta-default-{hash} which has higher
   specificity — this global transparent rule placed after
   it in the stylesheet wins by cascade order.
   ============================================================ */
.sow-cta-base {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ============================================================
   ROW 1: Convention Banner
   Dark background with red top/bottom borders.
   Layout matches ROW 2 (Krampusnacht) below it: text left, button
   right, via the CTA widget's own native flex-row layout — no forced
   column/centering override. Was a centered column with an oversized
   1.8rem title; now text-left/button-right like Krampusnacht, title
   sized down to feel proportional to that row.
   Title: Cinzel, red. Subtitle: Georgia serif, parchment.
   ============================================================ */
.row-convention {
  background-color: var(--krampus-dark) !important;
  border-top: 3px solid var(--krampus-red);
  border-bottom: 3px solid var(--krampus-red);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.panel-grid:has(.row-convention) .sow-cta-base {
  padding: 1.5rem 2rem !important;
}

/* Title field (h4.sow-cta-title) — Cinzel, red. Was UnifrakturCook, but this
   field holds a full sentence ("Krampus Verein Pinellas Hosts the 2027
   Krampus America Convention") — blackletter at paragraph length is hard to
   scan. Cinzel keeps the carved/ancient feel and stays legible at any length.
   Size brought down from 1.8rem to feel proportional to the Krampusnacht
   row's 1.3rem title just below it. */
.panel-grid:has(.row-convention) .sow-cta-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  color: var(--krampus-red) !important;
  margin-bottom: 0.5rem !important;
}

/* Subtitle field (h4.sow-cta-subtitle) — plain serif, parchment */
.panel-grid:has(.row-convention) .sow-cta-subtitle {
  font-family: Georgia, serif !important;
  font-size: 1rem !important;
  color: var(--krampus-parchment) !important;
  font-weight: normal !important;
  margin-bottom: 1rem !important;
}

/* Button link — red background, parchment text */
.panel-grid:has(.row-convention) .ow-button-base a {
  background-color: var(--krampus-red) !important;
  border-color: var(--krampus-red) !important;
  color: var(--krampus-parchment) !important;
}


/* ============================================================
   ROW 2: Krampusnacht CTA
   Deep red-black background.
   Title: Georgia bold, parchment.
   Subtitle: Georgia normal, parchment.
   Button: red, parchment text.
   ============================================================ */
.row-krampusnacht {
  background-color: var(--krampus-dark-red) !important;
}

.panel-grid:has(.row-krampusnacht) .sow-cta-base {
  padding: 1.5rem 2rem !important;
}

/* Title field — bold serif, parchment (no Gothic here) */
.panel-grid:has(.row-krampusnacht) .sow-cta-title {
  font-family: Georgia, serif !important;
  font-size: 1.3rem !important;
  color: var(--krampus-parchment) !important;
  font-weight: bold !important;
}

/* Subtitle field — normal serif, parchment */
.panel-grid:has(.row-krampusnacht) .sow-cta-subtitle {
  font-family: Georgia, serif !important;
  font-size: 1rem !important;
  color: var(--krampus-parchment) !important;
  font-weight: normal !important;
}

/* Button link — red, parchment text */
.panel-grid:has(.row-krampusnacht) .ow-button-base a {
  background-color: var(--krampus-red) !important;
  border-color: var(--krampus-red) !important;
  color: var(--krampus-parchment) !important;
}


/* ============================================================
   ROW 3: Who is Krampus Teaser
   Transparent background — tan body color shows through.
   Two-column layout: left = SiteOrigin Image widget,
   right = SiteOrigin Editor widget with .krampus-teaser-text div.
   Text uses dark color for readability on tan background.
   ============================================================ */
.row-teaser {
  background-color: transparent !important;
}

/* Heading inside .krampus-teaser-text div in the editor widget */
.krampus-teaser-text h3 {
  font-family: 'UnifrakturCook', cursive;
  color: var(--krampus-red);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Body text — dark for legibility on tan background */
.krampus-teaser-text p {
  font-size: 1rem !important;
  color: var(--krampus-dark) !important;
  line-height: 1.7;
}

/* "Learn the Legend →" link */
.krampus-teaser-text a {
  color: var(--krampus-red) !important;
  font-weight: bold;
  text-decoration: none;
}

.krampus-teaser-text a:hover {
  color: var(--krampus-dark) !important;
}


/* ============================================================
   ROW 4: Photo Slider
   Transparent background — tan shows through.
   Heading: SiteOrigin Headline widget outputs h3.widget-title.
   The .verein-heading class is NOT applied by the widget —
   we target widget-title directly within the row context.
   ============================================================ */
.row-slider {
  background-color: transparent !important;
  padding: 1rem 0 !important;
}

/* SiteOrigin Headline widget outputs h3.widget-title — target directly */
.panel-grid:has(.row-slider) h3.widget-title {
  text-align: center !important;
  font-family: 'UnifrakturCook', cursive !important;
  color: var(--krampus-red) !important;
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
}


/* ============================================================
   ROW 5: YouTube Embed
   Dark background.
   Editor widget content wrapped in .youtube-wrap div.
   h3 inside uses Gothic italic for the "In which..." tagline.
   Responsive iframe via padding-bottom trick in widget HTML.
   ============================================================ */
.row-youtube {
  background-color: var(--krampus-dark) !important;
  padding: 2rem !important;
}

/* Constrains embed width and centers it */
.youtube-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* "In which Krampus descend upon a bar..." tagline */
.youtube-wrap h3 {
  font-family: 'UnifrakturCook', cursive;
  color: var(--krampus-parchment);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-style: italic;
}


/* ============================================================
   ROW 6: Upcoming Events (native GASF-Events [gasf_events view=list])
   Dark background. The Modern Events Calendar plugin this originally
   targeted was removed 2026-07-04; the widget now renders the native
   plugin's list view (.gasf-list / .gasf-row__* classes), which this
   block re-styles for the dark row: parchment text, red date badge,
   Gothic heading (short — "Upcoming Events" — blackletter is fine here).
   ============================================================ */
.row-events {
  background-color: var(--krampus-dark) !important;
  padding: 2rem !important;
}

.row-events .upcoming-events h3 {
  font-family: 'UnifrakturCook', cursive;
  color: var(--krampus-red) !important;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Event rows — parchment for visibility on dark bg */
.row-events .gasf-list__date,
.row-events .gasf-row__title,
.row-events .gasf-row__meta {
  color: var(--krampus-parchment) !important;
}

/* "No upcoming events" fallback text — same tie-with-theme-default risk as
   any other bare <p> in a dark row (see .join-cta p above). */
.row-events .gasf-empty {
  color: var(--krampus-parchment) !important;
}

/* Status badge (cancelled/postponed, if any) — red background */
.row-events .gasf-status {
  background-color: var(--krampus-red) !important;
  color: var(--krampus-parchment) !important;
}

/* "See the full schedule" link below the list */
.row-events .upcoming-events__more {
  text-align: center;
  margin-top: 1rem;
}

.row-events .upcoming-events__more a {
  color: var(--krampus-red-light) !important;
  font-weight: bold;
}


/* ============================================================
   ROW 7: Join / Follow CTA
   Dark background with red top border.
   Editor widget content wrapped in .join-cta div.
   Gothic heading, parchment body text, red links.
   ============================================================ */
.row-join {
  background-color: var(--krampus-dark) !important;
  border-top: 3px solid var(--krampus-red);
}

/* Centers all content in the join section */
.join-cta {
  text-align: center;
  padding: 2rem;
}

/* "Run With Us" heading — large Gothic, red */
.join-cta h2 {
  font-family: 'UnifrakturCook', cursive;
  color: var(--krampus-red);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

/* Body text — parchment. !important: ties in specificity with the theme
   Customizer's dynamic "body.popularfx-body p" rule and was losing that tie
   (rendered as the global dark-ink body color on this near-black row). */
.join-cta p {
  color: var(--krampus-parchment) !important;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Facebook / Contact Us links — lightened from --krampus-red (crimson) to
   --krampus-red-light. Crimson-on-#121212 is under WCAG AA contrast for
   normal text; the lighter red keeps the brand color but reads clearly. */
.join-cta a {
  color: var(--krampus-red-light) !important;
  font-weight: bold;
}

.krampus-parchment-text {
  color: var(--krampus-parchment) !important;
  opacity: 0.95; /* boosts readability without looking neon */
}


/* ==========================================================
   KRAMPUSNACHT BOXES EQUAL HEIGHT (page 97, row pg-97-0).
   Stretch the two top cells to equal height and let the text
   card fill to match the (taller) tickets image. 2026-08-28 */
#pg-97-0.panel-no-style { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch !important; }
#pgc-97-0-0 > .so-panel,
#pgc-97-0-0 .so-widget-sow-editor,
#pgc-97-0-0 .siteorigin-widget-tinymce.textwidget { height: 100%; }
#pgc-97-0-0 .krampus-section { height: 100%; box-sizing: border-box; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center; }
#pgc-97-0-1 > .so-panel,
#pgc-97-0-1 .so-widget-sow-image,
#pgc-97-0-1 .sow-image-container { height: 100%; }
#pgc-97-0-1 .sow-image-container { display: flex; align-items: center; justify-content: center; }