/* css/holiday-promo.css
 * Seasonal Holiday Campaign Styling:
 * - Black Friday (Gold / Obsidian)
 * - Cyber Monday (Electric Cyan / Violet)
 * - 12 Days of Christmas Teaser & Live Calendar (Festive Crimson / Emerald / Frost Gold)
 */

.holiday-hub-section {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 24px auto 36px;
    padding: 0 20px;
    box-sizing: border-box;
}

.holiday-hub-section--compact {
    margin: 0 auto 24px;
    padding: 0;
}

.holiday-card {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 20px;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(18, 18, 24, 0.96) 0%, rgba(12, 12, 16, 0.98) 100%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
    color: #f8fafc;
}

/* Phase-specific palettes */
.holiday-card[data-phase="black_friday"] {
    border-color: rgba(245, 158, 11, 0.45);
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 12% 85%, rgba(239, 68, 68, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #111115 0%, #09090b 100%);
}

.holiday-card[data-phase="cyber_monday"] {
    border-color: rgba(56, 189, 248, 0.5);
    background:
        radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 12% 85%, rgba(168, 85, 247, 0.18) 0%, transparent 48%),
        linear-gradient(135deg, #0d1324 0%, #090b14 100%);
}

.holiday-card[data-phase="xmas_teaser"],
.holiday-card[data-phase="twelve_days_christmas"] {
    border-color: rgba(34, 197, 94, 0.45);
    background:
        radial-gradient(circle at 90% 15%, rgba(220, 38, 38, 0.2) 0%, transparent 48%),
        radial-gradient(circle at 10% 85%, rgba(22, 163, 74, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0c1813 0%, #140d11 100%);
}

.holiday-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.holiday-copy-col {
    flex: 1 1 440px;
    min-width: 0;
}

.holiday-phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.holiday-card[data-phase="cyber_monday"] .holiday-phase-pill {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.holiday-card[data-phase="xmas_teaser"] .holiday-phase-pill,
.holiday-card[data-phase="twelve_days_christmas"] .holiday-phase-pill {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(74, 222, 128, 0.45);
    color: #86efac;
}

.holiday-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .holiday-live-dot {
        animation: holidayDotPulse 2.2s ease-in-out infinite;
    }
}

@keyframes holidayDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.25);
    }
}

.holiday-heading {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin: 0 0 8px;
    color: #ffffff;
}

.holiday-subtext {
    margin: 0 0 16px;
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 66ch;
}

/* Promo Code & Action Bar */
.holiday-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.holiday-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    padding: 6px 12px;
}

.holiday-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.holiday-copy-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.holiday-copy-btn {
    min-inline-size: 44px;
    min-block-size: 38px;
    padding: 8px 16px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: #09090b;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.holiday-copy-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.holiday-copy-btn:focus-visible,
.holiday-cta-link:focus-visible,
.holiday-calendar-toggle:focus-visible,
.holiday-day-tile:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

.holiday-copy-status {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.holiday-copy-status.is-visible {
    opacity: 1;
}

.holiday-copy-status.is-error {
    color: #f87171;
}

.holiday-cta-link {
    min-block-size: 38px;
    padding: 8px 16px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.holiday-cta-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.34);
}

/* Countdown Box */
.holiday-timer-col {
    flex: 0 1 320px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.holiday-timer-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.holiday-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.holiday-timer-unit {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
}

.holiday-timer-num {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.holiday-timer-cap {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: 3px;
}

.holiday-next-note {
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

/* Roadmap Strip */
.holiday-roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holiday-stage-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.holiday-stage-pill.is-current {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
}

.holiday-card[data-phase="cyber_monday"] .holiday-stage-pill.is-current {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
}

.holiday-card[data-phase="xmas_teaser"] .holiday-stage-pill.is-current,
.holiday-card[data-phase="twelve_days_christmas"] .holiday-stage-pill.is-current {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.45);
}

.holiday-stage-pill.is-done {
    opacity: 0.58;
}

.holiday-stage-status {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.holiday-stage-pill.is-current .holiday-stage-status {
    color: #fde68a;
}

.holiday-card[data-phase="cyber_monday"] .holiday-stage-pill.is-current .holiday-stage-status {
    color: #7dd3fc;
}

.holiday-card[data-phase="xmas_teaser"] .holiday-stage-pill.is-current .holiday-stage-status,
.holiday-card[data-phase="twelve_days_christmas"] .holiday-stage-pill.is-current .holiday-stage-status {
    color: #86efac;
}

.holiday-stage-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.holiday-stage-meta {
    font-size: 0.78rem;
    color: #cbd5e1;
}

/* 12 Days of Christmas Advent Calendar Grid */
.holiday-calendar-details {
    margin-top: 16px;
}

.holiday-calendar-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 700;
    min-block-size: 40px;
    max-width: 100%;
    touch-action: manipulation;
}

.holiday-calendar-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.holiday-calendar-details[open] .holiday-calendar-chevron {
    transform: rotate(180deg);
}

.holiday-calendar-toggle::-webkit-details-marker {
    display: none;
}

.holiday-carousel-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}

.holiday-carousel-controls {
    display: none;
}

.holiday-carousel-btn {
    min-inline-size: 38px;
    min-block-size: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.holiday-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.holiday-carousel-btn:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

.holiday-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.holiday-day-tile {
    text-align: left;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.holiday-day-tile.is-today {
    border-color: rgba(74, 222, 128, 0.7);
    background: rgba(22, 163, 74, 0.16);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.18);
}

.holiday-day-tile.is-unlocked:not(.is-today) {
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.06);
}

.holiday-day-tile.is-locked {
    opacity: 0.82;
}

.holiday-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.holiday-day-badge {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.holiday-day-tile.is-today .holiday-day-badge {
    background: #16a34a;
    color: #ffffff;
}

.holiday-day-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.holiday-day-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Compact Inline Strip (Cart / Checkout / Sub-pages) */
.holiday-inline-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f8fafc;
}

.holiday-inline-strip[data-phase="cyber_monday"] {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.38);
}

.holiday-inline-strip[data-phase="xmas_teaser"],
.holiday-inline-strip[data-phase="twelve_days_christmas"] {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.38);
}

.holiday-inline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.holiday-inline-text strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.holiday-inline-text span {
    color: #cbd5e1;
}

.holiday-inline-apply-btn {
    min-block-size: 34px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: #09090b;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.holiday-inline-apply-btn:hover {
    background: #e2e8f0;
}

/* Hero Event Pill on index.html */
.holiday-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.holiday-hero-pill:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, 0.24);
}

.holiday-hero-pill[data-phase="cyber_monday"] {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.48);
    color: #bae6fd;
}

.holiday-hero-pill[data-phase="xmas_teaser"],
.holiday-hero-pill[data-phase="twelve_days_christmas"] {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.48);
    color: #bbf7d0;
}

/* Light theme (body[data-theme="white"]) legibility preservation */
body[data-theme="white"] .holiday-inline-strip {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #0f172a;
}

body[data-theme="white"] .holiday-inline-strip[data-phase="cyber_monday"] {
    background: #f0f9ff;
    border-color: #0284c7;
}

body[data-theme="white"] .holiday-inline-strip[data-phase="xmas_teaser"],
body[data-theme="white"] .holiday-inline-strip[data-phase="twelve_days_christmas"] {
    background: #f0fdf4;
    border-color: #16a34a;
}

body[data-theme="white"] .holiday-inline-text strong {
    color: #0f172a;
}

body[data-theme="white"] .holiday-inline-text span {
    color: #334155;
}

body[data-theme="white"] .holiday-inline-apply-btn {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

@media (max-width: 767px) {
    .holiday-hub-section {
        margin: 16px auto;
        padding: 0 14px;
    }

    .holiday-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .holiday-card-top {
        gap: 14px;
    }

    .holiday-heading {
        font-size: clamp(1.22rem, 5.2vw, 1.55rem);
        line-height: 1.2;
    }

    .holiday-subtext {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .holiday-action-row {
        gap: 8px;
    }

    .holiday-copy-btn,
    .holiday-cta-link {
        width: 100%;
        justify-content: center;
    }

    .holiday-code-chip {
        width: 100%;
        justify-content: space-between;
    }

    .holiday-timer-col {
        flex: 1 1 100%;
        min-width: 0;
        padding: 10px 12px;
        gap: 6px;
    }

    .holiday-timer-unit {
        padding: 6px 2px;
    }

    .holiday-timer-num {
        font-size: 1.05rem;
    }

    .holiday-next-note {
        font-size: 0.76rem;
        padding-top: 6px;
    }

    .holiday-calendar-toggle {
        width: 100%;
        font-size: 0.82rem;
        padding: 10px 12px;
        text-align: left;
    }

    .holiday-roadmap,
    .holiday-days-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        gap: 10px;
        padding-bottom: 8px;
        margin-top: 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .holiday-roadmap {
        margin-top: 14px;
        padding-top: 12px;
    }

    .holiday-roadmap::-webkit-scrollbar,
    .holiday-days-grid::-webkit-scrollbar {
        display: none;
    }

    .holiday-stage-pill {
        flex: 0 0 min(230px, 74%);
        scroll-snap-align: start;
        padding: 10px 12px;
    }

    .holiday-day-tile {
        flex: 0 0 min(244px, 78%);
        scroll-snap-align: start;
        padding: 12px;
    }

    .holiday-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 6px;
    }

    .holiday-carousel-hint {
        font-size: 0.75rem;
        color: #94a3b8;
    }

    .holiday-carousel-btns {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .holiday-roadmap,
    .holiday-days-grid {
        scroll-behavior: smooth;
    }
}
