/* ========================================
   AI Marketing Paywall - Modern Premium Design
   Matching React App Design Language
   
   File: paywall-premium.css
   Version: 1.0.0
   Author: Kriptoentuzijasti
   Description: Modern blur-effect paywall styling matching React preview modal
   ======================================== */

/* 1️⃣ Preview Content - Blur Fade Effect */
.aimarketing-paywall-wrapper {
    position: relative;
    margin: 3rem 0;
    border-radius: 24px;
    overflow: hidden;
}

.aimarketing-preview-content {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    
    /* Modern blur fade - matching React preview */
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 40%,
        rgba(0,0,0,0.5) 70%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 40%,
        rgba(0,0,0,0.5) 70%,
        transparent 100%
    );
    
    /* Subtle backdrop blur for premium feel */
    filter: blur(0px);
    transition: filter 0.3s ease;
}

.aimarketing-preview-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(15, 23, 42, 0.9)
    );
    pointer-events: none;
}

/* 2️⃣ Paywall Overlay - Modern Gradient Design */
.aimarketing-paywall-overlay {
    position: relative;
    margin-top: -150px;
    padding: 4rem 2rem 2rem;
    
    /* Blue-purple gradient background matching React app */
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(139, 92, 246, 0.15) 50%,
        rgba(37, 99, 235, 0.15) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    text-align: center;
    z-index: 10;
}

/* 3️⃣ Premium Card - Glassy Effect */
.aimarketing-paywall-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    
    /* Modern glassy card */
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(59, 130, 246, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    
    animation: slideUpFadeIn 0.6s ease-out;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4️⃣ Lock Icon - Glowing Effect */
.paywall-icon {
    position: relative;
    font-size: 64px;
    color: #fbbf24;
    margin-bottom: 1.5rem;
    
    /* Glow effect */
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
    }
}

/* 5️⃣ Typography - Modern & Bold */
.paywall-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.paywall-description {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 6️⃣ Price Display - Large & Prominent */
.paywall-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    
    padding: 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.price-amount {
    font-size: 56px;
    font-weight: 900;
    color: #22c55e;
    line-height: 1;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #86efac;
}

.paywall-credits {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

/* 7️⃣ Benefits List - Clean & Modern */
.paywall-benefits {
    margin: 2rem 0;
    text-align: left;
}

.paywall-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.paywall-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 500;
    
    transition: all 0.3s ease;
}

.paywall-benefits li:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
}

.paywall-benefits i {
    font-size: 20px;
    color: #22c55e;
    flex-shrink: 0;
}

/* 8️⃣ CTA Button - Gradient & Animated */
.btn-unlock {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    
    padding: 18px 48px;
    
    /* Blue-purple gradient matching React app */
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #3b82f6 100%);
    background-size: 200% 200%;
    
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    
    border: none;
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-unlock:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(59, 130, 246, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-unlock:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-unlock::after {
    content: '→';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.btn-unlock:hover::after {
    transform: translateX(4px);
}

/* 9️⃣ Login Note - Subtle */
.paywall-login-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    
    font-size: 15px;
    color: #94a3b8;
}

.paywall-login-note a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.paywall-login-note a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* 🔟 Responsive Design */
@media (max-width: 768px) {
    .aimarketing-paywall-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .paywall-title {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 40px;
    }
    
    .btn-unlock {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* 1️⃣1️⃣ Dark Mode Support */
@media (prefers-color-scheme: light) {
    .aimarketing-paywall-overlay {
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(139, 92, 246, 0.08) 50%,
            rgba(59, 130, 246, 0.08) 100%
        );
    }
    
    .aimarketing-paywall-card {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(59, 130, 246, 0.2);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.1),
            0 0 100px rgba(59, 130, 246, 0.05),
            inset 0 1px 1px rgba(255, 255, 255, 0.8);
    }
    
    .paywall-title {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}    .paywall-description {
        color: #475569;
    }
    
    .paywall-benefits li {
        background: rgba(59, 130, 246, 0.03);
        color: #334155;
    }
    
    .paywall-login-note {
        color: #64748b;
        border-top-color: rgba(203, 213, 225, 0.5);
    }
}

/* 1️⃣2️⃣ Print Styles - Hide paywall when printing */
@media print {
    .aimarketing-paywall-overlay,
    .aimarketing-paywall-card {
        display: none !important;
    }
    
    .aimarketing-preview-content {
        max-height: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
        filter: none !important;
    }
    
    .aimarketing-preview-content::after {
        display: none !important;
    }
}

/* 1️⃣3️⃣ Accessibility - Focus states */
.btn-unlock:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 4px;
}

.paywall-login-note a:focus {
    outline: 2px solid rgba(96, 165, 250, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 1️⃣4️⃣ Loading State */
.btn-unlock.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-unlock.loading::after {
    content: '⏳';
    animation: spin 1s linear infinite;
}

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