/*
 * Pelso Camping – Hero Countdown
 * Glassmorphism visszaszámláló a Hero section videós hátterére.
 * Minden class pelso- prefixszel.
 */

/* ── Wrapper ────────────────────────────────────────────────────── */
.pelso-hero-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

/* ── Eyebrow pill ───────────────────────────────────────────────── */
.pelso-countdown-eyebrow {
    display: inline-block;
    color: var(--pelso-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    padding: .375rem 1.125rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 209, 102, .4);
    background: rgba(255, 209, 102, .1);
    margin: 0;
    line-height: 1.5;
}

/* ── Title ──────────────────────────────────────────────────────── */
.pelso-countdown-title {
    font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    font-size: clamp(1.875rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
    margin: 0;
}

/* ── Subtitle ───────────────────────────────────────────────────── */
.pelso-countdown-subtitle {
    font-size: clamp(.875rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, .85);
    max-width: 36rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Countdown grid ─────────────────────────────────────────────── */
.pelso-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: .5rem 0;
    width: 100%;
    max-width: 36rem;
}

/* ── Single card – glassmorphism ────────────────────────────────── */
.pelso-countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: 1.25rem .875rem 1rem;
    border-radius: 1.25rem;
    background: rgba(23, 50, 77, .52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    min-width: 0;
    transition: transform .2s;
}

/* ── Number ─────────────────────────────────────────────────────── */
.pelso-countdown-number {
    display: block;
    font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

/* Seconds accent */
.pelso-countdown-card--seconds .pelso-countdown-number {
    color: var(--pelso-yellow);
    text-shadow: 0 2px 14px rgba(255, 209, 102, .3);
}

/* ── Label ──────────────────────────────────────────────────────── */
.pelso-countdown-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
}

/* ── CTA button ─────────────────────────────────────────────────── */
.pelso-countdown-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 2.125rem;
    border-radius: 9999px;
    background: var(--pelso-yellow);
    color: var(--pelso-dark);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(255, 209, 102, .5);
    transition: transform .2s, box-shadow .2s, background-color .2s;
    animation: pelso-countdown-pulse 2.6s ease-in-out infinite;
    white-space: nowrap;
    margin-top: .25rem;
    border: none;
    cursor: pointer;
}

.pelso-countdown-cta:hover {
    background: #ffc833;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 209, 102, .7);
    animation-play-state: paused;
}

.pelso-countdown-cta:active {
    transform: scale(.97);
}

.pelso-countdown-cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@keyframes pelso-countdown-pulse {
    0%, 100% {
        box-shadow: 0 4px 22px rgba(255, 209, 102, .5);
    }
    50% {
        box-shadow:
            0 4px 32px rgba(255, 209, 102, .85),
            0 0 0 7px rgba(255, 209, 102, .12);
    }
}

/* ── Expired message ────────────────────────────────────────────── */
.pelso-countdown-expired {
    font-size: .975rem;
    color: rgba(255, 255, 255, .82);
    font-style: italic;
    max-width: 32rem;
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: .875rem;
    background: rgba(23, 50, 77, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .12);
    line-height: 1.55;
}

/* ── Responsive: tablet (max 640px) ────────────────────────────── */
@media (max-width: 640px) {
    .pelso-countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
        max-width: 22rem;
    }

    .pelso-countdown-card {
        padding: 1rem .75rem .875rem;
    }

    .pelso-countdown-cta {
        font-size: .9375rem;
        padding: .8rem 1.625rem;
    }
}

/* ── Responsive: small mobile (max 360px) ──────────────────────── */
@media (max-width: 360px) {
    .pelso-countdown-title {
        font-size: 1.625rem;
    }

    .pelso-countdown-grid {
        gap: .5rem;
    }

    .pelso-countdown-card {
        padding: .875rem .625rem .75rem;
    }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .pelso-countdown-cta {
        animation: none;
    }

    .pelso-countdown-card {
        transition: none;
    }
}
