/* Card link base styling */
a.card-link {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px dotted #2980b9;
    cursor: pointer;
}

a.card-link:hover {
    color: #1a5276;
    border-bottom-style: solid;
}

/* Empty or disabled card ID (data-card-id="0") = render as plain text.
   Users can change [card=LOTR01234] to [card=0] to suppress a false positive. */
a.card-link[data-card-id=""],
a.card-link[data-card-id="0"] {
    color: inherit;
    border-bottom: none;
    cursor: text;
    pointer-events: none;
    text-decoration: none;
}

/* Ambiguous card link - orange with help cursor */
a.card-link.card-ambiguous {
    color: #d4820a;
    border-bottom: 1px dashed #d4820a;
    cursor: help;
}

a.card-link.card-ambiguous:hover {
    color: #a36208;
}

/* Highly ambiguous card link (5+ matches) - red */
a.card-link.card-ambiguous-many {
    color: #c0392b;
    border-bottom: 1px dashed #c0392b;
    cursor: help;
}

a.card-link.card-ambiguous-many:hover {
    color: #922b21;
}

/* Tooltip - lives on document.body, positioned via JS */
.card-tooltip {
    position: absolute;
    z-index: 99999;
    pointer-events: none;
}

/* Constrain card images to a square bounding box so vertical and horizontal
   cards display at the same visual scale */
.card-tooltip img {
    max-width: 600px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
