/* Header Styles and Animations */

/* Header scroll animation */
#main-header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

/* Estado inicial do header - texto branco por padrão (assumindo que inicia sobre o vídeo) */
#main-header .menu-link {
    color: white;
}

#main-header #menu-compact-btn {
    color: white;
}

#main-header #mobile-menu-btn {
    color: white;
}

/* Enhanced backdrop blur effect */
#main-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header when scrolled */
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header fora do vídeo - texto escuro */
#main-header.scrolled .menu-link {
    color: #374151 !important; /* text-gray-700 */
}

#main-header.scrolled .menu-link:hover {
    color: #1E90FF !important;
}

#main-header.scrolled #menu-compact-btn {
    color: #374151 !important;
}

#main-header.scrolled #menu-compact-btn:hover {
    color: #1E90FF !important;
}

#main-header.scrolled #mobile-menu-btn {
    color: #1E90FF !important;
}

/* Header sobre o vídeo - texto branco */
#main-header.over-video {
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-header.over-video .menu-link {
    color: white !important;
}

#main-header.over-video .menu-link:hover {
    color: #1E90FF !important;
}

#main-header.over-video #menu-compact-btn {
    color: white !important;
}

#main-header.over-video #menu-compact-btn:hover {
    color: #1E90FF !important;
}

#main-header.over-video #mobile-menu-btn {
    color: white !important;
}

#main-header.over-video #mobile-menu-btn:hover {
    color: #1E90FF !important;
}

/* Manter logo sempre com cor original */

#main-header .logo-hover {
    color: #1E90FF !important;
    max-height: 80px;
    width: auto;
    height: 80px;
}
/* Logo hover effect */
.logo-hover {
    transition: transform 0.2s ease, color 0.2s ease;
}

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

/* Menu links hover effects */
.menu-link {
    position: relative;
    transition: color 0.2s ease;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E90FF, #32CD32);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 100%;
}

/* Menu sobre vídeo - underline branco */
#main-header.over-video .menu-link::after {
    background: linear-gradient(90deg, #ffffff, #1E90FF);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    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 ease;
}

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

/* Dropdown menu animations */
#compact-menu,
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    position: relative;
    z-index: 1000;
}

#compact-menu.hidden,
#mobile-menu.hidden {
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

#compact-menu:not(.hidden),
#mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 500px;
    overflow: visible;
}

/* Mobile menu específico */
#mobile-menu {
    width: 100%;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
    #mobile-menu {
        display: block;
    }
    
    #mobile-menu.hidden {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Mobile menu items animation */
#mobile-menu a {
    transition: all 0.2s ease;
    transform: translateX(0);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
}

#mobile-menu a:hover {
    transform: translateX(8px);
    background-color: rgba(30, 144, 255, 0.05);
    color: #1E90FF;
    border-radius: 8px;
}

#mobile-menu a i {
    margin-right: 8px;
    width: 20px;
    color: #1E90FF;
}

/* Compact menu items animation */
#compact-menu a {
    transition: all 0.2s ease;
}

#compact-menu a:hover {
    transform: translateX(4px);
    color: #1E90FF;
}

/* Button group spacing */
.btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .menu-responsive {
        display: none;
    }
}

@media (min-width: 1280px) {
    .menu-compact {
        display: none;
    }
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-loading.loading::after {
    opacity: 1;
}

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

/* Badge animation */
.badge-animate {
    animation: pulse 2s infinite;
}

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

/* Icon animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

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

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a, .interactive {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #main-header {
        border-bottom: 2px solid #000;
    }
    
    .menu-link::after {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 