/* app/static/css/pricing-enhancements.css */
/* Clean & Professional Pricing Page Enhancements */

/* Subtle Loading States */
.pricing-cards.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pricing-cards.loading .pricing-card {
    animation: cleanPulse 2s ease-in-out infinite;
}

@keyframes cleanPulse {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.7;
    }
}

/* Refined Card Interactions */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.1),
        0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.pricing-card.popular:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(99, 102, 241, 0.15),
        0 10px 20px -4px rgba(99, 102, 241, 0.1);
}

/* Clean Button Interactions */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* Subtle Feature List Animation */
.feature-item {
    opacity: 0;
    animation: cleanSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.15s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }
.feature-item:nth-child(4) { animation-delay: 0.25s; }
.feature-item:nth-child(5) { animation-delay: 0.3s; }
.feature-item:nth-child(6) { animation-delay: 0.35s; }
.feature-item:nth-child(7) { animation-delay: 0.4s; }
.feature-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes cleanSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Professional Feature Icons */
.feature-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.feature-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Clean Toggle Switch */
.toggle-slider {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.slider-thumb {
    background: #ffffff;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Price Update Animation */
.price-amount {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-updating {
    animation: cleanPriceUpdate 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cleanPriceUpdate {
    0% { 
        transform: scale(1);
        color: #1e293b;
    }
    50% { 
        transform: scale(1.05);
        color: #6366f1;
    }
    100% { 
        transform: scale(1);
        color: #1e293b;
    }
}

/* Subtle Offer Banner Animation */
.offer-banner {
    animation: subtleGlow 4s ease infinite;
}

@keyframes subtleGlow {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
    }
    50% { 
        box-shadow: 0 6px 16px rgba(251, 191, 36, 0.2);
    }
}

/* Clean Popular Badge */
.popular-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.popular-badge:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Professional Notification Styles */
.pricing-update-notification {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.95)
    );
    animation: cleanSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Refined Hover Effects */
.addon-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.addon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.addon-card:hover .addon-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Clean FAQ Interactions */
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.faq-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Trusted Companies Enhancement */
.company-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-logo:hover {
    transform: translateY(-2px);
}

.logo-placeholder:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Clean Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: cleanSpin 1s linear infinite;
}

@keyframes cleanSpin {
    to { transform: rotate(360deg); }
}

/* Subtle Card Entrance Animation */
.pricing-card {
    opacity: 0;
    animation: cleanFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.15s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }
.pricing-card:nth-child(4) { animation-delay: 0.25s; }

@keyframes cleanFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Section Animations */
.addons-section,
.faq-section {
    animation: cleanFadeIn 0.6s ease forwards;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pricing-card:hover {
        transform: translateY(-4px);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .feature-item {
        animation-delay: 0s !important;
    }
    
    .pricing-card {
        animation-delay: 0s !important;
    }
    
    .company-logo:hover {
        transform: translateY(-1px);
    }
    
    .addon-card:hover {
        transform: translateY(-2px);
    }
}

/* Print Styles */
@media print {
    .pricing-hero {
        background: #ffffff !important;
        color: #1f2937 !important;
    }
    
    .pricing-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .cta-button {
        background: #6366f1 !important;
        color: white !important;
        border: 1px solid #6366f1 !important;
    }
    
    .popular-badge,
    .offer-banner {
        background: #6366f1 !important;
        color: white !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pricing-card,
    .feature-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .pricing-card {
        border: 2px solid #000000;
    }
    
    .cta-button {
        border: 2px solid #000000;
    }
    
    .feature-icon {
        background: #000000;
        border: 1px solid #000000;
    }
    
    .popular-badge {
        background: #000000;
        color: #ffffff;
        border: 1px solid #ffffff;
    }
}

/* Professional Focus States */
.cta-button:focus-visible,
.toggle-slider:focus-visible,
.faq-item:focus-visible,
.addon-card:focus-visible,
.company-logo:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Smooth Transitions for All Interactive Elements */
button,
a,
.pricing-card,
.addon-card,
.faq-item,
.company-logo,
.feature-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clean Selection Styling */
::selection {
    background: rgba(99, 102, 241, 0.1);
    color: #1e293b;
}

/* Professional Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Clean Focus Ring */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}