/* ==========================================================================
   OCTDS - Event Specific Stylesheet (November / Fall Theme)
   Note: This file must be imported AFTER styles.css to properly inherit 
   and selectively override core layout values.
   ========================================================================== */

/* Typography & Inheritance Refinement */
.poster-view {
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

/* --- THEMATIC OVERRIDES: Fall Colors & Typography --- */

/* Event-specific Headline Accents (Matching Poster Font Style) */
.header-main h1 {
    color: #b85d18; /* Rich Autumn Amber / Deep Orange */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', 'Times New Roman', serif; /* Closer to the elegant script/serif look */
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-main h3 {
    color: #4a3525; /* Dark Brown */
    font-family: var(--font-stack);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Event-specific Headline Subtitle Decorators */
.header-main h3::before {
    content: "🍂 ";
}

.header-main h3::after {
    content: " 🍂";
}

/* November Date Badge styling (Dark Yellow / Grey / Brown Palette) */
.date-badge {
    color: #ffffff;
    background-color: #4a3525; /* Deep Autumn Brown */
    border: 3px double #d4a373; /* Dark Yellow / Warm Wheat Border */
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Artist Band Banner Accentuation */
.band-title-banner {
    background-color: #5c4033; /* Dark Brown */
    color: #e9c46a; /* Dark Yellow / Gold Font color */
    padding: 10px 25px;
    border-radius: 2px;
    box-shadow: 3px 3px 0px #b85d18; /* Warm Orange offset shadow */
    font-family: 'Georgia', serif;
    font-style: italic;
}

.band-title-banner-name {
    background-color: #5c4033; /* Dark Brown */
    color: #e9c46a; /* Dark Yellow / Gold Font color */
    padding: 10px 25px;
    border-radius: 2px;
    box-shadow: 3px 3px 0px #b85d18; /* Warm Orange offset shadow */
    font-family: 'Georgia', serif;
    font-size: larger;
    font-style: italic;
}

/* Image styling adjustments */
.display-img {
    border: 3px solid #5c4033;
    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: #fdf6ec; /* Soft warm cream/wheat tint */
    border-left: 5px solid #b85d18; /* Warm Orange highlight bar */
    border-radius: 4px;
}

.details-box p strong {
    color: #b85d18;
}

/* Event Footer Separators */
.footer-info {
    border-top: 2px solid #d4a373;
    color: var(--color-dark-brown);
}

/* ==========================================================================
   OCTDS - Interactive Autumn Visual Layer Extensions (No JavaScript)
   ========================================================================== */

/* --- 1. Hover-Triggered Floating Pie Elements --- */
.caller-block,
.band-block {
    position: relative;
    overflow: visible;
}

.caller-block::after,
.band-block::after {
    content: "🥧"; /* Replaced ghosts with pies */
    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;
}

@media (hover: hover) {
    .caller-block:hover::after,
    .band-block:hover::after {
        opacity: 1;
        transform: scale(1) translateY(-15px);
        animation: pieFloat 2s ease-in-out infinite alternate;
    }
}

@keyframes pieFloat {
    0% {
        transform: scale(1) translateY(-15px);
    }
    100% {
        transform: scale(1) translateY(-22px);
    }
}

/* --- 2. Swipe-Triggered Falling Autumn Leaves --- */
.details-box {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.details-box::before {
    content: "🍁"; /* Replaced bats with autumn leaves */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.1s linear;
}

.details-box:active::before {
    opacity: 1;
    animation: leafDrift 1s ease-in-out forwards;
}

@keyframes leafDrift {
    0% {
        transform: translate(0, 0) scale(0.6) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(80px, 60px) scale(1.1) rotate(45deg);
    }
    100% {
        transform: translate(180px, 140px) scale(0.8) rotate(90deg);
        opacity: 0;
    }
}

/* --- 3. Background Turkey Layer Cross-Over (100% Opaque) --- */
/* ==========================================================================
   OCTDS - Dedicated Turkey Animation Layer Area
   ========================================================================== */
/* ==========================================================================
   OCTDS - Left-to-Right Turkey Walker Animation Area
   ========================================================================== */

.turkey-footer-area {
    position: relative;
    width: 100%;
    height: 100px; /* Fixed height container just above the footer */
    background-color: transparent;
    overflow: hidden; /* Keeps the turkey contained inside this strip */
    margin-top: 0.25rem;
}

.turkey-walker {
    position: absolute;
    bottom: 5px;
    left: -80px; /* Starts hidden off the left edge */
    font-size: 3.5rem;
    opacity: 1; /* 100% Opaque */
    z-index: 2;
    pointer-events: none;
    animation: turkeyRunAcross 18s linear infinite; /* Adjust speed by changing seconds */
}

/* Loops straight across from left to right, resetting instantly when off-screen */
@keyframes turkeyRunAcross {
    0% {
        left: -80px;
        transform: scaleX(-1); /* Facing forward to the right */
    }
    100% {
        left: 100%; /* Moves completely past the right edge */
        transform: scaleX(-1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .turkey-walker {
        animation: none;
        left: 20px; /* Static position if motion is disabled */
    }
}


/* ==========================================================================
   OCTDS - Fluid Component Layouts (Universal Flex-Wrap Pattern)
   ========================================================================== */

.artists-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.caller-block {
    flex: 1 1 250px;
    text-align: center;
}

.band-block {
    flex: 2 1 450px;
    text-align: center;
}

.date-badge {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #4a3525;
    border: 3px double #d4a373;
    padding: 10px 20px;
    width: auto;
    display: table;
}

/* ==========================================================================
   OCTDS - Text Centering Styles
   ========================================================================== */

.event-item,
.event-meta,
.header-main,
.venue-info,
.details-box {
    text-align: center;
}

.venue-info p {
    margin-left: auto;
    margin-right: auto;
}

.caller-block p,
.band-block p {
    text-align: center;
}


/* ==========================================================================
   🎯 EXACT PIXEL LAYER ENGINE OVERRIDES
   ========================================================================== */

/* --- 1. BASELINE MOBILE VIEW: Less than 400px wide (< 400px) --- */
.event-item {
    display: flex;
    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;
}

.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;
        padding: 2rem;
    }

    .pdf_view {
        display: none !important;
    }

    .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) {
    .event-item {
        display: none !important;
    }

    .pdf_view {
        display: block !important;
        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-badge .date-full {
        display: inline !important;
    }

    .date-badge .date-medium {
        display: none !important;
    }

    .date-badge .date-short {
        display: none !important;
    }
}