/* ==========================================================================
   Nutcracker Promo Modal - Czech Opera & TicketsOnline
   Rich festive & operatic aesthetic with responsive layout
   ========================================================================== */

/* Prevent page scrolling while modal is open */
body.nutcracker-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Dimmed backdrop with glassmorphism blur */
.nutcracker-promo-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 4, 11, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
}

.nutcracker-promo-backdrop.nutcracker-visible {
    opacity: 1;
    visibility: visible;
}

/* Modal card dialog container */
.nutcracker-promo-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    background: linear-gradient(165deg, #2a071a 0%, #17040e 45%, #240616 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 
                0 0 45px rgba(212, 175, 55, 0.18),
                inset 0 1px 1px rgba(255, 230, 160, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(24px);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f7eef3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.nutcracker-promo-backdrop.nutcracker-visible .nutcracker-promo-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dismiss / Close button in top-right corner */
.nutcracker-promo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(18, 4, 13, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f5e6eb;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nutcracker-promo-close:hover,
.nutcracker-promo-close:focus {
    background: #d4af37;
    color: #17040e;
    border-color: #f8e5a7;
    transform: rotate(90deg) scale(1.06);
    outline: none;
}

/* Hero Banner Image Section */
.nutcracker-promo-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #12030b;
    flex-shrink: 0;
}

.nutcracker-promo-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.nutcracker-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nutcracker-promo-media:hover .nutcracker-promo-img {
    transform: scale(1.04);
}

/* Gradient overlay so the image blends smoothly with the modal body */
.nutcracker-promo-media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(42, 7, 26, 0) 0%, rgba(42, 7, 26, 0.95) 100%);
    pointer-events: none;
}

/* Floating holiday tradition badge over banner */
.nutcracker-promo-badge {
    position: absolute;
    bottom: 14px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(23, 4, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #f5d77f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Content Body */
.nutcracker-promo-body {
    padding: 22px 26px 24px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

/* Custom scrollbar for small screens */
.nutcracker-promo-body::-webkit-scrollbar {
    width: 6px;
}
.nutcracker-promo-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

/* Header & Title */
.nutcracker-promo-header {
    margin: 0;
}

.nutcracker-promo-title {
    font-family: 'Oswald', 'Fjalla One', Impact, sans-serif;
    font-size: 25px;
    line-height: 1.25;
    margin: 0 0 4px 0;
    color: #fff9e6;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.nutcracker-promo-title span {
    color: #d4af37;
    background: linear-gradient(135deg, #fae9a8 0%, #d4af37 60%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nutcracker-promo-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #d6b8c7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

/* Story Text Quote Block */
.nutcracker-promo-story {
    margin: 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.035);
    border-left: 3px solid #d4af37;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #ebdce4;
    font-style: italic;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.nutcracker-promo-story strong {
    color: #fff4d0;
    font-weight: 600;
    font-style: normal;
}

/* Scarcity / High Demand Callout */
.nutcracker-promo-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #f7e39a;
    line-height: 1.4;
}

.nutcracker-promo-alert-icon {
    font-size: 15px;
    flex-shrink: 0;
}

/* Action Area */
.nutcracker-promo-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}

/* Primary CTA Button */
.nutcracker-promo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fae395 0%, #d4af37 50%, #b8860b 100%);
    color: #17040e !important;
    text-decoration: none !important;
    font-family: 'Oswald', 'Fjalla One', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.nutcracker-promo-cta:hover,
.nutcracker-promo-cta:focus {
    background: linear-gradient(135deg, #ffffff 0%, #fed868 40%, #d4af37 100%);
    box-shadow: 0 8px 26px rgba(212, 175, 55, 0.55),
                0 0 15px rgba(255, 230, 160, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.nutcracker-promo-cta-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 18px;
    line-height: 1;
}

.nutcracker-promo-cta:hover .nutcracker-promo-cta-arrow {
    transform: translateX(5px);
}

/* Secondary Dismiss Link */
.nutcracker-promo-dismiss {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #d6b8c7 !important;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    padding: 8px 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    margin: 2px auto 0 auto;
    display: inline-block;
    border-radius: 6px;
}

.nutcracker-promo-dismiss:hover,
.nutcracker-promo-dismiss:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fae395 !important; /* Crisp champagne gold - always visible on dark card */
    text-decoration: underline;
    outline: none;
    transform: translateY(-1px);
}

.nutcracker-promo-dismiss:active {
    transform: translateY(0);
    color: #ffffff !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 600px) {
    .nutcracker-promo-backdrop {
        padding: 10px;
    }

    .nutcracker-promo-card {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .nutcracker-promo-media {
        height: 160px;
    }

    .nutcracker-promo-body {
        padding: 16px 18px 18px 18px;
        gap: 12px;
    }

    .nutcracker-promo-title {
        font-size: 20px;
    }

    .nutcracker-promo-story {
        font-size: 13px;
        padding: 10px 12px;
        line-height: 1.5;
    }

    .nutcracker-promo-cta {
        padding: 11px 18px;
        font-size: 14.5px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .nutcracker-promo-card {
        flex-direction: row;
        max-width: 680px;
    }

    .nutcracker-promo-media {
        width: 40%;
        height: auto;
    }

    .nutcracker-promo-body {
        width: 60%;
        padding: 14px 18px;
        overflow-y: auto;
    }
}
