/* Radar / Hex graph + game-page row 2/3 layout
 * Generic radar styles — used by mechanic hex on the game page, and by
 * future themes hex (and any other 6-axis radar dropped on the page).
 * Layout for the side-by-side stats + hex row also lives here. */

/* ---------- Row 2 / Row 3 layout ---------- */
.game-overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 12px 0 24px;
    align-items: start;
}

@media (max-width: 767px) {
    .game-overview-row {
        grid-template-columns: 1fr;
    }
}

/* The left column inherits .game-stats-bar styles already defined inline in
 * game-page.php — just make sure it doesn't get squished. */
.game-overview-row .game-stats-bar {
    margin: 0;
}

.game-hex-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Radar hex card ---------- */
.radar-hex-card {
    background: #1f2937;
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    color: #e5e7eb;
}

.radar-hex-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.radar-hex-card__subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.radar-hex-card--empty .radar-hex-card__placeholder {
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
}

/* ---------- The radar SVG ---------- */
.radar-hex {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
}

.radar-hex svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.radar-hex__grid {
    fill: none;
    stroke: #374151;
    stroke-width: 1;
}

.radar-hex__axis {
    stroke: #374151;
    stroke-width: 1;
}

.radar-hex__data {
    fill: rgba(251, 146, 60, 0.30);
    stroke: #fb923c;
    stroke-width: 2;
    stroke-linejoin: round;
}

.radar-hex__point {
    fill: #fb923c;
    stroke: #1f2937;
    stroke-width: 2;
    cursor: pointer;
}

.radar-hex__label {
    fill: #e5e7eb;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.radar-hex__label:hover,
.radar-hex__point:hover {
    fill: #fdba74;
}

/* ---------- Tooltip ---------- */
.radar-hex__tooltip {
    position: absolute;
    pointer-events: none;
    background: #111827;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    box-shadow: inset 0 0 0 1px rgba(251,146,60,.4), 0 4px 12px rgba(0,0,0,.5);
    opacity: 0;
    transform: translate(-50%, calc(-100% - 10px));
    transition: opacity .12s;
    z-index: 10;
    white-space: normal;
}

.radar-hex__tooltip--visible {
    opacity: 1;
}

.radar-hex__tooltip-title {
    font-weight: 600;
    color: #fb923c;
    margin-bottom: 2px;
}

.radar-hex__tooltip-percentile {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
