/*
 * Shared design tokens for supplement-bewertung.de
 *
 * One place for the values that used to be repeated across every stylesheet:
 * eleven different corner radii, nine near-identical border greys and a dozen
 * shadows. New or reworked components read these variables instead of their own
 * hex values, so a change to the look is a change to this file.
 *
 * The palette is the navy and gold introduced with the athlete directory.
 * Older stylesheets keep their hard-coded values until they are migrated; this
 * file only adds variables and never overrides existing rules on its own.
 */
:root {
    /* Navy: the primary surface colour, as a scale and as the shared gradient */
    --sp-navy-900: #122b49;
    --sp-navy-700: #17467e;
    --sp-navy-500: #2464a7;
    --sp-navy-gradient: linear-gradient(125deg, #122b49 0%, #17467e 62%, #2464a7 100%);
    --sp-navy-gradient-hover: linear-gradient(125deg, #17467e, #2464a7);
    --sp-navy-gradient-flat: linear-gradient(125deg, #122b49, #17467e);

    /* Gold: accents only, never a large surface */
    --sp-gold: #E3A93A;
    --sp-gold-strong: #8A5A00;
    --sp-gold-light: #F2C063;
    --sp-gold-tint: #FAEEDA;

    /* Lines and quiet surfaces */
    --sp-border: #c7d7ea;
    --sp-border-soft: #d8e3f1;
    --sp-border-strong: #17467e;
    --sp-surface: #fff;
    --sp-surface-quiet: #f6f9fd;
    --sp-surface-tint: #edf3fa;
    --sp-surface-badge: #e3ecf7;

    /* Text */
    --sp-text: #2f4862;
    --sp-text-strong: #122b49;
    --sp-text-muted: #5a708a;
    --sp-text-link: #17467e;
    --sp-text-on-navy: #cfe0f5;

    /* Corner radii: four steps instead of eleven ad-hoc values */
    --sp-radius-sm: 8px;
    --sp-radius: 14px;
    --sp-radius-lg: 22px;
    --sp-radius-pill: 100px;

    /* Shadows */
    --sp-shadow-card: 0 8px 22px #122b490d;
    --sp-shadow-card-hover: 0 10px 26px #122b4926;
    --sp-shadow-raised: 0 14px 34px #122b490f;
    --sp-shadow-navy: 0 12px 28px #122b491f;

    /* Spacing */
    --sp-gap: 18px;
    --sp-block-gap: 36px;

    /* Focus ring, identical everywhere */
    --sp-focus: 3px solid #326dc7;
}

/* Reusable pieces built from the tokens. Opt-in: nothing applies by itself. */
.sp-t-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: var(--sp-surface);
    box-shadow: var(--sp-shadow-card);
    transition: border-color .15s, box-shadow .15s;
}
.sp-t-card:hover { border-color: var(--sp-navy-500); box-shadow: var(--sp-shadow-card-hover); }

.sp-t-media {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border-bottom: 3px solid var(--sp-navy-700);
    background: var(--sp-navy-gradient);
    transition: border-color .15s;
}
.sp-t-card:hover .sp-t-media { border-color: var(--sp-gold); }
.sp-t-media img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; margin: 0; object-fit: contain; }

.sp-t-label {
    align-self: flex-start;
    margin: 0 0 9px;
    padding: 3px 10px;
    border-radius: var(--sp-radius-pill);
    background: var(--sp-navy-gradient-hover);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .03em;
}

.sp-t-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--sp-radius-pill);
    background: var(--sp-navy-gradient-flat);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s;
}
.sp-t-button:hover { background: var(--sp-navy-gradient-hover); color: #fff; }
.sp-t-button svg { width: 16px; height: 16px; }

.sp-t-kicker {
    margin: 0 0 6px;
    color: var(--sp-gold-strong);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .sp-t-card, .sp-t-media, .sp-t-button { transition: none; }
}
