/**
 * Paywall Styles - Premium Edition
 * Premium access paywall overlay with enhanced visual design
 */

/* Paywall Modal */
.paywall-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.paywall-modal.paywall-visible {
    opacity: 1;
    visibility: visible;
}

.paywall-modal.paywall-hiding {
    opacity: 0;
    visibility: hidden;
}

/* Paywall Content */
.paywall-content {
    background: var(--bg-primary, #1a1a1a);
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.paywall-modal.paywall-visible .paywall-content {
    transform: scale(1) translateY(0);
}

.paywall-modal.paywall-hiding .paywall-content {
    transform: scale(0.92) translateY(20px);
}

/* Close Button */
.paywall-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
}

.paywall-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Preview Image */
.paywall-preview {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.paywall-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(0.4);
    transform: scale(1.1);
    transition: transform 0.4s;
}

.paywall-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.paywall-lock-icon {
    width: 72px;
    height: 72px;
    color: var(--text-primary, #ffffff);
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Paywall Body */
.paywall-body {
    padding: 40px;
}

/* Header */
.paywall-header {
    text-align: center;
    margin-bottom: 36px;
}

.paywall-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.paywall-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.paywall-subtitle {
    font-size: 17px;
    color: var(--text-secondary, #b0b0b0);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Benefits */
.paywall-benefits {
    margin-bottom: 36px;
}

.paywall-benefits h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

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

.paywall-benefits-list li {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    color: var(--text-primary, #ffffff);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.paywall-check-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
    margin-right: 14px;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

/* Actions */
.paywall-actions {
    text-align: center;
}

.paywall-btn-primary {
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #6400CC 0%, #8B00FF 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(100, 0, 204, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.paywall-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.paywall-btn-primary:hover::before {
    left: 100%;
}

.paywall-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(100, 0, 204, 0.5);
}

.paywall-btn-primary:active {
    transform: translateY(-1px);
}

.paywall-note {
    margin: 16px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.5;
    font-weight: 500;
}

/* Wallet Note */
.paywall-wallet-note {
    margin-top: 28px;
    padding: 20px;
    background: rgba(100, 0, 204, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(100, 0, 204, 0.25);
}

.paywall-wallet-note p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary, #ffffff);
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

/* Premium Badge Styling */
.paywall-badge[style*="#f39c12"] {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4) !important;
}

/* Responsive */
@media (max-width: 640px) {
    .paywall-modal {
        padding: 10px;
    }

    .paywall-content {
        max-height: 95vh;
        border-radius: 20px;
    }

    .paywall-body {
        padding: 32px 24px;
    }

    .paywall-title {
        font-size: 24px;
    }

    .paywall-subtitle {
        font-size: 15px;
    }

    .paywall-benefits h3 {
        font-size: 18px;
    }

    .paywall-benefits-list li {
        font-size: 15px;
        padding: 12px 0;
    }

    .paywall-btn-primary {
        padding: 16px 28px;
        font-size: 16px;
    }

    .paywall-preview {
        height: 200px;
    }
}

/* Light Theme Support - Enhanced for readability */
html.light .paywall-modal {
    background: rgba(255, 255, 255, 0.88);
}

html.light .paywall-content {
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .paywall-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

html.light .paywall-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
    border-color: rgba(0, 0, 0, 0.15);
}

html.light .paywall-title {
    color: #1a1a1a;
}

html.light .paywall-subtitle {
    color: #4a4a4a;
}

html.light .paywall-benefits h3 {
    color: #1a1a1a;
}

html.light .paywall-benefits-list li {
    color: #333;
}

html.light .paywall-note {
    color: #666;
}

html.light .paywall-wallet-note {
    background: rgba(100, 0, 204, 0.08);
    border-color: rgba(100, 0, 204, 0.15);
}

html.light .paywall-wallet-note p {
    color: #1a1a1a;
}

html.light .paywall-btn-primary {
    box-shadow: 0 6px 20px rgba(100, 0, 204, 0.3);
}

html.light .paywall-btn-primary:hover {
    box-shadow: 0 10px 28px rgba(100, 0, 204, 0.4);
}

html.light .paywall-preview img {
    filter: blur(6px) brightness(0.6);
}

html.light .paywall-lock-icon {
    color: #1a1a1a;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
