/* ========================================
   TANATOS HEADER - ESTRUTURA MELHORADA
   ======================================== */

/* ========================================
   HEADER PRINCIPAL
   ======================================== */

.tanatos-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================
   EFEITOS VISUAIS DE FUNDO
   ======================================== */

.tanatos-header__effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.tanatos-header__spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: sparkle 3s infinite ease-in-out;
}

.tanatos-header__spark--1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tanatos-header__spark--2 {
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
}

.tanatos-header__spark--3 {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.tanatos-header__spark--big {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
}

.tanatos-header__spark--4 {
    top: 30%;
    left: 70%;
    animation-delay: 1.5s;
}

.tanatos-header__spark--5 {
    top: 70%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.tanatos-header__smoke {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/smoke.png') center center no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */

.tanatos-header__to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tanatos-header__to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.tanatos-header__container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    text-align: center;
}

/* ========================================
   SEÇÃO DAS LOGOS
   ======================================== */

.tanatos-header__logos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

/* ========================================
   LOGO PRINCIPAL
   ======================================== */

.tanatos-header__main-logo {
    position: relative;
    z-index: 5;
}

.tanatos-header__logo-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Efeito de energia ao clicar na logo */
.tanatos-header__logo-link:active .tanatos-header__logo-image {
    animation: logoEnergy 0.8s ease-out;
}

/* Efeito de ondas ao clicar na logo */
.tanatos-header__logo-link:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoWaves 0.8s ease-out;
    z-index: -2;
}

@keyframes logoWaves {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes logoEnergy {
    0% {
        transform: scale(1.08) rotateY(5deg);
        filter: brightness(1.2) 
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
                drop-shadow(0 0 80px rgba(220, 53, 69, 0.5))
                drop-shadow(0 0 120px rgba(255, 255, 255, 0.2))
                hue-rotate(10deg);
    }
    25% {
        transform: scale(1.15) rotateY(10deg);
        filter: brightness(1.5) 
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 120px rgba(220, 53, 69, 0.7))
                drop-shadow(0 0 180px rgba(255, 255, 255, 0.4))
                hue-rotate(20deg);
    }
    50% {
        transform: scale(1.2) rotateY(15deg);
        filter: brightness(1.8) 
                drop-shadow(0 0 80px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 160px rgba(220, 53, 69, 0.9))
                drop-shadow(0 0 240px rgba(255, 255, 255, 0.6))
                hue-rotate(30deg);
    }
    75% {
        transform: scale(1.15) rotateY(10deg);
        filter: brightness(1.5) 
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 120px rgba(220, 53, 69, 0.7))
                drop-shadow(0 0 180px rgba(255, 255, 255, 0.4))
                hue-rotate(20deg);
    }
    100% {
        transform: scale(1.08) rotateY(5deg);
        filter: brightness(1.2) 
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
                drop-shadow(0 0 80px rgba(220, 53, 69, 0.5))
                drop-shadow(0 0 120px rgba(255, 255, 255, 0.2))
                hue-rotate(10deg);
    }
}

.tanatos-header__logo-image {
    height: auto;
    max-height: 350px;
    width: auto;
    max-width: 800px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2)) 
            drop-shadow(0 0 60px rgba(220, 53, 69, 0.3))
            drop-shadow(0 0 90px rgba(255, 255, 255, 0.1));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.tanatos-header__logo-link:hover .tanatos-header__logo-image {
    transform: scale(1.08) rotateY(5deg);
    filter: brightness(1.2) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 80px rgba(220, 53, 69, 0.5))
            drop-shadow(0 0 120px rgba(255, 255, 255, 0.2))
            hue-rotate(10deg);
    animation: logoHover 0.6s ease-in-out;
}

/* Efeito de brilho pulsante na logo */
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2)) 
                drop-shadow(0 0 60px rgba(220, 53, 69, 0.3))
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.3)) 
                drop-shadow(0 0 70px rgba(220, 53, 69, 0.4))
                drop-shadow(0 0 105px rgba(255, 255, 255, 0.15));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2)) 
                drop-shadow(0 0 60px rgba(220, 53, 69, 0.3))
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.1));
    }
}

/* Animação especial no hover */
@keyframes logoHover {
    0% {
        transform: scale(1.08) rotateY(5deg);
    }
    50% {
        transform: scale(1.12) rotateY(8deg);
    }
    100% {
        transform: scale(1.08) rotateY(5deg);
    }
}

/* Efeito de aura ao redor da logo */
.tanatos-header__main-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, 
                rgba(220, 53, 69, 0.15) 0%, 
                rgba(255, 255, 255, 0.08) 25%, 
                rgba(220, 53, 69, 0.05) 50%,
                transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: logoAura 6s ease-in-out infinite;
    border-radius: 50%;
}

.tanatos-header__logo-link:hover ~ .tanatos-header__main-logo::before,
.tanatos-header__main-logo:hover::before {
    opacity: 1;
}

@keyframes logoAura {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.5;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
    }
}

/* Efeito de partículas flutuantes */
.tanatos-header__main-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(220, 53, 69, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 90% 20%, rgba(220, 53, 69, 0.3) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    background-position: 0 0, 20px 20px, 40px 40px, 60px 60px;
    animation: floatingParticles 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tanatos-header__logo-link:hover ~ .tanatos-header__main-logo::after,
.tanatos-header__main-logo:hover::after {
    opacity: 1;
}

@keyframes floatingParticles {
    0% {
        background-position: 0 0, 20px 20px, 40px 40px, 60px 60px;
    }
    100% {
        background-position: 100px 100px, 120px 120px, 140px 140px, 160px 160px;
    }
}

/* ========================================
   LOGO DO SERVIDOR
   ======================================== */

.tanatos-header__server-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tanatos-header__server-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tanatos-header__server-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.tanatos-header__server-icon {
    height: 70px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tanatos-header__server-card:hover .tanatos-header__server-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.tanatos-header__server-name {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.tanatos-header__server-status {
    color: #d8d0cc;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tanatos-header__server-status--upcoming {
    color: #ffd700;
    font-weight: 600;
}

/* ========================================
   SEÇÃO DE DOWNLOADS
   ======================================== */

.tanatos-header__downloads-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tanatos-header__download-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.tanatos-header__download-button::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;
}

.tanatos-header__download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.5);
}

.tanatos-header__download-button:hover::before {
    left: 100%;
}

.tanatos-header__download-links {
    display: flex;
    gap: 15px;
}

.tanatos-header__download-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tanatos-header__download-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tanatos-header__download-link--windows {
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.tanatos-header__download-link--windows:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.tanatos-header__download-link--mac {
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.tanatos-header__download-link--mac:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .tanatos-header__container {
        padding: 0 20px;
    }
    
    .tanatos-header__logos-section {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .tanatos-header__logo-image {
        max-height: 250px;
        max-width: 500px;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15)) 
                drop-shadow(0 0 40px rgba(220, 53, 69, 0.2))
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.08));
    }
    
    .tanatos-header__logo-link:hover .tanatos-header__logo-image {
        transform: scale(1.05) rotateY(3deg);
        filter: brightness(1.15) 
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 60px rgba(220, 53, 69, 0.4))
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.15))
                hue-rotate(5deg);
    }
    
    .tanatos-header__server-card {
        padding: 20px 25px;
        border-radius: 15px;
    }
    
    .tanatos-header__server-icon {
        height: 55px;
        max-width: 110px;
    }
    
    .tanatos-header__server-name {
        font-size: 18px;
    }
    
    .tanatos-header__server-status {
        font-size: 13px;
    }
    
    .tanatos-header__download-button {
        padding: 16px 35px;
        font-size: 15px;
    }
    
    .tanatos-header__to-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .tanatos-header__container {
        padding: 0 15px;
    }
    
    .tanatos-header__logos-section {
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .tanatos-header__logo-image {
        max-height: 180px;
        max-width: 350px;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.12)) 
                drop-shadow(0 0 30px rgba(220, 53, 69, 0.15))
                drop-shadow(0 0 45px rgba(255, 255, 255, 0.06));
    }
    
    .tanatos-header__logo-link:hover .tanatos-header__logo-image {
        transform: scale(1.03) rotateY(2deg);
        filter: brightness(1.1) 
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.25))
                drop-shadow(0 0 40px rgba(220, 53, 69, 0.3))
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.12))
                hue-rotate(3deg);
    }
    
    .tanatos-header__server-card {
        padding: 18px 20px;
        border-radius: 12px;
    }
    
    .tanatos-header__server-icon {
        height: 45px;
        max-width: 90px;
    }
    
    .tanatos-header__server-name {
        font-size: 16px;
    }
    
    .tanatos-header__server-status {
        font-size: 12px;
    }
    
    .tanatos-header__download-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .tanatos-header__download-links {
        gap: 12px;
    }
    
    .tanatos-header__download-link {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .tanatos-header__to-top {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* Mobile Pequeno (480px and below) */
@media (max-width: 480px) {
    .tanatos-header__container {
        padding: 0 10px;
    }
    
    .tanatos-header__logos-section {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .tanatos-header__logo-image {
        max-height: 120px;
        max-width: 250px;
    }
    
    .tanatos-header__server-card {
        padding: 15px 18px;
        border-radius: 10px;
    }
    
    .tanatos-header__server-icon {
        height: 35px;
        max-width: 70px;
    }
    
    .tanatos-header__server-name {
        font-size: 14px;
    }
    
    .tanatos-header__server-status {
        font-size: 11px;
    }
    
    .tanatos-header__download-button {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .tanatos-header__download-links {
        gap: 10px;
    }
    
    .tanatos-header__download-link {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .tanatos-header__to-top {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 9px;
    }
}

/* Mobile Extra Pequeno (360px and below) */
@media (max-width: 360px) {
    .tanatos-header__container {
        padding: 0 8px;
    }
    
    .tanatos-header__logos-section {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .tanatos-header__logo-image {
        max-height: 100px;
        max-width: 200px;
    }
    
    .tanatos-header__server-card {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .tanatos-header__server-icon {
        height: 30px;
        max-width: 60px;
    }
    
    .tanatos-header__server-name {
        font-size: 12px;
    }
    
    .tanatos-header__server-status {
        font-size: 10px;
    }
    
    .tanatos-header__download-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .tanatos-header__download-links {
        gap: 8px;
    }
    
    .tanatos-header__download-link {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .tanatos-header__to-top {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 8px;
    }
}
