/**
 * Zikof — Header unifié mobile-first pour tous les jeux
 * Ne dépend PAS de design-system.css
 */

.game-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 11, 30, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 12px;
}

[data-theme="light"] .game-header {
    background: rgba(245,243,255,0.95);
    border-bottom-color: rgba(0,0,0,0.06);
}

.game-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo */
.gh-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.gh-logo-icon { font-size: 1.3rem; }

.gh-logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

[data-theme="light"] .gh-logo-text { color: #1e1b4b; }

/* Nav — pushed right */
.gh-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.gh-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.15s;
    white-space: nowrap;
}

[data-theme="light"] .gh-nav a { color: rgba(30,27,75,0.6); }

.gh-nav a:hover { color: white; background: rgba(255,255,255,0.1); }
[data-theme="light"] .gh-nav a:hover { color: #1e1b4b; background: rgba(0,0,0,0.05); }

/* Status badge */
.gh-status {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    padding: 3px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    white-space: nowrap;
}

[data-theme="light"] .gh-status {
    color: rgba(30,27,75,0.5);
    background: rgba(0,0,0,0.05);
}

/* Theme toggle */
.gh-theme {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.gh-theme:hover { background: rgba(255,255,255,0.08); }
[data-theme="light"] .gh-theme { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .gh-theme:hover { background: rgba(0,0,0,0.04); }

/* Help button */
.gh-help {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.gh-help:hover { background: rgba(255,255,255,0.08); }

/* Avatar */
.gh-avatar{width:30px;height:30px;border-radius:50%;background:#7c3aed;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:white;font-weight:700;font-size:0.8rem;text-decoration:none;transition:transform 0.15s;}
.gh-avatar:hover{transform:scale(1.1);}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .game-header { padding: 6px 8px; }
    .gh-logo-text { font-size: 0.85rem; }
    .gh-nav a { font-size: 0.7rem; padding: 4px 7px; }
    .gh-status { display: none; }
    .gh-theme, .gh-help { width: 30px; height: 30px; font-size: 0.85rem; }
}
