﻿@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Rajdhani:wght@500;700&display=swap');

/* Estilos globais compartilhados */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    font-family: inherit;
}

/* Remove icones FA quando o navegador/fonte renderiza como quadrado. */
i.fa,
i.fas,
i.far,
i.fab,
i[class^="fa-"],
i[class*=" fa-"] {
    display: none !important;
}

body {
    font-family: 'Nunito Sans', sans-serif !important;
    background-color: #000;
    color: #e2e8f0;
    overflow-x: hidden;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 26%, transparent 34%),
        linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.25) 48%, rgba(0, 0, 0, 0.94));
    transform: translateX(-100%) skewX(-16deg);
}

body.is-page-transitioning .page-transition-overlay {
    opacity: 1;
    animation: animePageSwipe 0.62s cubic-bezier(0.62, -0.15, 0.2, 1.06) forwards;
}

body.is-page-transitioning {
    overflow: hidden;
}

nav {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.82));
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-page-transitioning nav,
body.is-page-entering nav {
    opacity: 0;
    transform: translateY(-22px);
}

body.nav-is-visible nav {
    opacity: 1;
    transform: translateY(0);
}

@keyframes animePageSwipe {
    0% {
        transform: translateX(-120%) skewX(-16deg);
    }
    40% {
        transform: translateX(-10%) skewX(-16deg);
    }
    100% {
        transform: translateX(100%) skewX(-16deg);
    }
}

/* Força absoluta das fontes - não deixa Tailwind ou nada mais sobrescrever */
.font-raj,
.font-raj * {
    font-family: 'Nunito Sans', sans-serif !important;
}

.font-teko,
.font-teko * {
    font-family: 'Anton', sans-serif !important;
}

/* Aplica também por tag direta */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif !important;
}

/* Evita "esticar" na troca de pagina: renderiza apenas as secoes da pagina atual ja no primeiro paint. */
.page-section {
    display: none !important;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.page-section.show {
    animation: animeReveal 0.55s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes animeReveal {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

body[data-page="home"] #home {
    display: flex !important;
    opacity: 1;
}

body[data-page="home"] #features,
body[data-page="home"] #media,
body[data-page="classes"] #characters,
body[data-page="classes"] #zanpakutous,
body[data-page="sistemas"] #cash,
body[data-page="sistemas"] #soulwar,
body[data-page="sistemas"] #codex,
body[data-page="sistemas"] #battlepass,
body[data-page="database"] #database,
body[data-page="download"] #download,
body[data-page="download"] #updates,
body[data-page="download"] #patch-notes,
body[data-page="patchnotes"] #patch-notes {
    display: block !important;
}

/* Mantem tipografia consistente no menu mesmo com estado ativo */
.main-nav-link {
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav-link:visited {
    color: inherit;
}

.main-nav-link:focus,
.main-nav-link:active {
    font-family: 'Anton', sans-serif !important;
}

.main-nav-link.is-active-link {
    color: #06b6d4;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.brand-title {
    font-family: 'Bangers', cursive !important;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem);
    letter-spacing: 0.12em;
    font-weight: 400;
    color: #f8fafc !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 6px rgba(255, 255, 255, 0.14);
}

.group:hover .brand-title {
    color: #f8fafc !important;
}

.brand-subtitle {
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 0.24em;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8 !important;
}

.header-logo {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    object-position: left center;
    border-radius: 9999px;
    flex-shrink: 0;
}

.group:hover .brand-subtitle {
    color: #cbd5e1 !important;
}

.patch-note-card {
    background: linear-gradient(155deg, rgba(6, 182, 212, 0.08), rgba(8, 13, 24, 0.94));
    border: 1px solid rgba(6, 182, 212, 0.35);
    backdrop-filter: blur(8px);
    min-height: 260px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.patch-note-card.is-active {
    border-color: rgba(125, 211, 252, 0.95);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.2);
    transform: translateY(-3px);
}

.patch-note-card:focus-visible {
    outline: 2px solid rgba(103, 232, 249, 0.95);
    outline-offset: 3px;
}

.patch-note-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.patch-note-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.35);
    background: rgba(6, 182, 212, 0.12);
    padding: 0.3rem 0.55rem;
}

.patch-note-card h3 {
    letter-spacing: 0.04em;
}

.patch-note-card ul {
    display: grid;
    gap: 0.55rem;
}

.patch-note-card li {
    line-height: 1.45;
    color: #cbd5e1;
}

#newsletter-form input,
#newsletter-form button {
    min-height: 54px;
}

#newsletter-form input:focus-visible,
.btn-neon:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.9);
    outline-offset: 2px;
}

.coming-soon-link {
    opacity: 0.62;
    cursor: not-allowed;
    text-decoration: none;
}

.coming-soon-link:hover {
    opacity: 0.8;
    color: #94a3b8 !important;
}

@media (max-width: 768px) {
    .brand-subtitle {
        letter-spacing: 0.18em;
        font-size: 0.68rem;
    }

    .patch-note-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* O Background GIF Fixo */
.bg-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('https://i.postimg.cc/1RrzZPk5/background.gif') no-repeat center center fixed;
    background-size: cover;
    filter: grayscale(80%) brightness(0.4);
}

/* Overlay de grade para dar efeito tatico */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Titulos agressivos */
h1, h2, h3, .nav-item {
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Force todas as variações de font */
.font-teko, .font-teko p, .font-teko span, .font-teko div,
.font-teko h1, .font-teko h2, .font-teko h3, .font-teko h4,
.font-teko h5, .font-teko h6, .font-teko a, .font-teko button {
    font-family: 'Anton', sans-serif !important;
}

.font-raj, .font-raj p, .font-raj span, .font-raj div,
.font-raj h1, .font-raj h2, .font-raj h3, .font-raj h4,
.font-raj h5, .font-raj h6, .font-raj a, .font-raj button {
    font-family: 'Nunito Sans', sans-serif !important;
}

/* Corte angular */
.cut-corner {
    clip-path: polygon(
        15px 0, 100% 0,
        100% calc(100% - 15px), calc(100% - 15px) 100%,
        0 100%, 0 15px
    );
    transition: all 0.3s ease;
}

.cut-corner-r {
    clip-path: polygon(
        0 0, 100% 0,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        20px 100%, 0 100%
    );
}

.btn-neon {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neon:hover {
    background: rgba(6, 182, 212, 0.8);
    color: #000;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.btn-neon::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: 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

.glass-panel {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel:hover {
    border-color: rgba(6, 182, 212, 0.5);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

.glow-text {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
