/**
 * Paywall Styles
 * 
 * Styles for the paywall overlay and purchase interface
 */

#paywall-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

#paywall-overlay.active {
    display: flex;
}

.paywall-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: paywallFadeIn 0.3s ease-out;
}

@keyframes paywallFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paywall-header {
    text-align: center;
    margin-bottom: 2rem;
}

.paywall-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.paywall-header p {
    color: #64748b;
    font-size: 1rem;
}

.preview-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.preview-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#preview-content {
    color: #475569;
    line-height: 1.7;
}

#preview-content p {
    margin-bottom: 1rem;
}

.preview-fade {
    position: relative;
    padding-bottom: 2rem;
}

.preview-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgba(248, 250, 252, 1));
    pointer-events: none;
}

.paywall-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.paywall-cta .price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.paywall-cta .price-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

#purchase-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#purchase-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

#purchase-btn:active:not(:disabled) {
    transform: translateY(0);
}

#purchase-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.paywall-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.paywall-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.paywall-features li {
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.paywall-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.paywall-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.paywall-close:hover {
    color: #64748b;
}


/* Responsive design */

@media (max-width: 640px) {
    .paywall-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    .paywall-header h2 {
        font-size: 1.5rem;
    }
    .preview-section {
        padding: 1rem;
    }
}


/* Loading state */

.paywall-loading {
    text-align: center;
    padding: 2rem;
}

.paywall-loading::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}