/* Paywall Styles */

.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.paywall-container {
    position: relative;
    z-index: 999;
}

.paywall-article-preview {
    pointer-events: none;
    opacity: 0.5;
}

.paywall-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 2px;
    padding: 50px 40px 40px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    box-sizing: border-box;
}

.paywall-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.paywall-close:hover {
    opacity: 0.8;
}

.paywall-header {
    text-align: center;
    margin-bottom: 30px;
}

.flash-badge {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border-radius: 2px;
}

.paywall-header h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}

.paywall-pricing {
    background: #f5f5f5;
    border-left: 4px solid #c41e3a;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.price-amount {
    display: block;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.price-period {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.price-subtext {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 12px 0 0 0;
}

.paywall-benefits {
    margin-bottom: 28px;
}

.paywall-benefits h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.paywall-benefits ul {
    list-style: none;
    padding: 0;
}

.paywall-benefits li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

.paywall-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

.paywall-cta {
    width: 100%;
    padding: 16px;
    background: #c41e3a;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.paywall-cta:hover:not(:disabled) {
    background-color: #a01830;
}

.paywall-cta:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.paywall-terms {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
}

.paywall-terms a {
    color: #c41e3a;
    text-decoration: none;
}

.paywall-terms a:hover {
    text-decoration: underline;
}

.paywall-blurred {
    user-select: none;
}

/* Responsive Paywall */
@media (max-width: 640px) {
    .paywall-modal {
        top: 16px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 32px);
        padding: 36px 20px 24px 20px;
        border-radius: 0;
    }

    .paywall-header h2 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .paywall-close {
        top: 8px;
        right: 8px;
    }

    .paywall-pricing {
        padding: 18px;
    }

    .paywall-benefits li {
        font-size: 0.86rem;
        padding: 7px 0 7px 22px;
    }

    .paywall-cta {
        padding: 14px;
    }
}
