﻿@import url('https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&family=Roboto:wght@400;500;700;900&display=swap');

/* --- Ability Card Variables --- */
:root {
    --ahc-bg-color: #1a1a1a;
    --ahc-border-color: #444;
    --ahc-header-bg: #141414;
    --ahc-body-bg: #1e1e1e;
    --ahc-text-primary: #e4e4e4;
    --ahc-text-secondary: #ccc;
    --ahc-text-gold: #f0e6d2;
    --ahc-accent-purple: #bd9eff;
    --ahc-accent-green: #70e070;
    --ahc-accent-orange: #fb923c;
}

/* --- Trigger & Wrapper --- */
.ability-hover-trigger {
    position: relative;
    cursor: help;
}

/* --- Card Container --- */
.ahc-card {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(10px) translateX(-50%);
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 420px;
    z-index: 50;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    pointer-events: none;
    background-color: var(--ahc-bg-color);
    border: 1px solid var(--ahc-border-color);
    color: var(--ahc-text-secondary);
    font-family: 'Roboto', sans-serif;
    text-align: left;
    margin-bottom: 10px;
}

.ability-hover-trigger:hover .ahc-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
    pointer-events: auto;
}

/* --- Header --- */
.ahc-header {
    background-color: var(--ahc-header-bg);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.ahc-title {
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 1.25rem; /* text-xl */
    color: #f3ebd7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ahc-header-props {
    display: flex;
    gap: 8px;
}

.ahc-pill {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem; /* text-xs */
    font-weight: bold;
    display: flex;
    align-items: center;
    border: 1px solid #333;
    white-space: nowrap;
}

    .ahc-pill img {
        width: 12px;
        height: 12px;
        margin-right: 4px;
        opacity: 0.8;
    }

/* --- Body --- */
.ahc-body {
    padding: 16px;
    background-color: var(--ahc-body-bg);
}

.ahc-description {
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5;
    margin-bottom: 16px;
    color: #d1d5db; /* gray-300 */
}

/* --- Upgrades Grid --- */
.ahc-upgrade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background-color: #333; /* Gap color */
    border-top: 1px solid #333;
}

.ahc-upgrade-cell {
    background-color: #232323;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.ahc-diamond {
    width: 24px;
    height: 24px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8a6dc4; /* diamond-purple default */
    color: #8a6dc4;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

    .ahc-diamond span {
        font-weight: bold;
        font-size: 12px;
        letter-spacing: 0.5px;
        line-height: 1;
    }

.ahc-upgrade-text {
    font-size: 0.75rem; /* text-xs */
    color: #9ca3af; /* gray-400 */
    line-height: 1.25;
    margin-top: 4px;
}

.ahc-upgrade-val {
    color: #fff;
    font-weight: bold;
}

/* --- Inline Utilities --- */
.ahc-description img,
.ahc-description svg,
.ahc-upgrade-cell img,
.ahc-upgrade-cell svg {
    height: 1.1em;
    width: auto;
    display: inline-block;
    vertical-align: text-bottom;
    margin: 0 2px;
}

.highlight {
    color: #fff;
    font-weight: 700;
}

.diminish {
    color: #888;
    font-style: italic;
}

.SpiritDamage, .BonusSpiritDamage, .highlight_spirit {
    color: var(--ahc-accent-purple);
    font-weight: 700;
}

.Heal {
    color: var(--ahc-accent-green);
    font-weight: 700;
}

.Silence {
    color: #d88aff;
    font-weight: 700;
}

.MoveSpeed {
    color: var(--ahc-accent-orange);
    font-weight: 700;
}
