/* Pricing Section Animations - 4 Cards Support - Enhanced */

/* Pricing Card Base Styles */
.pricing-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Pricing Groups */
.pricing-group {
    transition: all 0.3s ease;
}

/* Fade Right Animation for Job Seeker Cards */
.pricing-card-jobseeker-free.fade-right,
.pricing-card-jobseeker-premium.fade-right {
    animation: fadeRightEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade Left Animation for Employer Cards */
.pricing-card-employer-free.fade-left,
.pricing-card-employer-premium.fade-left {
    animation: fadeLeftEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeRightEntrance {
    from {
        opacity: 0;
        transform: translateX(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeLeftEntrance {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Enhanced Hover Effects for Free Cards */
.pricing-card-jobseeker-free:hover,
.pricing-card-employer-free:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gray-500);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Hover Effects for Premium Cards */
.pricing-card-jobseeker-premium:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
}

.pricing-card-employer-premium:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4);
}

/* Glow Effects for Premium Cards */
.pricing-card-jobseeker-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.15));
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.pricing-card-jobseeker-premium:hover::before {
    opacity: 1;
}

.pricing-card-employer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.pricing-card-employer-premium:hover::before {
    opacity: 1;
}

/* Price Number Animation */
.price-jobseeker-premium,
.price-employer-premium {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-jobseeker-premium:hover .price-jobseeker-premium {
    transform: scale(1.15);
    color: #3B82F6;
}

.pricing-card-employer-premium:hover .price-employer-premium {
    transform: scale(1.15);
    color: #10B981;
}

/* Feature List Animations */
.pricing-card ul {
    flex-grow: 1;
}

.pricing-card ul li {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px 0;
    border-radius: 8px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.pricing-card-jobseeker-free ul li:hover,
.pricing-card-jobseeker-premium ul li:hover {
    padding-left: 18px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
    transform: translateX(5px);
    border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.pricing-card-employer-free ul li:hover,
.pricing-card-employer-premium ul li:hover {
    padding-left: 18px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
    transform: translateX(5px);
    border-left: 3px solid rgba(16, 185, 129, 0.5);
}

/* Staggered Feature Animation on Card Hover */
.pricing-card:hover ul li:nth-child(1) { animation: featureSlideIn 0.3s ease-out 0.05s both; }
.pricing-card:hover ul li:nth-child(2) { animation: featureSlideIn 0.3s ease-out 0.1s both; }
.pricing-card:hover ul li:nth-child(3) { animation: featureSlideIn 0.3s ease-out 0.15s both; }
.pricing-card:hover ul li:nth-child(4) { animation: featureSlideIn 0.3s ease-out 0.2s both; }
.pricing-card:hover ul li:nth-child(5) { animation: featureSlideIn 0.3s ease-out 0.25s both; }
.pricing-card:hover ul li:nth-child(6) { animation: featureSlideIn 0.3s ease-out 0.3s both; }

@keyframes featureSlideIn {
    from {
        opacity: 0.5;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced CTA Button Animations */
.pricing-card a {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
}

/* Ripple Effect on Hover */
.pricing-card a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.pricing-card a:hover::before {
    width: 400%;
    height: 400%;
}

/* Shine Effect */
.pricing-card a::after {
    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;
}

.pricing-card a:hover::after {
    left: 100%;
}

/* Premium CTA Hover Effects */
.pricing-card-jobseeker-premium a:hover,
.pricing-card-employer-premium a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

.pricing-card-employer-premium a:hover {
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
}

/* Free CTA Hover Effects */
.pricing-card-jobseeker-free a:hover,
.pricing-card-employer-free a:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--gray-400);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Badge Animations */
.pricing-card > div:first-child {
    animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Pulse Animation for Recommended Badge */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.7);
    }
}

/* Smooth Entrance Delays */
.fade-up {
    animation: fadeUpSmooth 0.6s ease-out forwards;
}

@keyframes fadeUpSmooth {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pricing-card {
        min-height: auto;
    }
    
    .pricing-card-jobseeker-free:hover,
    .pricing-card-jobseeker-premium:hover,
    .pricing-card-employer-free:hover,
    .pricing-card-employer-premium:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    /* Simplify animations on mobile */
    @keyframes fadeRightEntrance {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeLeftEntrance {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .pricing-group {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Disable staggered animations on mobile */
    .pricing-card:hover ul li {
        animation: none;
    }
    
    /* Adjust badge positioning on mobile */
    .pricing-card > div:first-child {
        font-size: 10px;
        padding: 5px 14px;
    }
    
    /* Smaller icons on mobile */
    .pricing-card > div:nth-child(2) > div:first-child {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
    }
    
    /* Smaller price on mobile */
    .price-jobseeker-premium,
    .price-employer-premium {
        font-size: 42px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .pricing-card {
        padding: 24px !important;
    }
    
    .pricing-card h3 {
        font-size: 18px !important;
    }
    
    .price-jobseeker-premium,
    .price-employer-premium {
        font-size: 38px !important;
    }
    
    .pricing-card ul li {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .pricing-card a {
        padding: 14px !important;
        font-size: 14px !important;
    }
}
