/* static/css/style.css */
:root {
    --navy: #0f172a;
    --gold: #b4975a;
    --slate-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--slate-light);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--navy);
    margin: 0;
}

.item-card {
    background: white;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.price-tag {
    font-weight: bold;
    color: var(--navy);
}

.badge-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

footer .grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

footer .group:hover .grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

footer p {
    margin-bottom: 0 !important;
}

/* --- Numismatický slovník (Tooltips) --- */

.glossary-term {
    border-bottom: 1px dotted #d97706; /* Jantarová linka Signatum */
    cursor: help;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

.glossary-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a; /* Slate 900 */
    color: #f1f5f9;
    text-align: left;
    padding: 12px;
    border-radius: 2px;
    width: 250px;
    font-size: 11px;
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #d97706; /* Spodní zvýraznění */
}

.glossary-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #d97706 transparent transparent transparent;
}

.glossary-term:hover .glossary-tooltip {
    visibility: visible;
    opacity: 1;
}