/* ============================================================
   SOFT PAYWALL STÍLUSOK - Tejüveg (Frosted Glass) Effekt
   Medium-style: a CTA mögött is átlátszik a blur-özött tartalom
   ============================================================ */

.paywall-container {
    position: relative;
    /* Nagyobb max-height, hogy több tartalom látszódjon blur-özve */
    max-height: 1600px;
    overflow: hidden;
}

.paywall-blur {
    position: relative;
    /* Több hely az overlay-nek és az alatta lévő blur-özött tartalomnak */
    padding-bottom: 250px;
}

/* Tejüveg effekt - nagyobb blur terület a CTA FÖLÖTT */
.paywall-blur::after {
    content: '';
    position: absolute;
    bottom: 0; /* A teljes overlay területet lefedi */
    left: 0;
    right: 0;
    height: 280px; /* Nagyobb terület - CTA magasság + extra blur */
    /* Erősebb frosted glass effect */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Hosszabb gradient - fokozatosan blur-özik */
    background: linear-gradient(
        to bottom,
        rgba(249, 250, 251, 0) 0%,
        rgba(249, 250, 251, 0.15) 30%,
        rgba(249, 250, 251, 0.4) 50%,
        rgba(249, 250, 251, 0.65) 70%,
        rgba(249, 250, 251, 0.85) 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
    .paywall-blur::after {
        background: linear-gradient(
            to bottom,
            rgba(249, 250, 251, 0) 0%,
            rgba(249, 250, 251, 0.7) 40%,
            rgba(249, 250, 251, 0.95) 70%,
            rgba(249, 250, 251, 1) 100%
        );
    }
}

.paywall-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2rem 2.5rem;
    text-align: center;
    /* Átlátszóbb háttér - a blur-özött tartalom átlátszik mögötte */
    background: rgba(249, 250, 251, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    /* Enyhe árnyék a CTA box-nak */
    box-shadow: 0 -20px 40px rgba(249, 250, 251, 0.9);
}

.paywall-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.paywall-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.paywall-cta-button:active {
    transform: translateY(0);
}

/* Mobil optimalizáció */
@media (max-width: 640px) {
    .paywall-container {
        max-height: 1400px;
    }

    .paywall-blur {
        padding-bottom: 220px;
    }

    .paywall-blur::after {
        bottom: 0;
        height: 250px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .paywall-overlay {
        padding: 1.5rem 1rem 2rem;
        background: rgba(249, 250, 251, 0.8);
    }

    .paywall-cta-button {
        width: 100%;
        padding: 1rem;
    }
}
