/**
 * Professional CTA Card Redesign
 * Enhanced styling for premium course enrollment
 */

/* ========================================
   CTA CARD PROFESSIONAL STRUCTURE
   ======================================== */

.cta-card {
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
}

/* Modern Border Shine Animation */
.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        #8b5cf6 0%,
        #ec4899 25%,
        #8b5cf6 50%,
        #ec4899 75%,
        #8b5cf6 100%);
    border-radius: 18px;
    background-size: 300% 300%;
    animation: borderShine 4s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

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

.cta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 16px;
    z-index: -1;
}

/* Premium Badge */
.cta-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-purple-elegant);
    border-radius: 16px 16px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    margin: 0;
}

.cta-badge i {
    font-size: 0.9rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pricing Section with Modern Gradient */
.cta-price {
    padding: 20px 14px 16px !important;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(236, 72, 153, 0.03) 50%,
        rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.08) 50%,
        transparent 100%);
    animation: priceShimmer 3s ease-in-out infinite;
}

@keyframes priceShimmer {
    0%, 100% {
        transform: translateX(-50%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

.price-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.price-original {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    position: relative !important;
    display: inline-block !important;
}

.price-original::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ef4444;
    transform: translateY(-50%);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

.price-current {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    background: var(--gradient-purple-elegant) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
}

.price-save {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: pulseSave 2s ease-in-out infinite;
}

@keyframes pulseSave {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* Blurred Price Effect with Reveal */
.price-blurred {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.price-blurred::after {
    content: '👁️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    opacity: 0.3;
    pointer-events: none;
}

.price-blurred:hover {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    transform: scale(1.05);
}

.price-blurred.revealed::after {
    content: '✨';
    opacity: 1;
}

@keyframes priceReveal {
    0% {
        filter: blur(6px);
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        filter: blur(0);
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        filter: blur(0);
        transform: scale(1);
        opacity: 1;
    }
}

/* Price Reveal Link - Modern Design */
.price-reveal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4),
                0 0 20px rgba(236, 72, 153, 0.2);
    position: relative;
    overflow: hidden;
}

.price-reveal-link::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.6s ease;
}

.price-reveal-link:hover::before {
    left: 100%;
}

.price-reveal-link:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5),
                0 0 30px rgba(236, 72, 153, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.price-reveal-link i {
    font-size: 1rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.price-reveal-link:hover i {
    transform: scale(1.2) rotate(12deg);
}

/* CTA Button Restructured */
.cta-button.cta-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: calc(100% - 28px) !important;
    padding: 12px 16px !important;
    margin: 12px 14px !important;
    background: var(--gradient-purple-magenta) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cta-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.cta-button-icon i {
    font-size: 1rem;
}

.cta-button-text {
    flex: 1;
    text-align: center;
}

.cta-button-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cta-button.cta-primary:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
}

.cta-button.cta-primary:hover .cta-button-arrow {
    transform: translateX(4px);
}

.cta-button.cta-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 ease;
}

.cta-button.cta-primary:hover::before {
    left: 100%;
}

.cta-button.cta-primary:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Divider */
.cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 14px;
    position: relative;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.cta-divider span {
    padding: 0 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
}

/* Features List Optimized */
.cta-card .features-list {
    padding: 0 14px 12px !important;
    margin-top: 0 !important;
}

/* Trust Badge */
.cta-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.06));
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 0 0 16px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    margin-top: 8px;
}

.cta-trust-badge i {
    font-size: 0.85rem;
    color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .price-current {
        font-size: 1.6rem !important;
    }

    .cta-button.cta-primary {
        font-size: 0.85rem !important;
        padding: 10px 14px !important;
    }

    .cta-button-icon,
    .cta-button-arrow {
        width: 28px;
        height: 28px;
    }
}
