/* Acknowledgements Page Styles
   30 Sep 2026: the creators are cards in the Ship Codex style (css/ships.css
   .ship-card) - picture across the top at 16:9, the name in the highlight
   colour, the text underneath and the links pinned to the bottom, so every
   card in a row lines up. Artwork of any shape fits: the whole picture is
   shown over a blurred copy of itself instead of being cropped.
   Cards come from the acknowledgements table (scripts/site_pages_lib.php). */

.ack-wrapper {
    max-width: 1300px;
    margin: 1.5rem auto 2rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.ack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 360px));
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
}

.ack-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    background: var(--background-mid);
    border: 1px solid var(--border-colour);
    border-radius: var(--radius1);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ack-card:hover,
.ack-card:focus-within {
    transform: translateY(-3px);
    border-color: var(--highlight-colour);
    box-shadow: 0 0 12px var(--glow-colour);
}

.ack-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gradient-main);
    border-bottom: 1px solid var(--border-colour);
}

.ack-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ack-card-img .ack-card-blur {
    object-fit: cover;
    filter: blur(18px) brightness(0.55);
    transform: scale(1.15);
}

.ack-card-img .ack-card-pic {
    object-fit: contain;
}

.ack-card-img.noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    font-size: 0.8rem;
}

.ack-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem 1rem;
}

.ack-card h2.ack-card-name {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    color: var(--highlight-colour);
    overflow-wrap: anywhere;
}

.ack-card p.ack-card-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: left;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.ack-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* The site's standard 40px button */
.ack-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: var(--control-h);
    padding: 0 1rem;
    box-sizing: border-box;
    border-radius: var(--radius1);
    border: 0.125rem solid var(--highlight-colour);
    background: var(--gradient-main);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.ack-link .fa {
    font-size: 0.8em;
    opacity: 0.8;
}

.ack-link:hover,
.ack-link:focus-visible {
    box-shadow: 0 0 10px var(--glow-colour);
    transform: scale(1.03);
}

.ack-empty {
    text-align: center;
}

/* SuperAdmin tools */
.ack-card-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 1rem 0.8rem;
    border-top: 1px dashed var(--border-colour);
}

.ack-add {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.ack-add p {
    max-width: 40rem;
    text-align: center;
}

.ack-card.is-new {
    border-color: var(--highlight-colour);
    box-shadow: 0 0 16px var(--glow-colour);
}

@media screen and (max-width: 560px) {
    .ack-wrapper {
        padding: 0 1rem;
    }
}
