/**
 * Card Components
 * Feature cards, pricing cards, testimonial cards, etc.
 */

/* Base Card */
.card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    transition: all var(--transition-base);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
}

/* Feature Card */
.feature-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    transition: all var(--transition-base);
    border: 1px solid var(--theme-border);
}

.feature-card.hover-wave {
    isolation: isolate; /* Keep wave animation layers contained */
    --wave-width: 340px;
    --wave-height: 170%;
    --wave-bottom-offset: -38%;
    --wave-right-offset: -240px;
    --wave-color-start: rgba(var(--theme-alternate-magenta-rgb), 0.22);
    --wave-color-end: rgba(var(--theme-primary-rgb), 0.1);
    --wave-start-translate: 85%;
    --wave-mid-translate: -320%;
    --wave-end-translate: -400%;
    --wave-duration: 3.1s;
    --wave-easing: cubic-bezier(0.6, 0, 0.4, 1);
    --wave-blur-start: 14px;
    --wave-blur-mid: 11px;
    --wave-blur-end: 18px;
    --wave-opacity-start: 1;
    --wave-opacity-mid: 1;
    --wave-opacity-end: 0;
    --wave-overlay-z-index: 1;
}

.feature-card.hover-wave > * {
    position: relative;
    z-index: 2; /* Keep content above hover wave */
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    background: var(--theme-gradient-primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--theme-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.feature-stat {
    display: inline-block;
    background: rgba(var(--theme-primary-rgb), 0.1);
    padding: 0.5rem var(--spacing-sm);
    border-radius: var(--radius-round);
    font-weight: var(--font-weight-semibold);
    color: var(--theme-primary);
    font-size: 0.9rem;
}

/* Pricing Card */
.pricing-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 2px solid var(--theme-border);
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    margin-top: 20px; /* Add space for the badge */
}

.pricing-card.popular {
    border-color: var(--theme-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(var(--theme-primary-rgb), 0.2);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-gradient-primary);
    color: white;
    padding: 0.5rem var(--spacing-md);
    border-radius: var(--radius-round);
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    z-index: 1; /* Keep badge below section content */
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1.25rem;
    color: var(--theme-text-secondary);
    font-weight: var(--font-weight-medium);
}

.pricing-description {
    color: var(--theme-text-secondary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--theme-border);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--theme-success);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-card .btn-primary-custom {
    width: 100%;
}

.pricing-card.popular .btn-primary-custom {
    background: var(--theme-gradient-primary);
}

/* Testimonial Card */
.testimonial-card {
    background: var(--theme-bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    border: 1px solid var(--theme-border);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--theme-primary);
    opacity: 0.2;
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-md);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    margin-top: var(--spacing-lg);
}

.testimonial-text {
    color: var(--theme-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--theme-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
}

.testimonial-info h4 {
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-rating {
    color: #fbbf24;
    margin-top: 0.5rem;
}

/* Step Card */
.step-card {
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--theme-gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    position: relative;
    z-index: 2;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: var(--theme-text-secondary);
    line-height: 1.8;
}

.step-connector {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: var(--theme-gradient-primary);
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .step-connector {
        display: none;
    }
}
