/* Estilos customizados para o site da Hody */

/* Header dinâmico */
.header-over-light {
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.header-over-light .text-white {
    color: #1f2937 !important; /* gray-800 */
}

.header-over-light .text-primary-300 {
    color: #8b47ff !important; /* primary-500 */
}

.header-over-light .hover\\:text-primary-300:hover {
    color: #7b2cbf !important; /* primary-600 */
}

.header-over-light .active-section {
    background: rgba(139, 71, 255, 0.15) !important;
    border: 1px solid rgba(139, 71, 255, 0.3) !important;
}

.header-over-light .active-section .relative.z-10 {
    color: #8b47ff !important;
}

.header-over-dark {
    backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.header-over-dark .text-white {
    color: #ffffff !important;
}

.header-over-dark .active-section {
    background: rgba(139, 71, 255, 0.3) !important;
    border: 1px solid rgba(139, 71, 255, 0.5) !important;
}

.header-over-dark .active-section .relative.z-10 {
    color: #e0c3ff !important;
}

/* Transição suave para mudanças do header */
header {
    transition: all 0.3s ease !important;
}

header * {
    transition: color 0.3s ease !important;
}

/* Estilos modernos para navegação */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b47ff;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Estilos para seção ativa */
.active-section {
    background: rgba(139, 71, 255, 0.2) !important;
    border: 1px solid rgba(139, 71, 255, 0.3) !important;
    transform: scale(1.02) !important;
}

.active-section::before {
    width: 100% !important;
}

.active-section .relative.z-10 {
    color: #d1b3ff !important;
}

.active-section .absolute.inset-0 {
    transform: scaleX(1) !important;
    background: rgba(139, 71, 255, 0.1) !important;
}

/* Animações personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-3px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 71, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 71, 255, 0.6);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

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

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

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

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

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

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

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 71, 255, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

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

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 100%);
    padding: 2px;
    border-radius: 0.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: white;
    border-radius: 0.375rem;
    z-index: -1;
}

.gradient-bg-animated {
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 50%, #8b47ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Estilos para cards modernos */
.card-modern {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.card-modern:hover::before {
    left: 100%;
}

/* Estilos para elementos glassmorphism */
.glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Estilos para scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 100%);
    border-radius: 10px;
}

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

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Loading spinner para overlays */
.loading-spinner-overlay {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b47ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

/* Estilos para formulários modernos */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #8b47ff;
    box-shadow: 0 0 0 3px rgba(139, 71, 255, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    color: #6b7280;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: #8b47ff;
    background: white;
    padding: 0 0.5rem;
}

/* Estilos para botões modernos */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 71, 255, 0.3);
}

/* Estilos para seções com background decorativo */
.section-with-bg {
    position: relative;
    overflow: hidden;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 71, 255, 0.05), transparent);
    animation: gradientShift 8s ease-in-out infinite;
}

/* Estilos para elementos de destaque */
.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.highlight-text:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Estilos para ícones animados */
.icon-bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

.icon-rotate {
    animation: spin 2s linear infinite;
}

/* Estilos para elementos de progresso */
.progress-bar {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #8b47ff 0%, #7b2cbf 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Estilos para elementos com parallax */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Estilos responsivos aprimorados */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-modern {
        margin-bottom: 1rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-modern {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Estilos para modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1f2937;
        --text-color: #f9fafb;
        --card-bg: #374151;
    }
    
    .dark-mode body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .dark-mode .card-modern {
        background: rgba(55, 65, 81, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Utilitários */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #8b47ff, #7b2cbf) 1;
}

.clip-path-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.parallax {
    transform: translateZ(0);
    will-change: transform;
}

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

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

.gpu-acceleration {
    transform: translateZ(0);
}

/* Adicionais para microinterações */
.micro-interaction {
    transition: all 0.15s ease;
}

.micro-interaction:hover {
    transform: scale(1.02);
}

.micro-interaction:active {
    transform: scale(0.98);
}

/* Estilos para elementos flutuantes */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

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