/* ============================================
   XTREAM PREMIUM - CONVERSION OPTIMIZATION CSS
   Psychological Triggers & Marketing Strategies
   Based on Scientific Research
   ============================================ */

/* ============================================
   1. URGENCY & SCARCITY TRIGGERS
   ============================================ */

/* Scarcity Banner - Top Header */
.scarcity-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    animation: pulse-glow 2s ease-in-out infinite;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.scarcity-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* Urgency Badge with Pulse Animation */
.urgency-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: bounce-subtle 2s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Countdown Timer - Urgency */
.scarcity-timer {
    margin: 20px 0;
}

.timer-box {
    animation: timer-pulse 1s ease-in-out infinite;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#countdown-timer {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

#countdown-timer span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 2px;
}

/* ============================================
   2. SOCIAL PROOF ELEMENTS
   ============================================ */

/* Social Proof Counter */
.social-proof-counter {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.counter-item i {
    font-size: 24px;
    color: #ffd700;
}

.counter-number {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
}

/* Trust Badge */
.trust-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Social Proof Badge in Pricing - Improved readability with harmonious colors */
.social-proof-badge {
    background: linear-gradient(135deg, rgba(37, 63, 233, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(37, 63, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(37, 63, 233, 0.1);
}

.social-proof-badge i {
    color: #6366f1;
    font-size: 18px;
    flex-shrink: 0;
}

.social-proof-badge span {
    color: var(--text-primary, #f8fafc);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.social-proof-badge strong {
    color: #6366f1;
    font-weight: 700;
    font-size: 16px;
}

/* ============================================
   3. ANCHORING & PRICING PSYCHOLOGY
   ============================================ */

/* Price Comparison - Anchoring Effect */
.price-comparison {
    position: relative;
}

.old-price {
    font-size: 20px;
    text-decoration: line-through;
    color: #999 !important;
    margin-right: 10px;
}

.savings-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    animation: savings-pulse 2s ease-in-out infinite;
}

@keyframes savings-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price-per-month {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Popular Plan Highlight */
.popular-plan {
    border: 3px solid #ffd700;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    position: relative;
}

.popular-plan::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 10px;
    z-index: -1;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bonus Value Highlight */
.bonus-value {
    border: 2px dashed #ff9800;
    animation: bonus-shake 3s ease-in-out infinite;
}

@keyframes bonus-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* ============================================
   4. CALL-TO-ACTION OPTIMIZATION
   ============================================ */

/* Pulse Animation for Primary CTA */
.pulse-animation {
    position: relative;
    animation: cta-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(37, 63, 233, 0.4);
    transition: all 0.3s ease;
}

.pulse-animation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 63, 233, 0.6);
}

@keyframes cta-pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(37, 63, 233, 0.4);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(37, 63, 233, 0.7);
    }
}

/* CTA Subtext - Risk Reversal */
.cta-subtext {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.cta-subtext i {
    margin-right: 5px;
}

/* ============================================
   5. TRUST & RISK REVERSAL
   ============================================ */

/* Trust Section Badges */
.trust-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.trust-badge-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.trust-badge-item:hover {
    transform: translateY(-5px);
}

.trust-badge-item i {
    transition: transform 0.3s ease;
}

.trust-badge-item:hover i {
    transform: scale(1.1);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    animation: verified-pulse 2s ease-in-out infinite;
}

@keyframes verified-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================
   6. VISUAL HIERARCHY & FOCUS
   ============================================ */

/* Highlight Benefit Text */
.highlight-benefit {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 4px;
    font-weight: 600;
}

/* Savings Banner */
.savings-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: savings-banner-pulse 3s ease-in-out infinite;
}

@keyframes savings-banner-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================
   7. PROGRESSIVE DISCLOSURE
   ============================================ */

/* Feature List with Icons */
.feature-list li {
    transition: all 0.3s ease;
    padding: 8px 0;
}

.feature-list li:hover {
    transform: translateX(5px);
    color: #253fe9;
}

.feature-list li i {
    transition: transform 0.3s ease;
}

.feature-list li:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   8. RECIPROCITY & VALUE PERCEPTION
   ============================================ */

/* Gift/Bonus Animation */
.bonus-value {
    position: relative;
    overflow: hidden;
}

.bonus-value::before {
    content: '🎁';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: gift-bounce 2s ease-in-out infinite;
}

@keyframes gift-bounce {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-60%) rotate(-10deg); }
    75% { transform: translateY(-40%) rotate(10deg); }
}

/* ============================================
   9. LOSS AVERSION - What They'll Miss
   ============================================ */

/* Loss Aversion Highlight */
.loss-aversion-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    position: relative;
}

.loss-aversion-box::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 20px;
}

/* ============================================
   10. AUTHORITY & CREDIBILITY
   ============================================ */

/* Review Area Enhancement */
.review-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.star-rating {
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

/* ============================================
   11. MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    .scarcity-banner {
        font-size: 12px;
        padding: 8px;
    }
    
    .social-proof-counter {
        flex-direction: column;
        gap: 15px;
    }
    
    .popular-plan {
        transform: scale(1);
        margin-top: 20px;
    }
    
    .pulse-animation {
        width: 100%;
    }
    
    #countdown-timer {
        font-size: 18px;
    }
}

/* ============================================
   12. ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   13. CONVERSION TRACKING ELEMENTS
   ============================================ */

/* Click tracking for analytics */
[onclick*="trackAndRedirect"],
.template-btn {
    cursor: pointer;
    position: relative;
}

[onclick*="trackAndRedirect"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
}

/* ============================================
   14. SCROLL TRIGGERS
   ============================================ */

/* Fade in on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   15. EXIT INTENT TRIGGERS (via JS)
   ============================================ */

.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.exit-intent-popup {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    animation: popup-slide-in 0.5s ease;
}

@keyframes popup-slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

