/**
 * TunerPro Gains & Booking Widget — showcase frame (v1.4).
 *
 * The presentation panel around the widget: layered dark card, accent glow,
 * kicker with live dot, refined type — the exact look of the pro demo page.
 * Every rule is scoped under .tpw-showcase so nothing bleeds into the theme,
 * and the accent rides a CSS variable so each dealer can brand it.
 */

.tpw-showcase {
    --tpw-accent: #ff6b1a;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(200deg, #0d1526 0%, #080d18 60%),
        radial-gradient(560px 240px at 85% -15%, rgba(255, 107, 26, 0.22), transparent 62%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 28px 28px 24px;
    margin: 8px 0;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #eef2fb;
    box-sizing: border-box;
}

.tpw-showcase *,
.tpw-showcase *::before,
.tpw-showcase *::after {
    box-sizing: border-box;
}

/* A thin accent line along the top edge — the panel's signature. */
.tpw-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--tpw-accent), transparent);
    opacity: 0.75;
    pointer-events: none;
}

/* A soft accent wash across the top — the demo page's section glow. */
.tpw-showcase-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 170px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tpw-accent) 11%, transparent), transparent);
    pointer-events: none;
}

/* Older browsers without color-mix still get a subtle default wash. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .tpw-showcase-glow {
        background: linear-gradient(180deg, rgba(255, 107, 26, 0.09), transparent);
    }
}

.tpw-showcase-head {
    position: relative;
    margin-bottom: 20px;
    padding-right: 84px;
}

.tpw-showcase-kick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--tpw-accent);
    margin-bottom: 9px;
}

.tpw-showcase-kick::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--tpw-accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--tpw-accent) 70%, transparent);
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .tpw-showcase-kick::before {
        box-shadow: 0 0 8px rgba(255, 107, 26, 0.7);
    }
}

.tpw-showcase-title {
    margin: 0 0 7px;
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: #eef2fb;
    font-weight: 800;
}

.tpw-showcase-sub {
    margin: 0;
    color: #97a2b6;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 640px;
}

.tpw-showcase-live {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #22e88c;
    background: rgba(34, 232, 140, 0.12);
    border: 1px solid rgba(34, 232, 140, 0.4);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .tpw-showcase-live {
        animation: tpwLivePulse 2.6s ease-in-out infinite;
    }

    @keyframes tpwLivePulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(34, 232, 140, 0.35); }
        50% { box-shadow: 0 0 0 5px rgba(34, 232, 140, 0); }
    }
}

.tpw-showcase-body {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
}

@media (max-width: 640px) {
    .tpw-showcase {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }

    .tpw-showcase-head {
        padding-right: 0;
    }

    .tpw-showcase-live {
        position: static;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpw-showcase,
    .tpw-showcase * {
        animation: none !important;
        transition: none !important;
    }
}
