/* ─── GameTooltip styles ─────────────────────────────────────────────
 * Used by window.gameTooltip (public/assets/js/main.js) to render the
 * structured tooltip data produced by PHP-side GameData::buildItemTooltip().
 *
 * Two usage modes:
 *   • Floating: <div class="gt-tooltip"> (default — position:fixed, hover popup)
 *   • Inline:   <div class="gt-tooltip gt-tooltip--inline"> (embedded in a card)
 *
 * Color palette mirrors the auStack_1b4 color codes in FUN_005ebac0.
 * ──────────────────────────────────────────────────────────────────── */

.gt-tooltip {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    min-width: 240px;
    max-width: 320px;
    background: rgba(8, 12, 24, 0.97);
    color: #e8eefc;
    border: 1px solid #3a4a6e;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05) inset;
    font-size: 12.5px;
    line-height: 1.45;
    padding: 0;
    font-family: inherit;
}

/* Inline variant — embedded inside another card (e.g. Selected cell detail).
   Strips the fixed-position popup behaviour while keeping the visual look. */
.gt-tooltip--inline {
    position: static;
    pointer-events: auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    margin-top: 12px;
}

.gt-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-bottom: 1px solid #243049;
    background: linear-gradient(180deg, rgba(56,80,140,0.30), rgba(56,80,140,0.05));
    border-radius: 6px 6px 0 0;
}
.gt-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 4px;
    background: #0a1020;
    border: 1px solid #2a3a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gt-icon img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.gt-icon i   { color: #5a6a8a; font-size: 20px; }
.gt-head-meta { flex: 1; min-width: 0; }
.gt-name {
    font-weight: 700;
    color: #fff;
    font-size: 13.5px;
    word-break: break-word;
}
.gt-size-pill {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(99,128,179,0.25);
    color: #b8c8e8;
    font-size: 10.5px;
    font-weight: 600;
}

.gt-body    { padding: 8px 12px 4px; }
.gt-body p,
.gt-body div { margin: 0; }

.gt-line {
    display: block;
    padding: 1px 0;
    word-break: break-word;
}
.gt-spacer { height: 6px; }

/* Socket row — up to 5 gem slots, icons are 32×32 game art. */
.gt-sockets {
    display: flex;
    gap: 3px;
    padding: 3px 0;
}
.gt-socket {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    image-rendering: pixelated;
}

.gt-footer {
    padding: 6px 12px 8px;
    border-top: 1px dashed #243049;
    margin-top: 4px;
    font-size: 11px;
}
.gt-footer .gt-line { padding: 0; }

/* ─── Color palette (matches FUN_005ebac0 auStack_1b4 codes) ────────── */
.gt-c-white     { color: #ffffff; }
.gt-c-gold      { color: #f5c542; }
.gt-c-orange    { color: #ff9a3c; }
.gt-c-yellow    { color: #ffe34d; }
.gt-c-red       { color: #ff6b6b; }
.gt-c-cyan      { color: #6fd8ff; }
.gt-c-lightblue { color: #9ec5ff; }
.gt-c-green     { color: #6ee07a; }
.gt-c-purple    { color: #c887ff; }
.gt-c-gray      { color: #98a5c2; }

/* ─── Color palette (by hex directory, for custom colors not in auStack_1b4) ────────── */

.gt-c-1  { color: #FFFFFF; }
.gt-c-2  { color: #FF0000; }
.gt-c-3  { color: #FFFF00; }
.gt-c-4  { color: #0000FF; }
.gt-c-5  { color: #009F62; }
.gt-c-6  { color: #3D117B; }
.gt-c-7  { color: #B3B3B3; }
.gt-c-8  { color: #F9CD8A; }
.gt-c-9  { color: #8DCFF4; }
.gt-c-10 { color: #89CA9D; }
.gt-c-11, .gt-c-0xb { color: #FFF99D; }
.gt-c-12, .gt-c-0xc { color: #F4A0BD; }
.gt-c-13, .gt-c-0xd { color: #DF0029; }
.gt-c-14, .gt-c-0xe { color: #528413; }
.gt-c-15, .gt-c-0xf { color: #A8A400; }
.gt-c-16, .gt-c-0x10 { color: #00693F; }
.gt-c-17, .gt-c-0x11 { color: #006D69; }
.gt-c-18, .gt-c-0x12 { color: #004477; }
.gt-c-19, .gt-c-0x13 { color: #260751; }
.gt-c-20, .gt-c-0x14 { color: #6D0026; }
.gt-c-21, .gt-c-0x15 { color: #CBB99C; }
.gt-c-22, .gt-c-0x16 { color: #332A29; }
.gt-c-23, .gt-c-0x17 { color: #5B3714; }
.gt-c-24, .gt-c-0x18 { color: #D19C2B; }
.gt-c-25, .gt-c-0x19 { color: #8C388F; }
.gt-c-26, .gt-c-0x1a { color: #F99E6C; }
.gt-c-27, .gt-c-0x1b { color: #9999CC; }
.gt-c-28, .gt-c-0x1c { color: #A6D59D; }
.gt-c-29, .gt-c-0x1d { color: #8CE691; }
.gt-c-30, .gt-c-0x1e { color: #3FBBEF; }
.gt-c-31, .gt-c-0x1f { color: #C3FCB5; }
.gt-c-32, .gt-c-0x20 { color: #3BB3FF; }
.gt-c-33, .gt-c-0x21 { color: #F888FF; }
.gt-c-34, .gt-c-0x22 { color: #7BDBFA; }
.gt-c-35, .gt-c-0x23 { color: #FA9600; }
.gt-c-36, .gt-c-0x24 { color: #8ACD9C; }
.gt-c-37, .gt-c-0x25 { color: #00C078; }
.gt-c-38, .gt-c-0x26 { color: #FFFB9C; }
.gt-c-39, .gt-c-0x27 { color: #F7CF8C; }
.gt-c-40, .gt-c-0x28 { color: #35E0FF; }
.gt-c-41, .gt-c-0x29 { color: #33D899; }
.gt-c-42, .gt-c-0x2a { color: #E6A3EA; }
.gt-c-43, .gt-c-0x2b { color: #DDC4A0; }
.gt-c-44, .gt-c-0x2c { color: #AAAAAA; }

