/**
 * Ranking link buttons — shared CTA primitives.
 *
 * Two visual tiers used across result pages to advertise the feature
 * hierarchy of a section (e.g. "View results" → "Track results").
 *
 *   .ranking-link            primary CTA  (lower tier, e.g. static list)
 *   .ranking-link-secondary  outlined CTA (higher tier, e.g. tracker)
 *
 * Canonical source: lifted from frontend/top-list/index.html, which is the
 * rankings hub that links into all four ranking sections.
 *
 * Note: frontend/107live/index.html intentionally keeps its own inline copy —
 * live uses a "ghost primary" variant for the secondary button (cascades
 * from .ranking-link). Do not include this stylesheet on that page without
 * first reconciling the difference. The competitions hub now loads this
 * stylesheet (its old inline copy is gone).
 */

.ranking-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--action) 0%, var(--action-hover) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.ranking-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.ranking-link svg {
    width: 18px;
    height: 18px;
}

.ranking-link-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--action);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid var(--action);
}

.ranking-link-secondary:hover {
    color: var(--action-hover);
    border-color: var(--action-hover);
}

.ranking-link-secondary svg {
    width: 16px;
    height: 16px;
}

/**
 * Card footer that wraps one or more .ranking-link* anchors.
 * Canonical from frontend/top-list/index.html:274-280.
 */
.ranking-card-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .ranking-card-footer {
        padding: 1.25rem;
    }
}
