/* =============================================
   TRAYON - Header & Navigation Styles
   Estilos específicos do header e navegação
   ============================================= */

/* ===== HEADER CONTAINER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

/* ===== LOGO ===== */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 2.5rem;
    transition: transform 0.3s ease;
}

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

@media (min-width: 768px) {
    .logo-container img {
        height: 3rem;
    }
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #22d3ee;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #22d3ee;
}

.nav-link.active::after {
    width: 80%;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== LANGUAGE SELECTOR ===== */
#languageSelectorContainer,
#languageSelectorMobile {
    position: relative;
}

/* Estilos são aplicados pelo i18n.min.js */

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-btn:hover span {
    background: #22d3ee;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE MENU SIDEBAR ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1200;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

/* ===== MOBILE MENU CLOSE BUTTON ===== */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: #22d3ee;
    transform: rotate(90deg);
}

/* ===== MOBILE MENU HEADER ===== */
.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.mobile-menu-header img {
    height: 2rem;
}

/* ===== MOBILE MENU NAVIGATION ===== */
.mobile-menu-nav {
    padding: 1.5rem 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #d1d5db;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover {
    background: rgba(6, 182, 212, 0.05);
    border-left-color: #06b6d4;
    color: #22d3ee;
}

.mobile-menu-nav a.active {
    background: rgba(6, 182, 212, 0.1);
    border-left-color: #06b6d4;
    color: #22d3ee;
}

.mobile-menu-nav a svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== MOBILE MENU SECTIONS ===== */
.mobile-menu-section {
    padding: 1.5rem;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.mobile-menu-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 1rem;
}

/* ===== MOBILE MENU SOCIAL LINKS ===== */
.mobile-menu-social {
    display: flex;
    gap: 1rem;
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    color: #22d3ee;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-social a svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== HEADER SPACING (Para compensar fixed header) ===== */
body {
    padding-top: 4.5rem; /* Altura do header */
}

@media (min-width: 768px) {
    body {
        padding-top: 5rem;
    }
}

/* ===== SCROLLBAR MOBILE MENU ===== */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 2px;
}

/* ===== ANIMATION - Fade In ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: fadeIn 0.5s ease;
}
