/* General Carousel Styling */
.carousel-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    background-color: #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
}

/* Carousel Slide Styling */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

/* Banner Styling */
.carousel-banner {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    text-align: left;
    color: #fff !important;
    max-height: 40%;
}

.carousel-title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 5px 0;
    color: #fff !important;
}

.carousel-title a {
    color: inherit;
    text-decoration: none;
}

.carousel-title a:hover {
    text-decoration: underline;
}

.carousel-title-kind {
    display: inline-flex;
    margin-right: 0.4rem;
    vertical-align: -0.08em;
}

.carousel-title .eventive-event-kind {
    background: rgba(255, 255, 255, 0.9);
    color: #172033;
}

.carousel-title .eventive-event-kind--virtual {
    color: #0e7490;
}

.carousel-time,
.carousel-description {
    font-size: .9em;
    margin: 5px 0;
    color: #fff !important;
}

.carousel-description p{
    color: #fff;
}

.carousel-tickets {
    margin-top: 10px;
}

.carousel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 0.5rem;
}

.carousel-actions:empty {
    display: none;
}

.carousel-actions .eventive-wishlist-ticket-wrap {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.carousel-manual-button {
    display: inline-block;
}

/* Arrows Styling */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dots Navigation Styling (modernized) */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 9999px; /* pill */
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    z-index: 2;
}

.carousel-dot {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
    opacity: 0.9;
}

.carousel-dot:hover { background-color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.9); }
.carousel-dot:active { transform: scale(0.92); }
.carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.carousel-dot.active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.15);
    opacity: 1;
}

@media (max-width: 480px) {
    .carousel-dots { gap: 8px; padding: 5px 8px; bottom: 10px; }
    .carousel-dot { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-dot { transition: none; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-slider {
        height: 300px;
    }

    .carousel-title {
        font-size: 1.5em;
    }

    .carousel-time,
    .carousel-description {
        font-size: 0.9em;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slider {
        height: 250px;
    }

    .carousel-title {
        font-size: 1.3em;
    }

    .carousel-time,
    .carousel-description {
        font-size: 0.8em;
    }

    .carousel-arrow {
        width: 25px;
        height: 25px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}
/* ===== Elementor-safe + JS-aligned additions ===== */
.event-carousel-container { width: 100%; position: relative; }

/* JS uses .carousel-ticket-button (not .carousel-tickets) */
.carousel-ticket-button {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.carousel-event-kind {
    display: inline-flex;
    margin: 0.25rem 0 0;
}

.carousel-event-kind .eventive-event-kind {
    background: rgba(255, 255, 255, 0.9);
    color: #172033;
}

.carousel-event-kind .eventive-event-kind--virtual {
    color: #0e7490;
}

/* Keep z-index stacking sane even inside transformed Elementor sections */
.carousel-slider { isolation: isolate; }

/* Smoother GPU translation for slide transitions */
.carousel-slide { will-change: transform; backface-visibility: hidden; }

/* Optional: hide dots when only one slide */
.carousel-dots:empty { display: none; }

/* Prevent accidental full-width grid span in some themes */
.carousel-slider > * { grid-column: auto; }

/* ===== Coming Soon View ===== */
.eventive-carousel--coming-soon {
    width: 100%;
}

.eventive-coming-soon-carousel {
    width: 100%;
    overflow: hidden;
}

.eventive-coming-soon-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.eventive-coming-soon-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}

.eventive-coming-soon-carousel__panel {
    box-sizing: border-box;
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: repeat(var(--eventive-coming-soon-columns, 3), minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 2rem);
    width: 100%;
}

.eventive-coming-soon-carousel__item {
    min-width: 0;
    text-align: center;
}

.eventive-coming-soon-carousel__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.eventive-coming-soon-carousel__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
    background: #e6e6e6;
}

.eventive-coming-soon-carousel[data-image-type="poster"] .eventive-coming-soon-carousel__media {
    aspect-ratio: 2 / 3;
}

.eventive-coming-soon-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eventive-coming-soon-carousel__title {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eventive-coming-soon-carousel__title-link {
    color: inherit;
    text-decoration: none;
}

.eventive-coming-soon-carousel__title-link:hover {
    text-decoration: underline;
}

.eventive-coming-soon-carousel__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.eventive-coming-soon-carousel__arrow {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.eventive-coming-soon-carousel__arrow:hover {
    background: #333;
}

.eventive-coming-soon-carousel__arrow:disabled {
    cursor: default;
    opacity: 0.4;
}

.eventive-coming-soon-carousel[data-panel-size="4"] .eventive-coming-soon-carousel__title {
    font-size: 0.95rem;
}

.eventive-coming-soon-carousel[data-panel-size="5"] .eventive-coming-soon-carousel__title,
.eventive-coming-soon-carousel[data-panel-size="6"] .eventive-coming-soon-carousel__title {
    font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
    .eventive-coming-soon-carousel__track {
        transition: none;
    }
}

/* ===== Display / TV Mode (mode="display" or "tv") ===== */
.eventive-carousel--display .carousel-slider--display {
    height: 100vh;                 /* Fill the screen on TV pages */
    max-height: 1080px;            /* Optimized for 1920x1080 */
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

/* Make slides feel more like big, static hero panels */
.eventive-carousel--display .carousel-slide {
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center center;
}

.eventive-carousel--display .carousel-banner {
    max-height: none;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 70rem;
    margin: 0 auto;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.eventive-carousel--display .carousel-title {
    font-size: clamp(2.8rem, 3.8vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 0.35em;
}

.eventive-carousel--display .carousel-time,
.eventive-carousel--display .carousel-description {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Optional text wrapper for future use */
.eventive-carousel--display .carousel-banner-text {
    max-width: 60%;
}

/* QR block: centered below info */
.eventive-carousel--display .carousel-qr {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
}

.eventive-carousel--display .carousel-qr-image,
.eventive-carousel--display .carousel-qr-target {
    display: block;
    width: min(36vh, 520px);
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.eventive-carousel--display .carousel-qr--missing {
    color: #fff;
    text-align: right;
    max-width: 18rem;
    opacity: 0.8;
    font-size: 1rem;
}

.eventive-carousel--display .carousel-qr-message {
    margin: 0;
}

/* Make nav arrows/dots a bit subtler for unattended displays */
.eventive-carousel--display .carousel-arrow {
    background-color: rgba(0, 0, 0, 0.4);
}

.eventive-carousel--display .carousel-dots {
    bottom: 24px;
}

/* ===== Fullscreen overlay for TV mode ===== */
body.eventive-carousel-fullscreen-body {
    margin: 0 !important;
    overflow: hidden;
    background-color: #000;
}

.eventive-carousel--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9990;
    width: 100vw;
    height: 100vh;
}

/* Try to hide common WP theme headers/footers while in fullscreen TV mode.
   You can refine these selectors per-theme as needed. */
body.eventive-carousel-fullscreen-body .site-header,
body.eventive-carousel-fullscreen-body header.site-header,
body.eventive-carousel-fullscreen-body .site-footer,
body.eventive-carousel-fullscreen-body footer.site-footer {
    display: none !important;
}

.eventive-carousel-debug {
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.eventive-carousel-debug summary {
    cursor: pointer;
    font-weight: 700;
}

.eventive-carousel-debug__log {
    max-height: 22rem;
    margin: 0.75rem 0 0;
    overflow: auto;
    white-space: pre-wrap;
}
