/*
====================================================
NÉV:
NextSheet Display Teaser stílus
PROJEKT:
NextSheet Display
TÍPUS:
CSS
VERZIÓ:
v0.2.1
UTOLSÓ FRISSÍTÉS:
2026-07-06

LEÍRÁS:
Főoldali prémium teaser blokk NextSheet Display shortcode-hoz.

FEJLESZTŐ:
Balázs Bakos
NextSheet Innovations
https://www.nextsheet.hu

CHANGELOG:

v0.2.1 - 2026-07-06
- Javítva: mobil olvashatóság és teaser kép arány.

v0.2.0 - 2026-07-06
- Első verzió: [nextsheet_display_teaser] főoldali teaser blokk.

====================================================
*/

:root {
    --nsdt-bg: #0b0b0f;
    --nsdt-text: #ffffff;
    --nsdt-muted: rgba(255, 255, 255, 0.72);
    --nsdt-border: rgba(255, 255, 255, 0.14);
    --nsdt-card: rgba(255, 255, 255, 0.075);
    --nsdt-cyan: #19b8bb;
    --nsdt-green: #00ff96;
    --nsdt-pink: #ff1f74;
}

.nsdt-teaser,
.nsdt-teaser * {
    box-sizing: border-box;
}

.nsdt-teaser {
    background:
        radial-gradient(circle at 78% 18%, rgba(25, 184, 187, 0.18), transparent 30%),
        radial-gradient(circle at 16% 86%, rgba(255, 31, 116, 0.14), transparent 28%),
        #0b0b0f;
    color: var(--nsdt-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: clamp(28px, 4vw, 54px) 20px;
}

.nsdt-teaser__card {
    align-items: center;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        var(--nsdt-card);
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid var(--nsdt-border);
    border-radius: 28px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    display: grid;
    gap: clamp(22px, 4vw, 48px);
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    margin: 0 auto;
    max-width: 1180px;
    min-height: 340px;
    overflow: hidden;
    padding: clamp(26px, 4vw, 46px);
    position: relative;
}

.nsdt-teaser__card::before {
    background: linear-gradient(90deg, var(--nsdt-cyan), var(--nsdt-pink));
    content: "";
    height: 3px;
    left: clamp(26px, 4vw, 46px);
    opacity: 0.86;
    position: absolute;
    right: clamp(26px, 4vw, 46px);
    top: 0;
}

.nsdt-teaser__content {
    max-width: 580px;
    position: relative;
    z-index: 1;
}

.nsdt-teaser__eyebrow {
    color: var(--nsdt-cyan);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.nsdt-teaser h2 {
    color: var(--nsdt-text);
    font-size: clamp(2.1rem, 4vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 18px;
}

.nsdt-teaser__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.12rem, 1.8vw, 1.42rem);
    font-weight: 760;
    line-height: 1.45;
    margin: 0 0 14px;
}

.nsdt-teaser__text {
    color: var(--nsdt-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 26px;
    max-width: 520px;
}

.nsdt-teaser__button {
    align-items: center;
    background: linear-gradient(135deg, var(--nsdt-cyan), var(--nsdt-green));
    border-radius: 999px;
    box-shadow: 0 16px 46px rgba(25, 184, 187, 0.22);
    color: #031110;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 850;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nsdt-teaser__button:hover,
.nsdt-teaser__button:focus-visible {
    box-shadow: 0 20px 58px rgba(0, 255, 150, 0.2);
    transform: translateY(-2px);
}

.nsdt-teaser__media {
    border-radius: 22px;
    box-shadow: 0 24px 82px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    position: relative;
}

.nsdt-teaser__media::before {
    background: linear-gradient(135deg, rgba(25, 184, 187, 0.34), rgba(255, 31, 116, 0.2));
    content: "";
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.22;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.nsdt-teaser__media img {
    aspect-ratio: 16 / 9.5;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

@media (max-width: 860px) {
    .nsdt-teaser__card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 28px;
    }

    .nsdt-teaser__content {
        max-width: 100%;
    }

    .nsdt-teaser__media {
        order: -1;
    }
}

@media (max-width: 560px) {
    .nsdt-teaser {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nsdt-teaser__card {
        border-radius: 22px;
        gap: 20px;
        padding: 20px;
    }

    .nsdt-teaser h2 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .nsdt-teaser__subtitle {
        font-size: 1.04rem;
    }

    .nsdt-teaser__text {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .nsdt-teaser__media img {
        aspect-ratio: 4 / 3;
    }

    .nsdt-teaser__button {
        width: 100%;
    }
}
