/* =============================================================
   ECUBE NEXUS — Split Layout CSS
   Scoped entirely to .ec- classes, no !important wars
   with pretix core styles needed here — this is new DOM.
   version: 20260319001
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@200;300;400;500;600&display=swap');

/* ── RESET PRETIX CONTAINER FOR SPLIT ────────────────────────
   The split wrap needs to break out of pretix's .container.main-box
   max-width constraint. We reach up and unlock it here.
   ──────────────────────────────────────────────────────────── */
.container.main-box:has(.ec-split-wrap) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #080808 !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ── SPLIT WRAP ──────────────────────────────────────────────── */
.ec-split-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 60px);
    position: relative;
    background: #080808;
}

/* ── LEFT PANEL ──────────────────────────────────────────────── */
.ec-split-left {
    position: relative;
    overflow: hidden;
    background: #080808;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 44px;
    min-height: 600px;
}

.ec-split-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
    filter: grayscale(50%);
    z-index: 0;
}

.ec-split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.55) 40%, rgba(8,8,8,0.96) 100%);
    z-index: 1;
    pointer-events: none;
}

.ec-split-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(200,0,10,0.06) 0, rgba(200,0,10,0.06) 1px, transparent 0, transparent 56px),
        repeating-linear-gradient(90deg, rgba(200,0,10,0.06) 0, rgba(200,0,10,0.06) 1px, transparent 0, transparent 56px);
    z-index: 1;
    pointer-events: none;
}

.ec-laser-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    z-index: 2;
    pointer-events: none;
}

.ec-split-logo {
    position: absolute;
    top: 36px;
    left: 44px;
    z-index: 4;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 0.18em;
    color: rgba(240,237,232,0.4);
}

.ec-split-identity {
    position: relative;
    z-index: 4;
}

.ec-split-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C8000A;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-eyebrow-line {
    display: block;
    width: 24px;
    height: 1px;
    background: #C8000A;
    flex-shrink: 0;
}

.ec-split-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(64px, 8vw, 104px) !important;
    line-height: 0.88 !important;
    letter-spacing: 0.02em !important;
    color: #F0EDE8 !important;
    text-shadow: 0 0 80px rgba(200,0,10,0.2) !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
}

.ec-split-rule {
    width: 40px;
    height: 1px;
    background: rgba(240,237,232,0.15);
    margin: 24px 0;
}

.ec-split-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-meta-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(15px, 1.6vw, 20px);
    letter-spacing: 0.12em;
    color: #F0EDE8;
}

.ec-meta-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c8c4be;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C8000A;
    flex-shrink: 0;
}

.ec-meta-item.ec-frontpage-text {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: none;
    margin-top: 8px;
    color: #888;
}

/* ── RIGHT PANEL ─────────────────────────────────────────────── */
.ec-split-right {
    background: #0d0d0d;
    border-left: 1px solid rgba(240,237,232,0.06);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.ec-right-header {
    padding: 36px 40px 28px;
    border-bottom: 1px solid rgba(240,237,232,0.06);
}

.ec-presale-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ec-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C8000A;
    animation: ec-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ec-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.ec-presale-ended .ec-status-label {
    color: #555;
}

.ec-status-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C8000A;
}

.ec-right-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.1em;
    color: #F0EDE8;
    margin-bottom: 4px;
}

.ec-right-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: #555;
    letter-spacing: 0.06em;
}

/* ── PANEL SECTIONS ──────────────────────────────────────────── */
.ec-panel-section {
    padding: 24px 40px;
    border-bottom: 1px solid rgba(240,237,232,0.05);
}

.ec-top-signal-section:empty {
    display: none;
}

.ec-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 14px;
}

/* ── EXCLUSIVE ACCESS CTA ALIGNMENT ─────────────────────────── */
.ec-split-right .exclusive-access-cta {
    margin: 0 !important;
    padding: 24px 40px !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

.ec-split-right .exclusive-access-cta h3,
.ec-split-right .exclusive-access-cta p {
    max-width: 48rem;
}

.ec-split-right .exclusive-access-cta .exclusive-access-btn {
    margin-top: 4px !important;
}

/* ── PRODUCT LIST OVERRIDES (inside right panel) ─────────────── */
.ec-split-right .item-row,
.ec-split-right .product-row,
.ec-split-right article {
    border: 1px solid rgba(240,237,232,0.07) !important;
    background: #141414 !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s, background 0.2s !important;
    position: relative !important;
}

.ec-split-right .item-row::before,
.ec-split-right .product-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: #C8000A;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s;
}

.ec-split-right .item-row:hover::before,
.ec-split-right .product-row:hover::before {
    transform: scaleY(1);
}

.ec-split-right .item-row:hover,
.ec-split-right .product-row:hover {
    border-color: rgba(200,0,10,0.3) !important;
    background: #1a1010 !important;
}

.ec-split-right .product-name,
.ec-split-right .item-name,
.ec-split-right .item h4 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 20px !important;
    letter-spacing: 0.08em !important;
    color: #F0EDE8 !important;
    font-weight: 400 !important;
}

/* ── CART FOOTER ─────────────────────────────────────────────── */
.ec-cart-footer {
    padding: 0 40px 28px;
}

.ec-add-to-cart-btn {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 20px !important;
    letter-spacing: 0.18em !important;
    border-radius: 0 !important;
    padding: 16px !important;
    background: #C8000A !important;
    border-color: #C8000A !important;
    color: #F0EDE8 !important;
    transition: background 0.2s !important;
}

.ec-add-to-cart-btn:hover,
.ec-add-to-cart-btn:focus {
    background: #a30008 !important;
    border-color: #a30008 !important;
}

/* ── RESEND SECTION ──────────────────────────────────────────── */
.ec-resend-section {
    padding: 16px 40px 24px;
    border-top: 1px solid rgba(240,237,232,0.05);
}

.ec-resend-section .btn {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.1em !important;
    color: #555 !important;
    border-color: rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ec-resend-section .btn:hover {
    border-color: rgba(255,255,255,0.2) !important;
    color: #888 !important;
}

/* ── FOOTER STRIP ────────────────────────────────────────────── */
.ec-right-footer-strip {
    margin-top: auto;
    padding: 16px 40px;
    border-top: 1px solid rgba(240,237,232,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ec-footer-powered,
.ec-footer-source {
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(240,237,232,0.2) !important;
}

.ec-footer-powered a,
.ec-footer-source {
    color: rgba(240,237,232,0.25) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(240,237,232,0.1);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ec-split-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .ec-split-left {
        min-height: 44vh;
        padding: 36px 28px;
    }

    .ec-split-logo {
        top: 24px;
        left: 28px;
    }

    .ec-split-title {
        font-size: clamp(52px, 14vw, 80px) !important;
    }

    .ec-split-right {
        border-left: none;
        border-top: 1px solid rgba(240,237,232,0.06);
    }

    .ec-right-header,
    .ec-panel-section,
    .ec-cart-footer,
    .ec-resend-section,
    .ec-right-footer-strip {
        padding-left: 24px;
        padding-right: 24px;
    }
}
