/*
 * The dashboard's quick links.
 *
 * A card into each area the admins work in daily, laid out as a grid that
 * fills whatever width the page has. Each card is drawn like Filament's own
 * sections, white with the same hairline ring, so the page reads as part of
 * the panel rather than a landing page pasted onto it.
 */
.fi-quick-links {
    display: grid;
    gap: calc(var(--spacing) * 4);
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.fi-quick-link {
    align-items: flex-start;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    display: flex;
    gap: calc(var(--spacing) * 4);
    outline: 1px solid color-mix(in oklab, var(--gray-950) 5%, transparent);
    outline-offset: -1px;
    padding: calc(var(--spacing) * 5);
    transition: box-shadow 150ms ease-out, outline-color 150ms ease-out, translate 150ms ease-out;
}

/*
 * A card answers the pointer so it reads as a link before it is clicked: the
 * hairline takes the navy, the shadow deepens and the card lifts a pixel.
 * Filament's stylesheet defines no shadow variables, so the shadows are
 * written out here rather than borrowed.
 */
.fi-quick-link:hover,
.fi-quick-link:focus-visible {
    box-shadow:
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
    outline-color: var(--primary-600);
    translate: 0 -1px;
}

@media (prefers-reduced-motion: reduce) {
    .fi-quick-link:hover,
    .fi-quick-link:focus-visible {
        translate: none;
    }
}

.dark .fi-quick-link {
    background-color: var(--gray-900);
    outline-color: color-mix(in oklab, var(--color-white) 10%, transparent);
}

/* The navy all but vanishes against a dark card, so the hairline brightens. */
.dark .fi-quick-link:hover,
.dark .fi-quick-link:focus-visible {
    outline-color: color-mix(in oklab, var(--color-white) 35%, transparent);
}

/*
 * The icon sits in a solid square rather than floating loose, which is what
 * keeps six cards of differing text lengths reading as one set. The square is
 * the navy of the Temple wordmark and the icon is gold, the two brand colours,
 * and both hold in dark mode so the cards read the same in either.
 */
.fi-quick-link-icon-ctn {
    align-items: center;
    background-color: var(--primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    flex: none;
    height: calc(var(--spacing) * 10);
    justify-content: center;
    width: calc(var(--spacing) * 10);
}

/*
 * On a dark card the navy square all but disappears, so it gets a faint ring
 * to hold its edge.
 */
.dark .fi-quick-link-icon-ctn {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-white) 10%, transparent);
}

.fi-quick-link-icon {
    color: var(--temple-gold);
    height: calc(var(--spacing) * 5);
    width: calc(var(--spacing) * 5);
}

.fi-quick-link-text {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1);
}

.fi-quick-link-label {
    color: var(--gray-950);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.dark .fi-quick-link-label {
    color: var(--color-white);
}

.fi-quick-link-description {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.dark .fi-quick-link-description {
    color: var(--gray-400);
}
