/* Custom CSS - Corpo e Mente */

/* Animações personalizadas */
@keyframes bounce-once {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.animate-bounce-once {
    animation: bounce-once 1s ease-in-out;
}

/* Efeitos de blur personalizados */
.blur-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.blur-card:hover {
    backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Gradientes animados */
.animated-gradient {
    background: linear-gradient(-45deg, #ec4899, #f59e0b, #10b981, #3b82f6);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botões com efeitos especiais */
.btn-glow {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
}

/* Cards de resultados */
.result-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Cronômetro */
.countdown-timer {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

/* Carousel de depoimentos */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Formulário de anamnese */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-checkbox {
    margin-right: 0.5rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: #ec4899;
    background: #fdf2f8;
}

.checkbox-item input:checked + label {
    background: #fdf2f8;
    border-color: #ec4899;
}

/* Estilos específicos para thumbnails do Pilates */
.pilates-thumbnail {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pilates-thumbnail:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pilates-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.pilates-thumbnail:hover::before {
    transform: translateX(100%);
}

/* Efeitos para os padrões decorativos */
.pilates-pattern {
    animation: float 6s ease-in-out infinite;
}

.pilates-pattern:nth-child(2) {
    animation-delay: -2s;
}

.pilates-pattern:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Efeito pulsante para o botão de play */
.pilates-play-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Efeitos para badges */
.pilates-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pilates-badge:hover {
    transform: scale(1.05);
}

/* Animação para os cards de vídeo */
.pilates-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.pilates-card:nth-child(1) { animation-delay: 0.1s; }
.pilates-card:nth-child(2) { animation-delay: 0.2s; }
.pilates-card:nth-child(3) { animation-delay: 0.3s; }
.pilates-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Efeito shimmer para loading */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Estilos específicos para cards de e-books */
.ebook-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ebook-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.ebook-card img {
    transition: transform 0.3s ease;
}

.ebook-card:hover img {
    transform: scale(1.1);
}

/* Animação para os cards de e-books */
.ebook-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.ebook-card:nth-child(1) { animation-delay: 0.1s; }
.ebook-card:nth-child(2) { animation-delay: 0.2s; }
.ebook-card:nth-child(3) { animation-delay: 0.3s; }
.ebook-card:nth-child(4) { animation-delay: 0.4s; }
.ebook-card:nth-child(5) { animation-delay: 0.5s; }
.ebook-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito especial nos botões dos e-books */
.ebook-card a[href*=".php"] {
    position: relative;
    overflow: hidden;
}

.ebook-card a[href*=".php"]: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;
}

.ebook-card a[href*=".php"]:hover:before {
    left: 100%;
}

/* Badges dos e-books */
.ebook-card .absolute span {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        margin-bottom: 1rem;
    }
    
    .pilates-thumbnail {
        height: 200px;
    }
    
    .pilates-thumbnail:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .ebook-card {
        margin-bottom: 1rem;
    }
    
    .ebook-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #ec4899;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alertas personalizados */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Transições suaves */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* ========================================
   MOBILE NAVIGATION MENU
   ======================================== */

/* Mobile menu button animations */
#mobileMenuBtn {
    transition: all 0.2s ease;
}

#mobileMenuBtn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

#mobileMenuBtn:active {
    transform: scale(0.95);
}

/* Mobile menu container */
#mobileMenu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #e5e7eb;
}

/* Mobile menu links */
#mobileMenu a {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#mobileMenu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    transition: left 0.5s ease;
}

#mobileMenu a:hover::before {
    left: 100%;
}

/* Mobile menu icons */
#mobileMenu svg {
    transition: all 0.2s ease;
}

#mobileMenu a:hover svg {
    transform: scale(1.1);
    color: #ec4899;
}

/* Logout link special styling */
#mobileMenu a[href*="logout"]:hover {
    background-color: rgba(220, 38, 38, 0.05) !important;
}

#mobileMenu a[href*="logout"]:hover svg {
    color: #dc2626 !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #mobileMenu .flex {
        padding: 0.75rem 0;
    }
    
    #mobileMenu svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Menu slide animation enhancement */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#mobileMenu:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

/* Hamburger icon animation */
#menuIcon, #closeIcon {
    transition: all 0.3s ease;
}

#mobileMenuBtn:hover #menuIcon,
#mobileMenuBtn:hover #closeIcon {
    transform: rotate(90deg);
}

/* ========================================
   WATER SCHEDULE CARDS - MARKETING ENHANCED
   ======================================== */

/* Water schedule card animations */
.water-schedule-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.water-schedule-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.water-schedule-card:hover::before {
    animation: waterShimmer 1.5s ease-in-out;
}

@keyframes waterShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Water card hover effects */
.water-schedule-card:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Benefit cards animations */
.water-schedule-card:nth-child(1) {
    animation-delay: 0.1s;
}

.water-schedule-card:nth-child(2) {
    animation-delay: 0.2s;
}

.water-schedule-card:nth-child(3) {
    animation-delay: 0.3s;
}

.water-schedule-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Benefits section enhanced styling */
.water-benefits-enter {
    animation: slideInLeft 0.6s ease-out forwards;
}

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

/* Urgency section pulsing effect */
.urgency-pulse {
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
}

/* Statistics counter animation */
.stats-counter {
    animation: countUp 2s ease-out;
}

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

/* Floating water drop animation */
.floating-drop {
    position: relative;
}

.floating-drop::after {
    content: '💧';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: floatingDrop 3s ease-in-out infinite;
    font-size: 1.2em;
}

@keyframes floatingDrop {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    75% {
        transform: translateY(5px) rotate(-5deg);
    }
}

/* Responsive adjustments for water cards */
@media (max-width: 640px) {
    .water-schedule-card {
        padding: 1rem;
    }
    
    .water-schedule-card:hover {
        transform: scale(1.05);
    }
}

/* CTA button enhanced */
.water-cta-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.water-cta-btn::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 ease;
}

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

.water-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
