/* ================= VARIABLES ================= */
:root {
    --bg: #070505;
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.80);
    --accent: #f6a33b;
    --overlay-max: .20;
    --radius: 22px;
    --shadow: 0 18px 70px rgba(0,0,0,.55);
    --max: 1180px;
    --header-h: 96px;
    --font: "Varela Round",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ================= RESET / BASE ================= */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    overflow-x: hidden;
    background: radial-gradient(1200px 700px at 50% -10%, rgba(246,163,59,.14), transparent 65%),
                radial-gradient(900px 600px at 10% 10%, rgba(255,255,255,.08), transparent 60%),
                var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
    background: transparent;
}

header.is-solid {
    background: rgba(5,4,4,.20);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255,255,255,.10);
}

/* Pages without scroll-based header (devlog, project, post) get solid by default */
header.always-solid {
    background: rgba(5,4,4,.20);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255,255,255,.10);
}

.navwrap {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.brand img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navlink {
    font-size: 14px;
    padding: 10px 6px;
    color: rgba(255,255,255,.80);
    transition: color .16s ease, transform .16s ease;
    transform-origin: center;
    white-space: nowrap;
}

.navlink:hover {
    color: var(--accent);
    transform: scale(1.06);
}

.navlink.active {
    color: var(--accent);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    font-size: 14px;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
}

.btn-discord {
    border-color: rgba(88,101,242,.42);
    background: rgba(88,101,242,.22);
}

.btn-discord:hover {
    background: rgba(88,101,242,.28);
    border-color: rgba(88,101,242,.62);
}

/* ================= MOBILE MENU ================= */
.burger {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: 16px;
    left: 16px;
    background: #080606;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 200;
}

.mobile-panel a {
    display: flex;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,.90);
}

.mobile-panel a:hover {
    background: rgba(255,255,255,.06);
}

.mobile-panel .btn {
    width: 100%;
    margin-top: 8px;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}

.reveal.in,
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
    min-height: 100vh;
    position: relative;
    padding: 0;
    display: block;
    overflow: hidden;
    background-color: #131313;
    background-image: url("../images/banners/Banner_5_dragon_reformado.jpg");
    background-position: 50%;
    background-repeat: repeat-y;
    background-size: cover;
    background-attachment: scroll;
}

footer .bg,
footer .overlay {
    display: none;
}

.footer-panel {
    position: absolute;
    inset: auto 0 10%;
    z-index: 2;
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(12,10,9,.20);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    padding: clamp(20px, 3.5vw, 40px);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 10px 26px rgba(0,0,0,.55));
}

.footer-socials,
.icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-socials a,
.icon-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform .18s ease, filter .18s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

.footer-socials a:hover,
.icon-row a:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
}

.footer-socials img,
.icon-row img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 18px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
    nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 520px) {
    :root {
        --header-h: 84px;
    }

    .brand img {
        width: 72px;
        height: 72px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-brand {
        width: 100%;
        justify-content: center;
    }

    .footer-socials,
    .icon-row {
        width: 100%;
        justify-content: center;
    }

    .footer-brand img {
        height: 120px;
    }

    .icon-row img,
    .footer-socials img {
        width: 30px;
        height: 30px;
    }

    .footer-panel {
        bottom: 0;
        padding: 15px;
        left: 15px;
        right: 15px;
        width: auto;
    }
}
