/*
 Theme Name:   Flamo Child
 Theme URI:    https://flamo.wtf
 Description:  Child theme de Flamo sobre GeneratePress
 Author:       Flamo
 Template:     generatepress
 Version:      1.2.0
 Text Domain:  flamo-child
*/

/* ─────────────────────────────────────────────
   VARIABLES
───────────────────────────────────────────── */
:root {
    --white-chalk:      #F6F4F1;
    --silver-haze:      #E2E4E7;
    --cosmic-black:     #0A0D0F;
    --celestial-canvas: #0A2538;
    --prairie-land:     #E2CC9C;
    --tomato-curry:     #E84A2E;

    --font:    "Helvetica Neue", Helvetica, Arial, sans-serif;
    --nav-h:   72px;          /* altura de la barra de nav */
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    /* El color del body ES el WebGL; sólo como fallback */
    background-color: var(--celestial-canvas) !important;
    color: var(--white-chalk);
    overflow-x: hidden;
    overflow-y: auto;
    cursor: none;
}

@media (max-width: 1024px) { body { cursor: auto; } }

/* ─────────────────────────────────────────────
   NEUTRALIZAR GENERATEPRESS COMPLETAMENTE
   Todo lo que GP inyecte debe ser transparente.
   Solo .flamo-card y .flamo-footer tienen fondo.
───────────────────────────────────────────── */
html                        { background: var(--celestial-canvas) !important; }

/* Wrappers de GP */
#page,
.site,
#content,
.site-content,
.content-area,
#primary,
.inside-site-content,
.grid-container,
.generate-columns-container { background: transparent !important;
                               background-color: transparent !important;
                               padding: 0 !important;
                               margin: 0 !important;
                               max-width: 100% !important;
                               width: 100% !important; }

/* Entradas */
.hentry,
.entry,
.entry-content,
.page-content,
.post,
.page,
.type-post,
.type-page      { background: transparent !important;
                  background-color: transparent !important; }

/* Cualquier clase dinámica de GP */
[class*="generate-"],
[id*="generate-"] { background: transparent !important;
                    background-color: transparent !important; }

/* Ocultar partes del tema que no usamos */
.site-header,
.main-navigation,
.site-footer,
.sidebar,
#generate-back-to-top { display: none !important; }

/* ─────────────────────────────────────────────
   CANVAS WEBGL — siempre al fondo
───────────────────────────────────────────── */
#webGLApp {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ─────────────────────────────────────────────
   CURSOR PERSONALIZADO
───────────────────────────────────────────── */
.custom-cursor {
    position: fixed;
    width: 40px; height: 40px;
    border: 2px solid var(--white-chalk);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    translate: -50% -50%;
    transition: width .2s, height .2s, background-color .2s, border-color .2s;
}
.custom-cursor::before {
    content: "";
    position: absolute;
    inset: 50%;
    translate: -50% -50%;
    width: 7px; height: 7px;
    background: var(--white-chalk);
    border-radius: 50%;
    transition: opacity .2s;
}
body.hovering-link .custom-cursor {
    width: 56px; height: 56px;
    background: rgba(246,244,241,.1);
    border-color: transparent;
}
body.hovering-link .custom-cursor::before { opacity: 0; }

@media (max-width: 1024px) { .custom-cursor { display: none !important; } }

/* ─────────────────────────────────────────────
   NAV — REDES SOCIALES (izquierda)
───────────────────────────────────────────── */
.flamo-social-nav {
    position: fixed;
    top: 0; left: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding-left: 2.75rem;
    gap: 1.5rem;
    z-index: 200;
}
.flamo-social-icon {
    color: var(--white-chalk);
    opacity: .55;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity .3s, transform .3s;
    cursor: none;
}
.flamo-social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.flamo-social-icon:hover { opacity: 1; transform: scale(1.15); }

/* ─────────────────────────────────────────────
   NAV — PRINCIPAL (derecha)
───────────────────────────────────────────── */
.flamo-top-nav {
    position: fixed;
    top: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding-right: 2.75rem;
    gap: 2.5rem;
    z-index: 200;
}
.flamo-top-nav a {
    position: relative;
    color: var(--white-chalk);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .55;
    padding-bottom: 4px;
    transition: opacity .3s;
    cursor: none;
}
.flamo-top-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--white-chalk);
    transition: width .35s ease;
}
.flamo-top-nav a:hover,
.flamo-top-nav a.current-menu-item        { opacity: 1; }
.flamo-top-nav a:hover::after,
.flamo-top-nav a.current-menu-item::after { width: 100%; }

/* ─────────────────────────────────────────────
   NAV MOBILE — barra inferior
───────────────────────────────────────────── */
@media (max-width: 768px) {
    .flamo-social-nav {
        padding-left: 1.25rem;
        gap: 1.25rem;
    }
    .flamo-top-nav {
        top: auto; right: auto;
        bottom: 0; left: 0;
        width: 100%;
        height: auto;
        padding: .6rem .5rem;
        padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
        justify-content: center;
        gap: 0;
        background: rgba(10,13,15,.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(246,244,241,.07);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .flamo-top-nav a {
        padding: .55rem 1rem;
        font-size: .7rem;
        opacity: .5;
        cursor: pointer;
        white-space: nowrap;
    }
    .flamo-top-nav a::after { display: none; }
    .flamo-top-nav a.current-menu-item {
        opacity: 1;
        color: var(--tomato-curry);
    }
    .flamo-social-icon { cursor: pointer; }
}
