@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&family=DotGothic16&family=Doto:wght@100..900&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* --- TIPOGRAFÍAS DE VOLO.LAT --- */
.doto {
    font-family: "Doto", sans-serif;
    font-variation-settings: "ROND" 0;
}

.dotgothic {
    font-family: "DotGothic16", sans-serif;
}

.bitcount {
    font-family: "Bitcount Grid Double", system-ui;
}

.code-font {
    font-family: "JetBrains Mono", monospace;
}

.voloHero {
    font-family: "Bitcount Grid Double", system-ui;
    font-weight: normal !important;
}

/* --- BOTONES DE PESTAÑAS (TABS) --- */
.tab-btn {
    font-family: "Doto", sans-serif;
    font-size: 0.95rem;
    padding: 6px 16px;
    border: 1px dotted black;
    background: #FFFFFF;
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: #F3E8FF;
    border-style: solid;
    box-shadow: 2px 2px 0px #000000;
    text-decoration: none;
    color: #000000;
}

.tab-btn.active {
    background: #E1BEE7;
    border-style: solid;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000000;
    color: #000000;
}

/* --- TEMA VISUAL BLANCO / RETRO-BRUTALISTA DE VOLO.LAT --- */
:root {
    --bg-base: #FFFFFF;
    --bg-surface: #FAFAFC;
    --bg-card: #FFFFFF;
    --accent-lavender: #E1BEE7;
    --accent-purple: #CE93D8;
    --accent-deep: #7B1FA2;
    --text-primary: #000000;
    --text-secondary: #222222;
    --text-muted: #555555;
    --border-black: #000000;
    --border-dotted: 1px dotted #000000;
    --border-solid: 1px solid #000000;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: "DotGothic16", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #7B1FA2;
}



/* --- VOLO NAVBAR FIX --- */
volo-navbar {
    display: block;
    position: relative;
    z-index: 100;
}

/* --- HERO BANNER --- */
.mei-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 45vh;
    background-image: url("/img/backgroundNavBar.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-origin: content-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 90px 20px 40px;
    box-sizing: border-box;
    border-bottom: 1px dotted black;
}

.mei-hero-title {
    font-family: "Bitcount Grid Double", system-ui;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: normal !important;
    text-align: center;
    line-height: 1.1;
    margin: 12px 0 16px 0;
    color: #000000;
}

/* --- BADGES --- */
.mei-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #FFFFFF;
    border: 1px solid black;
    color: #000000;
    font-family: "DotGothic16", sans-serif;
    font-size: 0.82rem;
}

.mei-badge-lavender {
    background: #E1BEE7;
    border: 1px solid black;
    color: #000000;
    font-weight: bold;
}

.mei-badge-hot {
    background: #FEE2E2;
    border: 1px solid #DC2626;
    color: #991B1B;
    font-weight: bold;
}

.mei-badge-zero {
    background: #DCFCE7;
    border: 1px solid #16A34A;
    color: #166534;
    font-weight: bold;
}

.mei-badge-macro {
    background: #FEF3C7;
    border: 1px solid #D97706;
    color: #92400E;
    font-weight: bold;
}

/* --- STATS BOXES --- */
.stat-box {
    background: #FFFFFF;
    border: 1px dotted black;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-box:hover {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(-1px, -1px);
}

/* --- TARJETAS DE API --- */
.api-card {
    background: #FFFFFF;
    border: 1px dotted black;
    padding: 24px;
    margin-bottom: 26px;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.api-card:hover {
    box-shadow: 4px 4px 0px #000000;
    border-style: solid;
}

.api-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px dotted black;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.api-title {
    font-family: "Doto", sans-serif;
    font-size: 1.55rem;
    font-weight: bold;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-signature {
    background: #FAFAFC;
    border-left: 4px solid #BA68C8;
    border-top: 1px dotted black;
    border-right: 1px dotted black;
    border-bottom: 1px dotted black;
    padding: 12px 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: #111827;
    overflow-x: auto;
    margin: 14px 0;
}

/* --- TABLAS DE PARÁMETROS --- */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
    border: 1px solid black;
}

.param-table th {
    background: #E1BEE7;
    color: #000000;
    font-family: "Doto", sans-serif;
    font-weight: bold;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid black;
}

.param-table td {
    padding: 8px 12px;
    border: 1px solid black;
    color: #000000;
    vertical-align: top;
    background: #FFFFFF;
}

.param-table tr:hover td {
    background: #FBF7FD;
}

.param-name {
    font-family: "JetBrains Mono", monospace;
    color: #7B1FA2;
    font-weight: 700;
}

.param-type {
    font-family: "JetBrains Mono", monospace;
    color: #1E40AF;
    font-size: 0.85rem;
}

/* --- BLOQUES DE CÓDIGO CON BOTÓN COPIAR --- */
.code-container {
    position: relative;
    background: #FAFAFC;
    border: 1px solid black;
    margin: 16px 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #E1BEE7;
    padding: 6px 12px;
    border-bottom: 1px solid black;
    font-size: 0.82rem;
    color: #000000;
    font-family: "Doto", sans-serif;
    font-weight: bold;
}

.copy-btn {
    background: #FFFFFF;
    border: 1px solid black;
    color: #000000;
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 0.8rem;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.code-block {
    margin: 0;
    padding: 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #1F2937;
    overflow-x: auto;
    white-space: pre;
    background: #FAFAFC;
}

/* Resaltado de Sintaxis para fondo blanco */
.kw { color: #9333EA; font-weight: bold; }       /* Keywords: class, void, return, public */
.type { color: #1D4ED8; font-weight: 600; }     /* Tipos: float, GameObject, Transform */
.fn { color: #6B21A8; }                          /* Funciones */
.str { color: #047857; }                         /* Strings */
.num { color: #B45309; }                         /* Números */
.com { color: #6B7280; font-style: italic; }     /* Comentarios */
.macro { color: #C2410C; font-weight: bold; }    /* Macros: MEI_FIELD, MEI_PROFILE_SCOPE */

/* --- SIDEBAR DE NAVEGACIÓN --- */
.wiki-sidebar {
    background: #FFFFFF;
    border: 1px dotted black;
    box-sizing: border-box;
}

.sidebar-heading {
    font-family: "Doto", sans-serif;
    color: #000000;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 10px 4px;
    border-bottom: 1px dotted black;
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #374151;
    font-size: 0.9rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    font-family: "DotGothic16", sans-serif;
}

.sidebar-link:hover {
    color: #000000;
    background: #F3E8FF;
    border-left-color: #BA68C8;
    text-decoration: underline;
}

.sidebar-link.active {
    color: #000000;
    background: #E1BEE7;
    border-left-color: #000000;
    font-weight: bold;
}

/* --- BUSCADOR Y PÍLDORAS DE FILTRO --- */
.search-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid black;
    color: #000000;
    font-family: "DotGothic16", sans-serif;
    font-size: 1.05rem;
    padding: 10px 16px;
    outline: none;
    transition: box-shadow 0.15s ease;
    box-sizing: border-box;
}

.search-input:focus {
    box-shadow: 3px 3px 0px #000000;
}

.filter-pill {
    padding: 5px 12px;
    background: #FFFFFF;
    border: 1px solid black;
    color: #000000;
    font-family: "DotGothic16", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.filter-pill:hover, .filter-pill.active {
    background: #E1BEE7;
    color: #000000;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000000;
}

/* Botón flotante volver arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #FFFFFF;
    border: 1px solid black;
    color: #000000;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, background 0.15s;
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #E1BEE7;
}

/* Footer heredado de volo.lat */
footer {
    background-image: url("/img/footer.png");
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: 100% 100%;
    width: 100%;
    min-height: 40vh;
    display: flex;
    border-top: 1px dotted black;
    margin-top: 5vh;
    padding-top: 2%;
    box-sizing: border-box;
}

footer div {
    height: 100%;
    width: 33.33%;
    padding-left: 2%;
    padding-right: 2%;
}

footer div span, footer div a {
    font-family: "DotGothic16", sans-serif;
    font-size: 0.85rem;
    text-align: justify;
    text-justify: inter-word;
    color: #000000;
    display: block;
    margin-bottom: 4px;
}

@media screen and (max-width: 1024px) {
    .wiki-layout {
        flex-direction: column;
    }
    .wiki-sidebar {
        width: 100% !important;
        position: static !important;
        height: auto !important;
        max-height: 380px;
        margin-bottom: 24px;
    }
    footer {
        height: auto;
        display: block;
        margin-bottom: 5vh;
    }
    footer div {
        width: 100%;
        height: auto;
        padding-top: 5%;
        padding-left: 5%;
    }
}
