/* Index Page Styles - Pure CSS */

/* Pricing Toggle Container */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    background-color: rgba(243, 244, 246, 0.6);
    border-radius: 1rem;
    padding: 0.25rem;
    position: relative;
    min-width: 240px;
}

/* Save Badge */
.pricing-toggle-save-badge {
    position: absolute;
    top: -20px;
    right: 24px;
    background-color: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    z-index: 20;
    animation: pulse 2s infinite;
}

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

/* Toggle Buttons */
.pricing-toggle-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-align: center;
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.pricing-toggle-button.active {
    background-color: white;
    color: #2563eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pricing-toggle-button:not(.active):hover {
    color: #1f2937;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

/* Default: Show Monthly, Hide Yearly */
.pricing-card .price-yearly {
    display: none;
}

.pricing-card.monthly .price-monthly {
    display: inline;
}

.pricing-card.yearly .price-monthly {
    display: none;
}

.pricing-card.yearly .price-yearly {
    display: inline;
}

/* Additional hover effects for pricing cards */
.pricing-card:hover {
    transform: translateY(-2px);
}

/* Ensure Professional card maintains its scale on hover */
.pricing-card[class*="scale-105"]:hover {
    transform: translateY(-2px) scale(1.05);
}

.pricing-card:hover .pricing-card-monthly,
.pricing-card:hover .pricing-card-yearly {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-toggle {
        min-width: 200px;
    }
    
    .pricing-toggle-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .pricing-toggle-save-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}