/* ========================================
   HEADER COMPARTILHADO - NEXUS (LIMPO)
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
}

/* ========================================
   LAYOUT ESPECÍFICO PARA SIMULADOR
   ======================================== */

/* Header do simulador - layout próprio */
.header.simulator-header {
    padding: 0.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header.simulator-header .header-content {
    display: flex;
    align-items: center;
    padding: 0.3rem 1.5rem; /* aumente padding esquerdo para evitar corte */
    width: 100%;
    margin: 0;
    position: relative;
}

.header.simulator-header .header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 0; /* removido negativo para não cortar logo */
}

.header.simulator-header .header-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   LAYOUT PADRÃO PARA LANDING PAGE
   ======================================== */

.header:not(.simulator-header) {
    padding: 0.5rem 0;
}

.header:not(.simulator-header).scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header:not(.simulator-header) .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5rem;
    width: 100%;
    margin: 0;
}

.header:not(.simulator-header) .header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 0;
}

.header:not(.simulator-header) .header-right {
    display: flex;
    align-items: center;
    margin-right: 0;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Logo menor para o simulador */
.header.simulator-header .logo img {
    height: 42px;
}

/* Títulos */
.battle-title {
    line-height: 1;
    display: flex;
    align-items: center;
}

.title-main {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #1B365D;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

/* Título menor para o simulador */
.header.simulator-header .title-main {
    font-size: 2.1rem;
}

.title-sub {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.1em;
    color: #1B365D;
    margin-left: 0.5em;
}

/* Subtítulo menor para o simulador */
.header.simulator-header .title-sub {
    font-size: 1.3rem;
}

/* Links */
.header-link {
    text-decoration: none;
    color: inherit;
}

.header-link:hover {
    color: inherit;
    opacity: 0.8;
}

/* Botão CTA estilo Nexus */
.nexus-btn {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.75) 0%, rgba(255, 165, 0, 0.75) 100%);
    border: 2px solid #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nexus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.85) 0%, rgba(255, 165, 0, 0.85) 100%);
    color: #000000;
    text-decoration: none;
}

/* ========================================
   RESPONSIVIDADE ESPECÍFICA POR LAYOUT
   ======================================== */

/* Responsividade para Landing Page */
@media (max-width: 968px) {
    .header:not(.simulator-header) .header-content {
        padding: 0.8rem 3rem;
    }
}

@media (max-width: 768px) {
    .header:not(.simulator-header) .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .header:not(.simulator-header) .header-left {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .header:not(.simulator-header) .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .header:not(.simulator-header) .title-main {
        font-size: 1.5rem;
    }
    
    .header:not(.simulator-header) .title-sub {
        font-size: 1.1rem;
    }
    
    .header:not(.simulator-header) .nexus-btn {
        width: 100%;
        text-align: center;
    }
}

/* Responsividade para Simulador */
@media (max-width: 968px) {
    .header.simulator-header .header-content {
        padding: 0.2rem 0.5rem;
    }
    
    .header.simulator-header .header-left {
        margin-left: -1rem;
        gap: 1rem;
    }
    
    .header.simulator-header .header-right {
        right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header.simulator-header .header-content {
        padding: 0.3rem 0.5rem;
    }
    
    .header.simulator-header .header-left {
        margin-left: -0.5rem;
        gap: 0.8rem;
    }
    
    .header.simulator-header .header-right {
        right: 0.5rem;
    }
    
    .header.simulator-header .title-main {
        font-size: 1.4rem;
    }
    
    .header.simulator-header .title-sub {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Landing Page */
    .header:not(.simulator-header) .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header:not(.simulator-header) .header-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .header:not(.simulator-header) .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .header:not(.simulator-header) .title-main {
        font-size: 1rem;
    }
    
    .header:not(.simulator-header) .title-sub {
        font-size: 0.8rem;
    }
    
    .header:not(.simulator-header) .nexus-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    /* Simulador */
    .header.simulator-header .header-content {
        padding: 0.2rem 0.3rem;
    }
    
    .header.simulator-header .header-left {
        margin-left: -0.3rem;
        gap: 0.6rem;
    }
    
    .header.simulator-header .header-right {
        right: 0.3rem;
    }
    
    .header.simulator-header .title-main {
        font-size: 1.2rem;
    }
    
    .header.simulator-header .title-sub {
        font-size: 1rem;
    }
}
