/* ==========================================================================
   OCTDS - Event Specific Stylesheet (Halloween Theme Extension)
   Note: This file must be imported AFTER styles.css to properly inherit 
   and selectively override core layout values.
   ========================================================================== */

/* Typography & Inheritance Refinement */
.poster-view {
    /* Seamlessly inherits var(--font-stack) from main styles.css */
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

/* --- THEMATIC OVERRIDES: Colors & Special Effects --- */

/* Event-specific Headline Accents */
.header-main h1 {
    color: #d35400;
    /* Festive Halloween Orange */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    font-family: 'Impact', 'Arial Black', var(--font-stack);
    /* Distinct bold holiday flair falling back cleanly to main stack */
    letter-spacing: 2px;
}

/* Event-specific Headline Subtitle */
.header-main h3::before {
    content: "🎃 ";
    /* Visual Anchor */
}

.header-main h3::after {
    content: " 🎃";
}

/* October Date Badge styling */
.date-badge {
    color: #ffffff;
    background-color: #000000;
    /* Solid Black Background */
    border: 3px double #d35400;
    /* Double Orange Border */
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Artist Band Banner Accentuation */
.band-title-banner {
    background-color: #000000;
    /* Contrast Dark Background */
    color: #f39c12;
    /* Vibrant Halloween Gold Font color */
    padding: 10px 25px;
    border-radius: 2px;
    box-shadow: 3px 3px 0px #d35400;
    /* Distinct offset drop shadow */
}

/* Image styling adjustments */
.display-img {
    border: 3px solid #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 900px;
    height: auto;
}

/* Logistics and Pricing Segment Callouts */
.details-box {
    background-color: #fbeee6;
    /* Soft warm pumpkin cream tint tint */
    border-left: 5px solid #d35400;
    /* Highlighting bar matching layout styling */
    border-radius: 4px;
}

.details-box p strong {
    color: #d35400;
}

/* Event Footer Separators */
.footer-info {
    border-top: 2px solid #000000;
    color: var(--color-dark-brown);
}

/* ==========================================================================
   OCTDS - Interactive Halloween Visual Layer Extensions (No JavaScript)
   ========================================================================== */

/* --- 1. Hover-Triggered Floating Ghosts --- */
.caller-block,
.band-block {
    position: relative;
    overflow: visible;
    /* Allows the ghost to emerge beyond borders */
}

.caller-block::after,
.band-block::after {
    content: "👻";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5) translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    /* Prevents the icon from interrupting clicks/taps */
}

@media (hover: hover) {

    .caller-block:hover::after,
    .band-block:hover::after {
        opacity: 1;
        transform: scale(1) translateY(-15px);
        animation: ghostFloat 2s ease-in-out infinite alternate;
    }
}

@keyframes ghostFloat {
    0% {
        transform: scale(1) translateY(-15px);
    }

    100% {
        transform: scale(1) translateY(-25px);
    }
}

/* --- 2. Swipe-Triggered Swooping Bats --- */
.details-box {
    position: relative;
    overflow: hidden;
    /* Contains the bats within the block boundaries */
    user-select: none;
    /* Prevents accidental blue text highlighting while swiping */
}

.details-box::before {
    content: "🦇";
    position: absolute;
    bottom: -40px;
    left: -40px;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.1s linear;
}

.details-box:active::before {
    opacity: 1;
    animation: batSwoop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes batSwoop {
    0% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }

    50% {
        transform: translate(150px, -60px) scale(1.2) rotate(-15deg);
    }

    100% {
        transform: translate(400px, -150px) scale(0.5) rotate(-30deg);
        opacity: 0;
    }
}

/* --- 3. Background Scarecrow Layer Cross-Over --- */
.poster-view::before {
    content: "👨‍🌾";
    position: absolute;
    bottom: 80px;
    left: -60px;
    font-size: 3.5rem;
    opacity: 0.15;
    /* Soft transparency keeps the background readable and functional */
    z-index: 1;
    /* Sits completely behind the content text layers */
    pointer-events: none;
    animation: scarecrowWalk 45s linear infinite;
}

@keyframes scarecrowWalk {
    0% {
        left: -60px;
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        left: 100%;
        transform: rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .poster-view::before {
        animation: none;
        display: none;
    }
}

/* ==========================================================================
   OCTDS - Fluid Component Layouts (Universal Flex-Wrap Pattern)
   ========================================================================== */

/* 👥 Artists Flex Wrapper Container */
.artists-section {
    display: flex;
    flex-wrap: wrap;
    /* ⚡ Acts like a float: wraps items automatically when tight */
    gap: 2rem;
    /* Standard clean grid padding spacing */
    width: 100%;
    margin: 2rem 0;
}

/* Caller Component Column Element */
.caller-block {
    flex: 1 1 250px;
    /* Grow, shrink, and break into a stack if view falls below 250px */
    text-align: center;
}

/* Band Component Column Element */
.band-block {
    flex: 2 1 450px;
    /* Allocates wider layout space for the band photo layout */
    text-align: center;
}

/* Fluid Date Badge Placement Element */
.date-badge {
    text-align: center;
    /* Horizontally centers the inner text/emoji strings */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    /* Keeps clean breathing separation beneath the badge */
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #000000;
    border: 3px double #d35400;
    padding: 10px 20px;
    width: auto;
    display: table;
    /* Shrinks container box wrap directly around the active text size */
}

/* ==========================================================================
   OCTDS - Text Centering Styles
   ========================================================================== */

/* 🎯 Global Text Centering Rules for Event Meta Blocks */
.event-item,
.event-meta,
.header-main,
.venue-info,
.details-box {
    text-align: center;
    /* Horizontally aligns all standard text structures to the center */
}

.venue-info p {
    margin-left: auto;
    margin-right: auto;
}

.caller-block p,
.band-block p {
    text-align: center;
}


/* ==========================================================================
   🎯 BRAND NEW EXACT PIXEL LAYER ENGINE OVERRIDES
   ========================================================================== */

/* --- 1. BASELINE MOBILE VIEW: Less than 400px wide (< 400px) --- */
.event-item {
    display: flex;
    /* Show broken up items */
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    margin: 0 auto 3rem auto;
}

.caller-block,
.band-block {
    background-color: var(--color-bg-alt);
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.pdf_view {
    display: none !important;
    /* Hide image file poster cleanly */
}

/* Base Date formats: Show only small text format */
.date-badge .date-full {
    display: none !important;
}

.date-badge .date-medium {
    display: none !important;
}

.date-badge .date-short {
    display: inline !important;
}


/* --- 2. TABLET / MEDIUM PORTRAIT VIEW: 400px to 799px wide --- */
@media (min-width: 400px) and (max-width: 799px) {
    .event-item {
        display: flex;
        /* Keep pieces layout active */
        padding: 2rem;
    }

    .pdf_view {
        display: none !important;
        /* Keep image file hidden */
    }

    /* Date format switch: Show medium format only */
    .date-badge .date-full {
        display: none !important;
    }

    .date-badge .date-medium {
        display: inline !important;
    }

    .date-badge .date-short {
        display: none !important;
    }
}


/* --- 3. WIDESCREEN DESKTOP VIEW: 800px wide and up (>= 800px) --- */
@media (min-width: 800px) {

    /* Hide all the piecemeal text elements completely */
    .event-item {
        display: none !important;
    }

    /* Reveal full image view and process block horizontal centering */
    .pdf_view {
        display: block !important;
        /* Block declaration enables margin engine centering */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 900px;
        height: auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--color-border);
    }

    /* Date format switch: Show full format text */
    .date-badge .date-full {
        display: inline !important;
    }

    .date-badge .date-medium {
        display: none !important;
    }

    .date-badge .date-short {
        display: none !important;
    }
}