/*
 * Discover section — chatbase-inspired full product showcase.
 * Centered header + faux tab strip + large editor screenshot framed by
 * a subtle bi-color ambient glow.
 */

.discover-section {
    padding: 96px 20px;
    background: var(--surface);
}
@media (min-width: 768px) {
    .discover-section { padding: 128px 32px; }
}

.discover-section .container { max-width: 1200px; margin: 0 auto; }

.discover-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex; flex-direction: column; align-items: center;
}
.discover-header .section-eyebrow {
    justify-content: center;
}
.discover-header .section-h2 {
    margin-top: 14px;
    max-width: 760px;
}
.discover-sub {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 16px auto 0;
    max-width: 560px;
}

.discover-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 28px auto 32px;
    padding: 5px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    width: max-content;
    max-width: 100%;
}

.discover-tab {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    letter-spacing: 0.01em;
    cursor: default;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}
.discover-tab:hover {
    color: var(--on-surface);
    background: rgba(255,255,255,0.04);
}
.discover-tab--active,
.discover-tab--active:hover {
    background: linear-gradient(180deg, #FFD56A, #FFBF00);
    color: #2a1a00;
    box-shadow: 0 4px 12px rgba(251,188,0,0.30), inset 0 1px 0 rgba(255,255,255,0.4);
}

.discover-frame {
    position: relative;
    margin-top: 8px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    background: var(--surface-container-lowest);
    box-shadow: 0 40px 100px rgba(0,0,0,0.45);
}
/* Subtle ambient hue inside the frame edges, matching the editor's own glows. */
.discover-frame::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 8% 6%, rgba(251,188,0,0.12), transparent 42%),
        radial-gradient(circle at 92% 94%, rgba(6,182,212,0.12), transparent 42%);
}
.discover-frame img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    transition: opacity 0.18s ease-out;
}
.discover-frame.is-swapping img { opacity: 0; }

/* Now that tabs are clickable, surface that affordance. */
.discover-tab { cursor: pointer; }

/* Mobile: tabs scroll horizontally if they overflow. */
@media (max-width: 720px) {
    .discover-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 4px;
        width: 100%;
        scrollbar-width: none;
    }
    .discover-tabs::-webkit-scrollbar { display: none; }
    .discover-tab {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
}
