/* ================================================================
   Artikel Paywall v2 – paywall.css
   ================================================================ */

#apwl-blurred-zone {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 60px);
}
#apwl-blurred-zone > * {
    filter: blur(var(--apwl-blur, 6px));
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
#apwl-blurred-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,var(--apwl-overlay-opacity, 0.85)) 40%
    );
    pointer-events: none;
}

/* Gate card */
#apwl-gate {
    position: relative;
    z-index: 10;
    margin: 0 auto 2rem;
    padding: 2.5rem 2rem;
    max-width: 540px;
    text-align: center;
    background: var(--apwl-card-bg, #ffffff);
    color: var(--apwl-text, #1a202c);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.apwl-icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    background: color-mix(in srgb, var(--apwl-accent, #1a73e8) 10%, white);
    border-radius: 50%;
    color: var(--apwl-accent, #1a73e8);
}
.apwl-title {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--apwl-text, #1a202c);
}
.apwl-message {
    margin: 0 0 1.75rem;
    font-size: .95rem;
    color: var(--apwl-text, #1a202c);
    opacity: .8;
    line-height: 1.6;
}
.apwl-actions {
    display: flex; gap: .75rem;
    justify-content: center; flex-wrap: wrap;
}
.apwl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.6rem;
    font-size: .95rem; font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    cursor: pointer;
}
.apwl-btn:hover { transform: translateY(-2px); text-decoration: none; }
.apwl-btn:active { transform: translateY(0); }
.apwl-btn--primary {
    background: var(--apwl-accent, #1a73e8);
    color: #ffffff !important;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--apwl-accent, #1a73e8) 40%, transparent);
}
.apwl-btn--primary:hover { opacity: .9; }
.apwl-btn--secondary {
    background: transparent;
    color: var(--apwl-accent, #1a73e8) !important;
    border: 2px solid var(--apwl-accent, #1a73e8);
}
.apwl-btn--secondary:hover {
    background: color-mix(in srgb, var(--apwl-accent, #1a73e8) 6%, white);
}

@media (prefers-color-scheme: dark) {
    #apwl-blurred-zone::after {
        background: linear-gradient(to bottom, rgba(18,22,34,0) 0%, rgba(18,22,34,var(--apwl-overlay-opacity,.85)) 40%);
    }
}
@media (max-width: 480px) {
    #apwl-gate { padding: 2rem 1.25rem; border-radius: 12px; }
    .apwl-actions { flex-direction: column; }
    .apwl-btn { width: 100%; }
}
