/* Tema visual do Game Nostalgico */

:root {
    --gn-ink: #070913;
    --gn-night: #0c1020;
    --gn-panel: rgba(15, 19, 38, 0.86);
    --gn-panel-strong: #12172c;
    --gn-border: rgba(231, 181, 84, 0.34);
    --gn-gold: #f6c86a;
    --gn-gold-deep: #a86b21;
    --gn-blue: #27c3ff;
    --gn-blue-deep: #1764d8;
    --gn-violet: #6f4bd8;
    --gn-rose: #e26c78;
    --gn-mist: #e8eefc;
    --gn-muted: #aeb8d0;
    --gn-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --gn-gold-gradient: linear-gradient(135deg, #fff1ad 0%, #f6c86a 38%, #b97325 100%);
    --gn-blue-gradient: linear-gradient(135deg, #18d8ff 0%, #2f7dff 52%, #7f58ff 100%);
}


::placeholder {
    color: #FFF !important;
    opacity: 1 !important;
}

::-webkit-input-placeholder {
    color: #FFF !important;
}

:-ms-input-placeholder {
    color: #FFF !important;
}

::-ms-input-placeholder {
    color: #FFF !important;
}




html {
    scroll-padding-top: 94px;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gn-mist);
    background:
        radial-gradient(circle at 18% 12%, rgba(39, 195, 255, 0.16), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(246, 200, 106, 0.16), transparent 30%),
        linear-gradient(180deg, #080b17 0%, #11162b 44%, #080b17 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

.gn-sparks {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.gn-sparks span {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    background: #7ee5ff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(39, 195, 255, 0.88), 0 0 26px rgba(246, 200, 106, 0.32);
    animation-name: gnSparkRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

a {
    color: var(--gn-gold);
}

a:hover {
    color: #fff1ad;
}

.site-navbar {
    min-height: 78px;
    padding: 10px 0;
    background:
        linear-gradient(180deg, rgba(9, 12, 26, 0.95), rgba(10, 14, 30, 0.82)) !important;
    border-bottom: 1px solid rgba(246, 200, 106, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    transition: min-height 0.22s ease, padding 0.22s ease, background 0.22s ease;
}

.site-navbar.is-scrolled {
    min-height: 66px;
    padding: 6px 0;
    background:
        linear-gradient(180deg, rgba(6, 8, 18, 0.98), rgba(9, 12, 26, 0.92)) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    display: block;
    width: min(260px, 46vw);
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(39, 195, 255, 0.28));
}

.navbar-toggler {
    border-color: rgba(246, 200, 106, 0.45);
    box-shadow: none !important;
}

.navbar-nav {
    align-items: center;
    gap: 4px;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 10px 13px !important;
    color: rgba(232, 238, 252, 0.82) !important;
    font-size: 0.93rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: color 0.22s ease, transform 0.22s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    background: var(--gn-gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff1ad !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
}

.dropdown-menu {
    padding: 8px;
    color: var(--gn-mist);
    background: rgba(12, 16, 32, 0.97);
    border: 1px solid var(--gn-border);
    border-radius: 8px;
    box-shadow: var(--gn-shadow);
}

.dropdown-item {
    color: rgba(232, 238, 252, 0.86);
    border-radius: 6px;
    font-weight: 650;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #090d1a;
    background: var(--gn-gold-gradient);
}

.hero-section {
    min-height: 96vh;
    padding-top: 90px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 8, 18, 0.92) 0%, rgba(10, 13, 27, 0.68) 48%, rgba(5, 8, 18, 0.92) 100%),
        radial-gradient(circle at 50% 28%, rgba(39, 195, 255, 0.24), transparent 36%);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    background: linear-gradient(180deg, transparent, #080b17 82%);
    pointer-events: none;
}

.hero-overlay {
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 86px 0 116px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 0 18px;
    padding: 8px 18px;
    color: #081020;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    background: var(--gn-gold-gradient);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(246, 200, 106, 0.2);
}

.hero-logo {
    display: block;
    width: min(640px, 92vw);
    margin: 0 auto 20px;
    filter:
        drop-shadow(0 0 22px rgba(39, 195, 255, 0.42))
        drop-shadow(0 28px 34px rgba(0, 0, 0, 0.56));
}

.hero-section .lead {
    max-width: 780px;
    margin-inline: auto;
    color: rgba(232, 238, 252, 0.9) !important;
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-buttons .btn,
.btn {
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-buttons .btn {
    min-width: 188px;
    padding: 13px 24px;
    text-transform: uppercase;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.btn-primary {
    color: #07101d !important;
    background: var(--gn-gold-gradient);
    border: 1px solid rgba(255, 241, 173, 0.64);
    box-shadow: 0 8px 24px rgba(246, 200, 106, 0.26);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #07101d !important;
    background: linear-gradient(135deg, #fff8ca 0%, #ffcf6c 52%, #ce7b22 100%);
    border-color: rgba(255, 241, 173, 0.84);
    filter: saturate(1.08);
}

.btn-outline-light {
    color: #e8eefc;
    border-color: rgba(39, 195, 255, 0.58);
    background: rgba(10, 17, 34, 0.34);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #07101d;
    background: var(--gn-blue-gradient);
    border-color: rgba(39, 195, 255, 0.88);
}

.btn-success {
    color: #07101d;
    background: var(--gn-blue-gradient);
    border: 0;
}

.bg-light,
section.py-5:not(.bg-dark) {
    color: var(--gn-mist);
    background:
        linear-gradient(180deg, #080b17 0%, #11172d 52%, #080b17 100%) !important;
}

.bg-dark {
    background:
        linear-gradient(180deg, #0a0d1a 0%, #12182e 100%) !important;
}

.display-4,
h2.display-4 {
    color: #f8fbff !important;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.05;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
}

.text-dark {
    color: #f8fbff !important;
}

.text-muted {
    color: var(--gn-muted) !important;
}

.logo-ranaluz,
.logo-tagline {
    color: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    background: var(--gn-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.feature-card,
.news-card,
.login-card,
.donation-card,
.card {
    color: var(--gn-mist);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
        var(--gn-panel);
    border: 1px solid var(--gn-border);
    border-radius: 8px;
    box-shadow: var(--gn-shadow);
}

.feature-card,
.news-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::before,
.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(246, 200, 106, 0.14), transparent 36%, rgba(39, 195, 255, 0.12));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.feature-card:hover,
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(246, 200, 106, 0.62);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

.feature-card:hover::before,
.news-card:hover::before {
    opacity: 1;
}

.feature-icon {
    color: var(--gn-gold);
}

.feature-icon i,
.stat-item i {
    background: var(--gn-blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(39, 195, 255, 0.28));
}

.feature-card h4,
.news-content h5 {
    color: #fff5ca;
    font-weight: 800;
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    padding: 14px 4px 20px;
}

.carousel-item-custom {
    border: 1px solid rgba(246, 200, 106, 0.36);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.carousel-item-custom img {
    border-radius: 8px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    color: #07101d !important;
    background: var(--gn-gold-gradient) !important;
    border: 1px solid rgba(255, 241, 173, 0.68) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.stat-item {
    min-height: 164px;
    padding: 22px 16px;
    border: 1px solid rgba(39, 195, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.stat-item h3 {
    color: #fff5ca;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 8px;
}

.news-image {
    overflow: hidden;
    background: #080b17;
}

.news-image img {
    width: 100%;
    height: 214px;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    position: relative;
    z-index: 1;
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(13, 17, 34, 0.98), #060812) !important;
    border-top: 1px solid rgba(246, 200, 106, 0.28);
    box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.26);
}

.footer-logo {
    width: min(230px, 58vw);
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(39, 195, 255, 0.26));
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    color: var(--gn-mist) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(39, 195, 255, 0.28);
    border-radius: 8px;
    transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.social-links a:hover {
    color: #07101d !important;
    background: var(--gn-gold-gradient);
    border-color: rgba(255, 241, 173, 0.7);
    transform: translateY(-3px);
}

.site-footer hr {
    border-color: rgba(246, 200, 106, 0.22);
    opacity: 1;
}

.site-footer .me-3,
.site-footer a {
    color: rgba(232, 238, 252, 0.82);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff1ad;
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(5, 8, 18, 0.82), rgba(5, 8, 18, 0.9)),
        url("../images/bg.webp") center / cover fixed;
}

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 96px;
}

.login-overlay {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    padding: 36px;
    backdrop-filter: blur(14px);
}

.login-title,
.login-subtitle,
.form-label,
.form-check-label {
    color: var(--gn-mist);
}

.login-input,
.form-control,
.form-select {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(39, 195, 255, 0.28);
    border-radius: 8px;
}

.login-input:focus,
.form-control:focus,
.form-select:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gn-gold);
    box-shadow: 0 0 0 0.2rem rgba(246, 200, 106, 0.18);
}

.login-link {
    color: var(--gn-gold);
    font-weight: 700;
}

.forum-section,
.panel-section {
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.forum-section:hover,
.panel-section:hover {
    background: rgba(246, 200, 106, 0.08);
    transform: translateX(5px);
}

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

@keyframes gnGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(39, 195, 255, 0.22));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(246, 200, 106, 0.34));
    }
}

@keyframes gnSparkRise {
    from {
        transform: translate3d(0, 0, 0) scale(0.75);
    }
    to {
        transform: translate3d(24px, -112vh, 0) scale(1.2);
    }
}

.feature-card,
.news-card,
.stat-item {
    animation: gnFadeUp 0.55s ease both;
}

.hero-logo,
.brand-logo {
    animation: gnGlow 3.4s ease-in-out infinite;
}

.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: 120px !important;
    background:
        linear-gradient(90deg, rgba(5, 8, 18, 0.95), rgba(13, 18, 38, 0.72), rgba(5, 8, 18, 0.95)),
        url("../images/bg.webp") center / cover;
    border-bottom: 1px solid rgba(246, 200, 106, 0.28);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, #080b17 90%);
}

.page-hero-logo {
    width: min(330px, 76vw);
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 18px rgba(39, 195, 255, 0.38)) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5));
}

.page-hero .lead {
    max-width: 760px;
    margin-inline: auto;
    color: rgba(232, 238, 252, 0.88);
}

.card-header {
    color: #fff5ca !important;
    background:
        linear-gradient(135deg, rgba(246, 200, 106, 0.18), rgba(39, 195, 255, 0.1)),
        rgba(8, 11, 23, 0.78) !important;
    border-bottom: 1px solid rgba(246, 200, 106, 0.28);
    font-weight: 800;
}

.card-body {
    color: var(--gn-mist);
}

.rate-item,
.benefit-item {
    color: var(--gn-mist);
}

.benefit-item {
    border-bottom-color: rgba(246, 200, 106, 0.16);
}

.benefit-icon {
    color: var(--gn-gold);
}

.value-input,
.input-group-text {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(39, 195, 255, 0.28);
}

.form-text {
    color: var(--gn-muted);
}

.modal-content {
    color: var(--gn-mist);
    background: #10162a;
    border: 1px solid var(--gn-border);
    border-radius: 8px;
}

.modal-header,
.modal-footer {
    border-color: rgba(246, 200, 106, 0.2);
}

.btn-close {
    filter: invert(1);
}

.auth-page .login-card {
    max-width: 520px;
    margin: 0 auto;
}

.register-page .login-card {
    width: min(860px, 100%);
}

.auth-logo {
    width: min(310px, 76vw);
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(39, 195, 255, 0.36));
}

.form-section-title {
    color: #fff5ca;
    text-align: center;
    font-weight: 850;
}

.panel-home {
    min-height: 820px;
    padding: 130px 0 80px;
}

.panel-home .section-title {
    text-align: center;
    margin-bottom: 34px;
}

.panel-logo {
    width: min(330px, 78vw);
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(39, 195, 255, 0.28));
}

.panel-home .section-title h2,
.vote-title {
    color: #fff5ca;
    font-weight: 900;
}

.panel-home .section-title p {
    color: var(--gn-muted);
    font-size: 1.12rem;
}

.panel-card {
    min-height: 178px;
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-card .card-body {
    padding: 24px;
}

.vote-page {
    padding-top: 118px;
}

.vote-support {
    padding: 30px;
    color: #fff5ca;
    font-size: 1.12rem;
    font-weight: 800;
    text-align: center;
}

.vote-support span {
    color: #fff5ca;
}

.vote-title {
    max-width: 920px;
    margin: 0 auto 26px;
    padding: 24px 12px;
    text-align: center;
}

.downloads-warn {
    color: #ffd4d8 !important;
    background: rgba(226, 108, 120, 0.12) !important;
    border: 1px solid rgba(226, 108, 120, 0.32);
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .site-navbar {
        min-height: 72px;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 12px;
        background: rgba(7, 9, 19, 0.96);
        border: 1px solid rgba(246, 200, 106, 0.24);
        border-radius: 8px;
    }

    .navbar-nav {
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        padding: 12px 10px !important;
    }

    .hero-section {
        min-height: 88vh;
        background-attachment: scroll;
    }

    .hero-overlay {
        padding: 76px 0 86px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        width: min(210px, 64vw);
        max-height: 58px;
    }

    .hero-kicker {
        font-size: 0.76rem;
        padding: 8px 14px;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

    .carousel-item-custom {
        flex: 0 0 84% !important;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .site-footer .text-md-end {
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .hero-logo {
        width: min(480px, 98vw);
    }

    .display-4,
    h2.display-4 {
        font-size: 2.08rem;
    }

    .feature-card,
    .news-card,
    .login-card,
    .card {
        border-radius: 8px;
    }
}
