/* In-game-inspired PoE2 item tooltip. Ornament is original CSS, not GGG artwork. */
.poe-tooltip {
    --poe-tt-gold: #c4a35a;
    --poe-tt-gold-hi: #e8d090;
    --poe-tt-gold-lo: #7a6030;
    --poe-tt-mod: #b0b0ff;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 3px 1px 4px;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-variant: normal;
    font-variant-caps: normal;
    line-height: 1.38;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    background-color: rgba(8, 8, 10, .94);
    background-image: linear-gradient(180deg, rgba(36, 26, 12, .28), transparent 36%);
    border: 1px solid var(--poe-tt-gold-lo);
    box-shadow:
        0 0 0 1px #15110a,
        0 0 0 2px var(--poe-tt-gold),
        0 0 0 3px #15110a,
        inset 0 0 0 1px rgba(196, 163, 90, .45),
        0 12px 28px rgba(0, 0, 0, .7);
    overflow-wrap: anywhere;
}

.poe-tooltip-unique {
    --poe-tt-gold: #d4b46a;
    --poe-tt-gold-hi: #f0dd9a;
    --poe-tt-gold-lo: #8a6a32;
}

.poe-tooltip-rare {
    --poe-tt-gold: #c8b45a;
    --poe-tt-gold-hi: #efe28a;
    --poe-tt-gold-lo: #7a6c28;
}

.poe-tooltip-magic {
    --poe-tt-gold: #6a7aaa;
    --poe-tt-gold-hi: #b8c4e8;
    --poe-tt-gold-lo: #3a4668;
}

.poe-tooltip-normal {
    --poe-tt-gold: #9a9a9a;
    --poe-tt-gold-hi: #d8d8d8;
    --poe-tt-gold-lo: #5a5a5a;
}

.poe-tooltip-header {
    position: relative;
    padding: 8px 30px 6px;
    background: linear-gradient(180deg, rgba(40, 32, 20, .4), rgba(12, 10, 8, .12) 70%, transparent);
    text-transform: none;
}

.poe-tooltip-unique .poe-tooltip-header {
    background:
        radial-gradient(ellipse at 14% 50%, rgba(212, 180, 106, .32), transparent 44%),
        radial-gradient(ellipse at 86% 50%, rgba(212, 180, 106, .32), transparent 44%),
        linear-gradient(180deg, rgba(58, 36, 10, .55) 0%, rgba(16, 12, 8, .18) 75%, transparent);
}

.poe-tooltip-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.poe-tooltip-base {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.poe-tooltip-unique .poe-tooltip-name,
.poe-tooltip-unique .poe-tooltip-base { color: #f0d060; }
.poe-tooltip-rare .poe-tooltip-name,
.poe-tooltip-rare .poe-tooltip-base { color: #ffff77; }
.poe-tooltip-magic .poe-tooltip-name,
.poe-tooltip-magic .poe-tooltip-base { color: #b0b0ff; }
.poe-tooltip-normal .poe-tooltip-name,
.poe-tooltip-normal .poe-tooltip-base { color: #c8c8c8; }

.poe-tooltip-unique .poe-tooltip-header::before,
.poe-tooltip-unique .poe-tooltip-header::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 32px;
    transform: translateY(-50%);
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, var(--poe-tt-gold-hi) 0 1.5px, var(--poe-tt-gold) 2px, transparent 2.4px),
        linear-gradient(180deg, transparent 46%, var(--poe-tt-gold) 47%, var(--poe-tt-gold) 53%, transparent 54%),
        radial-gradient(circle at 50% 22%, var(--poe-tt-gold-hi) 0 1px, var(--poe-tt-gold) 1.4px, transparent 1.8px),
        radial-gradient(circle at 50% 78%, var(--poe-tt-gold-hi) 0 1px, var(--poe-tt-gold) 1.4px, transparent 1.8px),
        radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(196, 163, 90, .45) 48%, transparent 62%);
    opacity: .95;
}

.poe-tooltip-unique .poe-tooltip-header::before { left: 8px; }
.poe-tooltip-unique .poe-tooltip-header::after { right: 8px; }

.poe-tooltip-block {
    margin: 0;
    padding: 5px 16px 6px;
    border-top: 1px solid rgba(196, 163, 90, .38);
    text-transform: none;
    font-variant: normal;
    font-variant-caps: normal;
}

.poe-tooltip-magic .poe-tooltip-block { border-top-color: rgba(106, 122, 170, .45); }
.poe-tooltip-normal .poe-tooltip-block { border-top-color: rgba(154, 154, 154, .4); }

.poe-tooltip-line {
    margin: 0;
    padding: 0;
}

.poe-label { color: #b0b0b0; }
.poe-white { color: #fff; }
.poe-augmented,
.poe-mod { color: var(--poe-tt-mod); }
.poe-fire { color: #e8503a; }
.poe-cold { color: #6f9cf0; }
.poe-lightning { color: #f5d742; }
.poe-chaos { color: #d65ac8; }
.poe-class { color: #fff; font-weight: 600; }
.poe-unique-mod { color: #d07838; font-weight: 600; }
.poe-corrupted { color: #ff3b3b; font-weight: 600; }
.poe-crafted { color: #c8b48a; }
.poe-flavour {
    color: #d07838;
    font-style: italic;
    font-weight: 400;
}

.poe-tt-corner {
    position: absolute;
    z-index: 2;
    width: 13px;
    height: 13px;
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #f8eec0 0 16%, #d4b46a 22% 36%, #6e8a3c 46% 62%, #c4a35a 70%, #5a4418 88%, transparent 90%);
    box-shadow: 0 0 0 1px #3a2e14, 0 0 4px rgba(232, 208, 144, .55);
}

.poe-tt-tl { top: -4px; left: -4px; }
.poe-tt-tr { top: -4px; right: -4px; }
.poe-tt-bl { bottom: -4px; left: -4px; }
.poe-tt-br { bottom: -4px; right: -4px; }

.poe-tooltip-rare .poe-tt-corner,
.poe-tooltip-magic .poe-tt-corner,
.poe-tooltip-normal .poe-tt-corner {
    width: 8px;
    height: 8px;
    top: -2px;
    background: radial-gradient(circle at 50% 40%, var(--poe-tt-gold-hi) 0 30%, var(--poe-tt-gold) 48%, var(--poe-tt-gold-lo) 80%, transparent 82%);
}

.poe-tooltip-rare .poe-tt-tl,
.poe-tooltip-magic .poe-tt-tl,
.poe-tooltip-normal .poe-tt-tl { top: -2px; left: -2px; }
.poe-tooltip-rare .poe-tt-tr,
.poe-tooltip-magic .poe-tt-tr,
.poe-tooltip-normal .poe-tt-tr { top: -2px; right: -2px; }
.poe-tooltip-rare .poe-tt-bl,
.poe-tooltip-magic .poe-tt-bl,
.poe-tooltip-normal .poe-tt-bl { bottom: -2px; left: -2px; }
.poe-tooltip-rare .poe-tt-br,
.poe-tooltip-magic .poe-tt-br,
.poe-tooltip-normal .poe-tt-br { bottom: -2px; right: -2px; }

.equipment-item-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.equipment-item-detail-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.equipment-item-detail-icon {
    width: 72px;
    max-height: 112px;
    object-fit: contain;
}

.equipment-item-detail .snapshot-slot-label {
    font-size: 13px;
    color: var(--poe-muted, #8a8680);
    text-transform: none;
    letter-spacing: 0;
}

.equipment-item-detail .poe-tooltip {
    width: 100%;
    max-width: 420px;
}

.equipment-item-detail .snapshot-socket-section {
    width: 100%;
    max-width: 420px;
}

@media (max-width: 575.98px) {
    .poe-tooltip {
        font-size: 12.5px;
        line-height: 1.38;
        max-width: 100%;
    }
    .poe-tooltip-name { font-size: 15px; }
    .poe-tooltip-base { font-size: 12.5px; }
    .poe-tooltip-header { padding-inline: 26px; }
}
