/* ============================================================
   Gen Games — Estilos Globais Compartilhados
   ============================================================ */

/* === Ninja Cursors === */
*, *::before, *::after {
    cursor: url('../images/kunai-cursor.svg') 1 1, auto;
}

a, button, [role="button"], input[type="submit"],
input[type="button"], .btn-glow, .card-hover,
select, label, summary, [onclick] {
    cursor: url('../images/shuriken-cursor.svg') 16 16, pointer !important;
}

/* === Base === */
body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 102, 0, 0.4);
    color: #fff;
}

.bg-texture {
    background-image:
        radial-gradient(circle at center, rgba(255, 102, 0, 0.04) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23262626" fill-opacity="0.15"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* === Glow Effects === */
.glow-text {
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.6), 0 0 30px rgba(255,102,0,0.2);
}

/* === Gradient text utility === */
.gradient-text {
    background: linear-gradient(135deg, #ff6600, #ff3311, #ffaa00, #ff6600);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Separator glow line === */
.glow-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6600, transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255,102,0,0.4);
}

.btn-glow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::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;
    z-index: -1;
}

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

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.6);
    transform: translateY(-2px);
}

/* === Card Hover === */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    border-color: #ff6600;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* === Discord Float === */
.discord-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* === Diagonal Divider === */
.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #171717;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
    z-index: 10;
}

/* === Pulse Animation === */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.6); }
    50% { box-shadow: 0 0 20px rgba(34,197,94,0.9); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* === Video container === */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Step counter === */
.step-counter {
    counter-reset: steps;
}

.step-counter .step-item {
    counter-increment: steps;
}

.step-counter .step-item::before {
    content: counter(steps, decimal-leading-zero);
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 102, 0, 0.15);
    position: absolute;
    top: -8px;
    left: -5px;
    line-height: 1;
}

/* === Active Nav Link === */
.nav-active {
    color: #ff6600 !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6600;
    border-radius: 1px;
}

/* === Page Transition === */
.page-enter {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Vignette overlay (static, no animation) === */
.vignette::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,10,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
