/* =====================================================
   PAPUGAME — topbar.css
   Importar en cualquier página que use el topbar
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg-deep:      #07090e;
    --bg-card:      #0d1018;
    --bg-surface:   #111520;
    --accent:       #00e5ff;
    --accent2:      #ff3c6e;
    --text:         #dde4f0;
    --text-muted:   #5a6a85;
    --border:       #1a2235;
    --border-light: #243048;
    --glow-cyan:    0 0 24px rgba(0,229,255,0.22);
    --font-title:   'Bebas Neue', sans-serif;
    --font-body:    'Rajdhani', sans-serif;
    --font-mono:    'Share Tech Mono', monospace;
    --topbar-h:     68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; }
a    { text-decoration: none; color: inherit; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ruido sutil */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ===== TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--topbar-h);
    background: rgba(7,9,14,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    gap: 24px;
}

.logo {
    font-family: var(--font-title);
    font-size: 30px;
    letter-spacing: 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.logo-papu { color: var(--accent); text-shadow: var(--glow-cyan); }
.logo-game { color: var(--accent2); }
.logo-dot  { color: var(--text-muted); font-size: 22px; }

.topbar-search {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.topbar-search input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 44px 10px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus {
    border-color: var(--accent);
    box-shadow: var(--glow-cyan);
}
.topbar-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
.topbar-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(0,229,255,0.07);
    border: 1px solid rgba(0,229,255,0.18);
    padding: 5px 12px;
    border-radius: 4px;
}

/* Responsive topbar */
@media (max-width: 900px) {
    .topbar-inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 600px) {
    .topbar-inner { grid-template-columns: auto 1fr; }
    .topbar-right { display: none; }
}
