/* Estilos adicionais para o Calendra */

/* Animações personalizadas */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes de animação */
.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* Gradientes personalizados */
.gradient-text {
    background: linear-gradient(135deg, #7B4EFF 0%, #FFA8A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    background: linear-gradient(135deg, #7B4EFF 0%, #FFA8A8 100%);
    padding: 2px;
    border-radius: 12px;
}

.gradient-border-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
}

/* Efeitos hover personalizados */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(123, 78, 255, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(123, 78, 255, 0.3);
}

/* Botões personalizados */
.btn-primary {
    background: linear-gradient(135deg, #7B4EFF 0%, #9F7AEA 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(123, 78, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #7B4EFF;
    color: #7B4EFF;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7B4EFF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(123, 78, 255, 0.3);
}

/* Cards personalizados */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 78, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(123, 78, 255, 0.15);
    border-color: rgba(123, 78, 255, 0.3);
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7B4EFF 0%, #FFA8A8 100%);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(123, 78, 255, 0.2);
}

.pricing-card.featured {
    border: 2px solid #7B4EFF;
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(123, 78, 255, 0.02) 0%, rgba(255, 168, 168, 0.02) 100%);
}

.pricing-card.featured::before {
    height: 0;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #7B4EFF 0%, #9F7AEA 100%);
    border-radius: 1.5rem 1.5rem 0 0;
}

/* Alinhamento dos botões nos cards de preços */
.pricing-card ul {
    flex-grow: 1;
}

.pricing-card button {
    margin-top: auto;
}

/* Badge "Mais Popular" */
.pricing-card.featured {
    margin-top: 0;
    padding-top: 4rem;
}

.pricing-card.featured .absolute {
    z-index: 10;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card.featured .absolute span {
    background: rgba(139, 69, 255, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Toggle Switch Styles */
#billing-toggle:checked + label .dot {
    transform: translateX(24px);
    background-color: #8b45ff;
}

#billing-toggle:checked + label > div {
    background-color: #8b45ff;
}

/* Pricing Display Animations */
.pricing-display {
    position: relative;
    min-height: 80px;
}

.monthly-price,
.annual-price {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.annual-price.hidden,
.monthly-price.hidden {
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.annual-price:not(.hidden),
.monthly-price:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Free Trial Badge */
.bg-green-50 {
    background-color: #f0fdf4;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.pricing-card.featured .text-center:first-of-type {
    position: relative;
    z-index: 5;
}

/* Seções personalizadas */
.hero-section {
    background: linear-gradient(135deg, rgba(123, 78, 255, 0.05) 0%, rgba(255, 168, 168, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(123, 78, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #7B4EFF;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(123, 78, 255, 0.15);
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Indicadores de loading */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Melhorias de acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states melhorados */
button:focus,
a:focus {
    outline: 2px solid #7B4EFF;
    outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7B4EFF 0%, #FFA8A8 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6B3EEF 0%, #FF9898 100%);
}

/* Otimizações de performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Estados de carregamento */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Melhorias para impressão */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gradient-bg {
        background: #7B4EFF !important;
        -webkit-print-color-adjust: exact;
    }
}