/* ============================================================
   CLIENT SHELL – közös felső sáv minden "kliens" oldalon
   (index, hero-index, stat). Az elemek JS-ből (clientShell.js)
   kerülnek be a #app-topbar konténerbe.
   ============================================================ */

body.has-client-shell {
    padding-top: 76px;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: var(--z-shell);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;

    background: linear-gradient(180deg, rgba(4, 10, 18, 0.92), rgba(3, 5, 9, 0.85));
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* ---------- Bal oldal: JÁTÉK gomb + orb logó ---------- */

.topbar-play {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 7px;
    border-radius: 999px;
    border: 1px solid rgba(76, 212, 255, 0.4);
    background: linear-gradient(180deg, rgba(10, 24, 38, 0.9), rgba(4, 10, 18, 0.9));
    color: var(--c-text);
    text-decoration: none;
    font-family: "AOW", serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: border-color var(--t-mid) var(--ease-premium), box-shadow var(--t-mid) var(--ease-premium), transform var(--t-fast) var(--ease-premium);
}

.topbar-play:hover {
    border-color: var(--c-cyan);
    box-shadow: 0 0 18px rgba(76, 212, 255, 0.45);
    transform: translateY(-1px);
}

.topbar-play:active {
    transform: translateY(0px) scale(0.98);
}

.topbar-orb {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #1c4a70, #041018 75%);
    border: 1px solid rgba(140, 220, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.topbar-orb::before,
.topbar-orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(140, 225, 255, 0.9), rgba(0, 140, 255, 0.15) 70%);
    filter: blur(1px);
    animation: orbFloat 4.5s ease-in-out infinite;
}

.topbar-orb::before {
    width: 16px;
    height: 16px;
    left: 6px;
    bottom: 4px;
    animation-delay: 0s;
}

.topbar-orb::after {
    width: 10px;
    height: 10px;
    right: 5px;
    bottom: 10px;
    animation-delay: -2.2s;
    opacity: 0.8;
}

.topbar-orb-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "AOW", serif;
    font-size: 1.05rem;
    color: #eafcff;
    text-shadow: 0 0 8px rgba(120, 220, 255, 0.9), 0 0 16px rgba(0, 170, 255, 0.6);
    z-index: 1;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
    50%      { transform: translateY(-10px) scale(1.12); opacity: 1; }
}

/* ---------- Jobb oldal: navigációs ikonok ---------- */

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-s);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--c-text-dim);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--t-mid) var(--ease-premium), color var(--t-mid) var(--ease-premium), background var(--t-mid) var(--ease-premium), box-shadow var(--t-mid) var(--ease-premium);
}

.topbar-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.topbar-icon-btn:hover {
    color: var(--c-cyan);
    border-color: var(--border-glow-cyan);
    background: rgba(76, 212, 255, 0.08);
    box-shadow: 0 0 12px rgba(76, 212, 255, 0.3);
}

.topbar-icon-btn.active {
    color: var(--c-gold);
    border-color: var(--border-glow-gold);
    background: rgba(255, 210, 76, 0.08);
    box-shadow: 0 0 12px rgba(255, 210, 76, 0.3);
}

/* ---------- Közös üveg-panel / hextech panel utility ---------- */

.hextech-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(9, 18, 30, 0.75), rgba(3, 6, 11, 0.9));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 14px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.hextech-panel--cut {
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

@media (max-width: 760px) {
    .app-topbar { padding: 0 12px; gap: 10px; }
    .topbar-play span.topbar-play-label { display: none; }
}

/* ---------- Fullscreen váltó (jobb alsó sarok, alig látható) ---------- */

#fullscreen-toggle {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: var(--z-shell);

    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.12;
    transition: opacity var(--t-mid) var(--ease-premium);
}

#fullscreen-toggle svg {
    width: 16px;
    height: 16px;
}

#fullscreen-toggle svg line {
    stroke: var(--c-text, #fff);
    stroke-width: 1.5;
    stroke-linecap: round;
}

#fullscreen-toggle:hover,
#fullscreen-toggle:focus-visible {
    opacity: 0.75;
}

#fullscreen-toggle.is-fullscreen svg line {
    stroke: var(--c-cyan, #4cd4ff);
}
