/**
 * amenai shared components (refresh 2026).
 *
 * One card treatment and one logo treatment for the whole site, replacing the
 * ad-hoc per-page variants (glassmorphism news cards, plain product cards,
 * hardcoded #1F2859 backgrounds, third-party logos on clashing backgrounds).
 *
 * Brand tokens only: ink #0B1230, navy #1F2859, slate #575E83, ice #E1EFF2.
 */

/* ---------------------------------------------------------------- surface */
/* Replaces inline style="background-color:#1F2859". */
.amenai-surface {
    background-color: #1F2859;
}

/* ------------------------------------------------------------------- card */
.amenai-card {
    background: #1F2859;
    border: 1px solid rgba(225, 239, 242, .16);
    border-radius: 14px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.amenai-card--quiet {
    background: rgba(87, 94, 131, .18);
}

a.amenai-card:hover,
.amenai-card--hover:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 239, 242, .45);
    box-shadow: 0 12px 34px rgba(11, 18, 48, .5);
}

/* ------------------------------------------------------------- logo chip */
/*
 * Third-party logos ship with their own backgrounds (white, cream, blue), which
 * turns any dark page into a patchwork. Every third-party mark sits in this
 * identical chip so the row reads as one system.
 */
.amenai-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 18px;
    background: #fbfdff;
    border-radius: 10px;
    flex: 0 0 auto;
}

.amenai-logo-chip img {
    max-height: 30px;
    max-width: 118px;
    width: auto;
    object-fit: contain;
    display: block;
}

.amenai-logo-chip--sm { height: 44px; padding: 0 12px; }
.amenai-logo-chip--sm img { max-height: 22px; max-width: 88px; }

.amenai-logo-chip--xs { height: 34px; padding: 0 9px; border-radius: 7px; }
.amenai-logo-chip--xs img { max-height: 18px; max-width: 66px; }

/* ----------------------------------------------------------- trust marquee */
/*
 * Scrolling logo band. Logos keep their natural presentation here (no chip):
 * chipping them shrinks wordmarks like TOMPAERO into unreadable icons.
 * Track holds the logo set twice; translating -50% loops seamlessly.
 */
.amenai-trust-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.amenai-trust-marquee__track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: amenai-trust-scroll 45s linear infinite;
}

.amenai-trust-marquee:hover .amenai-trust-marquee__track { animation-play-state: paused; }

@keyframes amenai-trust-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.amenai-trust-marquee__logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .amenai-trust-marquee__track { gap: 4rem; }
    .amenai-trust-marquee__logo { height: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .amenai-trust-marquee__track { animation: none; }
}

/* ----------------------------------------------------------- partner strip */
/* Filter row on the news archive. The logo sits in the standard chip so every
   partner mark reads identically regardless of its own background. */
.amenai-partner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.amenai-partner-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    padding: .4rem .9rem .4rem .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(87, 94, 131, .4);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.amenai-partner-pill:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(225, 239, 242, .55);
}

.amenai-partner-pill__name {
    font-size: .75rem;
    font-weight: 300;
    color: #8F94AC;
}

.amenai-partner-pill:hover .amenai-partner-pill__name { color: #E1EFF2; }

/* ------------------------------------------------------------- pagination */
.page-numbers {
    list-style: none;
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-numbers li { list-style: none; }

.page-numbers a,
.page-numbers span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .75rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 400;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.page-numbers a {
    color: #8F94AC;
    border: 1px solid rgba(87, 94, 131, .4);
    background: rgba(87, 94, 131, .15);
}

.page-numbers a:hover { background: #E1EFF2; color: #1F2859; border-color: #E1EFF2; }
.page-numbers span.current { background: #E1EFF2; color: #1F2859; font-weight: 600; }

/* -------------------------------------------------------------- news card */
/* Moved out of the inline <style> blocks in front-page.php / index.php. */
.amenai-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1F2859;
    border: 1px solid rgba(225, 239, 242, .16);
    border-radius: 14px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.amenai-news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 239, 242, .45);
    box-shadow: 0 12px 34px rgba(11, 18, 48, .5);
}

/* Uniform thumbnail frame: photos crop, logos sit centred in a chip on a
   consistent backdrop, so the grid stops looking like a patchwork. */
.amenai-news-card__thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #243056, #0F1738);
    border-bottom: 1px solid rgba(225, 239, 242, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.amenai-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.amenai-news-card:hover .amenai-news-card__thumb img { transform: scale(1.04); }

/* When the "image" is really a logo, don't crop it: chip it. */
.amenai-news-card__thumb--logo img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.amenai-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(225, 239, 242, .12);
    border: 1px solid rgba(225, 239, 242, .3);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .75rem;
    font-weight: 500;
    color: #E1EFF2;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

.amenai-news-card__link:hover { background: #E1EFF2; color: #1F2859; }
.amenai-news-card__link svg { transition: transform .25s ease; }
.amenai-news-card__link:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    .amenai-card,
    .amenai-news-card,
    .amenai-news-card__thumb img,
    .amenai-news-card__link,
    .amenai-news-card__link svg { transition: none; }
    a.amenai-card:hover,
    .amenai-card--hover:hover,
    .amenai-news-card:hover { transform: none; }
    .amenai-news-card:hover .amenai-news-card__thumb img { transform: none; }
}
