/* CSS Global da Clínica Bdente */

/* Animações básicas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseSoft {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes floatingForm {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.002); }
}

@keyframes slideUpEnter {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0px) scale(1); 
    }
}

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

/* Classes de animação */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-pulse-soft {
    animation: pulseSoft 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* Layout classes */
.gradient-bg {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 50%, #7F1D1D 100%);
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B91C1C, #991B1B);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Formulários */
.floating-form {
    animation: floatingForm 8s ease-in-out infinite;
}

.slide-up-enter {
    animation: slideUpEnter 1s ease-out;
}

/* Tabs */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-panel {
    transition: all 0.3s ease;
}

.tab-panel.active {
    animation: fadeInTab 0.5s ease-out;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    min-height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
}

.slide.prev {
    transform: translateX(-30px);
}

.slide.next {
    transform: translateX(30px);
}

/* Slider Navigation */
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.slider-dot.active {
    background: #FCD34D;
    border-color: #FCD34D;
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.6);
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Video Player Styles */
.video-overlay {
    transition: all 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #FCD34D;
}

/* Auto-play progress indicator */
.slider-progress {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    background: #FCD34D;
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.left {
        left: 4px;
    }
    
    .slider-arrow.right {
        right: 4px;
    }
}

/* --- Novas utilidades de cor: substituem o amarelo por degradê vermelho→preto --- */
.bg-accent-solid {
    background: #DC2626; /* tom principal vermelho */
    color: #ffffff; /* texto branco por padrão para garantir contraste */
}
.bg-accent-solid-dark {
    background: #991B1B; /* hover/variante mais escura */
    color: #ffffff;
}
.bg-accent-gradient {
    background: linear-gradient(90deg, #DC2626 0%, #000000 100%);
}

/* Teste: fundo preto -> vermelho (gradiente invertido) */
.bg-accent-black-gradient {
    background: linear-gradient(90deg, #000000 0%, #7F1D1D 50%, #DC2626 100%);
    color: #ffffff;
}

/* Teste: texto cinza neutro para elementos secundários */
.text-muted-gray {
    color: #6B7280; /* gray-500 */
}
.text-accent-solid {
    color: #DC2626;
}
.text-accent-on-dark {
    color: #ffffff; /* use em textos que ficam sobre fundos vermelhos */
}

.accent-badge {
    display: inline-block;
    background: #DC2626;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
}
.text-accent-gradient {
    background: linear-gradient(90deg,#DC2626,#000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.border-accent-solid {
    border-color: #DC2626;
}
.hover-bg-accent-dark:hover {
    background-color: #B91C1C !important;
}
.hover-text-accent-solid:hover {
    color: #DC2626 !important;
}
.focus-ring-accent:focus {
    box-shadow: 0 0 0 5px rgba(220,38,38,0.12);
    border-color: #DC2626 !important;
    outline: none;
}

/* Ajuste visual para o indicador do slider (antes amarelo) */
.slider-dot.active {
    background: #DC2626;
    border-color: #DC2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.45);
}

/* Utilidade para opacidade em elementos decorativos (substitui bg-yellow-400/30) */
.bg-accent-solid.bg-opacity-30 { background-color: rgba(220,38,38,0.3); }

/* --- Compat: mapear classes 'yellow' existentes para prata (substituição global visual) --- */
/* prata */
.bg-yellow-400 { background-color: #C0C0C0 !important; }
.text-yellow-300 { color: #FBBF24 !important; }
.text-yellow-400 { color: #eddd1f !important; }
.border-yellow-300 { border-color: #C0C0C0 !important; }
.bg-yellow-400\/30 { background-color: rgba(192,192,192,0.3) !important; }

/* versões com hover: (Tailwind style class names contain colon/backslash, precisamos escapar) */
.hover\:bg-yellow-300:hover { background-color: #E5E7EB !important; }
.hover\:text-yellow-300:hover { color: #9CA3AF !important; }

/* common utility names used in markup */
.hover-text-yellow-300:hover { color: #9CA3AF !important; }
.hover-bg-yellow-300:hover { background-color: #E5E7EB !important; }

/* stars / small icons */
.text-yellow-400 { color: #C0C0C0 !important; }

/* Tabs/buttons active */
.tab-btn.active.bg-yellow-400 { background-color: #C0C0C0 !important; color: #111827 !important; }

/* Slider indicators: prata */
.slider-dot.active {
    background: #C0C0C0;
    border-color: #C0C0C0;
    box-shadow: 0 0 12px rgba(192,192,192,0.45);
}
.slider-progress-bar { background: #C0C0C0; }

/* Full-bleed section + simple parallax effect */
.section-full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0; /* vertical spacing */
}

.parallax-gradient {
    background-image: linear-gradient(135deg, #7F1D1D 0%, #DC2626 40%, #991B1B 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

/* Ensure inner content keeps rounded panel look */
.section-full-bleed > .max-w-7xl > .grid {
    background: rgba(255,255,255,0.06); /* subtle overlay to separate content */
    border-radius: 1.5rem;
}

@media (max-width: 1024px) {
    .section-full-bleed { padding: 2rem 0; }
    .section-full-bleed > .max-w-7xl > .grid { padding: 1.5rem; }
}
