/* =========================================
   SKETCH SPORTS X - HEADER & NAV SYSTEM
   ========================================= */

/* 1. CARGA DE FUENTES */
@font-face {
    font-family: 'medium';
    src: url('made-infinity-personal-use/MADEINFINITY PERSONALUSE-Medium.otf');
    font-display: swap;
}
@font-face {
    font-family: 'light';
    src: url('made-infinity-personal-use/MADEINFINITY PERSONALUSE-Light.otf');
    font-display: swap;
}
@font-face {
    font-family: 'regular';
    src: url('made-infinity-personal-use/MADEINFINITY PERSONALUSE-Regular.otf');
    font-display: swap;
}
@font-face {
    font-family: 'thin';
    src: url('made-infinity-personal-use/MADEINFINITY PERSONALUSE-Thin.otf');
    font-display: swap;
}

/* 2. VARIABLES GLOBALES */
:root {
    --sp-cyan: #00E5FF;      /* NUEVO COLOR DE ACENTO */
    --glass-bg: rgba(5, 5, 5, 0.85); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 229, 255, 0.4); /* Resplandor Cyan */
}

/* 3. BARRA HYPE (TICKER SUPERIOR) */
.sx-hype-ticker {
    background: var(--sp-cyan);
    color: #000; /* Texto negro sobre cyan para máximo contraste */
    font-family: 'medium', sans-serif;
    font-size: 0.80rem;
    padding: 4px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1002;
    letter-spacing: 1px;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

.ticker-content span { margin: 0 30px; text-transform: uppercase; }
.ticker-content .divider { opacity: 0.4; font-weight: bold; }

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* 4. HEADER FLOTANTE (DESKTOP) */
.sx-floating-header {
    position: fixed;
    top: 30px; /* Debajo del ticker */
    left: 0; 
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Permite clicks a través de los huecos */
}

.header-inner {
    pointer-events: all;
    width: 100%;
    max-width: 1400px;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    
    /* ALINEACIÓN PERFECTA (FIX) */
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* Logo con espacio seguro */
.sx-logo {
    display: flex; align-items: center;
    margin-right: 40px; 
    flex-shrink: 0;
}
.sx-logo img { height: 62px; width: auto; display: block; }

/* Navegación Central */
.sx-nav-desktop { 
    display: flex; gap: 35px; 
    flex: 1; justify-content: center;
}

.nav-item {
    color: #bbb;
    text-decoration: none;
    font-family: 'regular', sans-serif; /* Tu fuente regular */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-item:hover { color: white; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.nav-item.active { color: white; font-family: 'medium', sans-serif; }

/* Efecto de línea Cyan al hover */
.nav-item::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--sp-cyan); transition: 0.3s;
}
.nav-item:hover::after { width: 100%; box-shadow: var(--neon-glow); }

/* Highlight SketchON */
.nav-item.highlight { color: white; font-family: 'medium', sans-serif; }

/* Acciones Derecha (Buscador + Login) */
.sx-actions-desktop {
    display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}

.search-trigger {
    background: none; border: none; color: white; font-size: 1.1rem;
    cursor: pointer; padding: 5px; display: flex; align-items: center;
    transition: 0.3s;
}
.search-trigger:hover { color: var(--sp-cyan); transform: scale(1.1); }

/* Botón Login Estilo "Cyber" */
.btn-glitch-login {
    background: rgba(255,255,255,0.05);
    color: white; text-decoration: none;
    padding: 8px 25px; border-radius: 4px;
    font-family: 'medium', sans-serif; font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s; letter-spacing: 1px;
}
.btn-glitch-login:hover {
    background: var(--sp-cyan); border-color: var(--sp-cyan);
    color: black; box-shadow: var(--neon-glow);
}

/* 5. BARRA INFERIOR MÓVIL (APP STYLE) */
.sx-mobile-bottom-nav {
    display: none; /* Oculto en PC */
    position: fixed; bottom: 0; left: 0; width: 100%;
    height: 70px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom); /* Fix para iPhone X+ */
}

.bottom-item {
    color: #666; text-decoration: none; background: none; border: none;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.7rem; font-family: 'regular', sans-serif; text-transform: uppercase;
    width: 60px; transition: 0.3s;
}
.bottom-item i { font-size: 1.2rem; margin-bottom: 2px; }

.bottom-item.active, .bottom-item:hover { color: white; }
.bottom-item.active i { color: var(--sp-cyan); transform: translateY(-2px); }

/* Botón Central Flotante (Play) */
.center-fab { position: relative; top: -20px; }
.fab-circle {
    width: 50px; height: 50px;
    background: var(--sp-cyan);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    border: 4px solid #000; /* "Corta" la barra visualmente */
    transition: 0.3s;
}
.fab-circle i { color: black; font-size: 1.2rem; margin-left: 2px; }
.center-fab:hover .fab-circle { transform: scale(1.1); box-shadow: 0 0 25px var(--sp-cyan); }

/* 6. OVERLAY DE BÚSQUEDA */
.sx-search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.96); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.sx-search-overlay.active { opacity: 1; visibility: visible; }

.search-container { width: 90%; max-width: 600px; text-align: center; }
.search-container label {
    display: block; color: var(--sp-cyan); font-family: 'medium', sans-serif;
    margin-bottom: 15px; font-size: 0.9rem; letter-spacing: 2px;
}

#searchInput {
    width: 100%; background: transparent; border: none;
    border-bottom: 2px solid #333; color: white;
    font-size: 2rem; font-family: 'light', sans-serif;
    text-align: center; padding: 10px; outline: none;
}
#searchInput:focus { border-color: var(--sp-cyan); }

.close-search {
    position: absolute; top: 30px; right: 30px; background: none;
    border: none; color: white; font-size: 2rem; cursor: pointer;
}
.search-results { margin-top: 30px; text-align: left; max-height: 50vh; overflow-y: auto; }
.empty-state { text-align: center; color: #555; font-family: 'light', sans-serif; }

.result-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border-bottom: 1px solid #222;
    text-decoration: none; color: white; transition: 0.2s;
}
.result-item:hover { background: #111; border-left: 3px solid var(--sp-cyan); padding-left: 20px; }
.result-type { font-size: 0.7rem; color: var(--sp-cyan); text-transform: uppercase; font-family: 'medium', sans-serif; }
.result-item h4 { margin: 0; font-family: 'regular', sans-serif; font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sx-nav-desktop, .sx-actions-desktop { display: none; }
    
    .sx-floating-header { 
        top: 0; padding: 0; background: #000; position: relative; 
    }
    .header-inner { 
        background: transparent; border: none; box-shadow: none;
        justify-content: center; height: 60px;
    }
    .sx-mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; } /* Espacio para que el nav no tape contenido */
}