/* ============================================================================
   Home — companion catalog (re-skin to the aistarlets prototype)
   Two-column grid of companion cards, a signup/CTA card, compact footer.
   Tokens come from aistarlets.css.
   ============================================================================ */

.home { width: 100%; }

/* intro pill ------------------------------------------------------------- */
.home-pill-row { padding: 16px 18px 8px; }
.home-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--ast-line-strong);
    background: var(--ast-surface-soft);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    color: #efeaf4;
}

/* grid ------------------------------------------------------------------- */
.girl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 18px;
}
@media (min-width: 560px) { .girl-grid { grid-template-columns: repeat(3, 1fr); } }

.girl-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--ast-r-card);
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(158deg,
        oklch(0.58 0.135 var(--h, 320)) 0%,
        oklch(0.40 0.115 calc(var(--h, 320) + 26)) 52%,
        oklch(0.24 0.075 calc(var(--h, 320) + 26)) 100%);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .7);
    transition: transform .18s ease;
    animation: ast-card-in .5s ease both;
}
.girl-card:active { transform: scale(.975); }
.girl-card:focus-visible { outline: 2px solid var(--ast-accent-a); outline-offset: 2px; }

.girl-card-media { position: absolute; inset: 0; }
.girl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* placeholder treatment (no photo) — floaty initial + tiny label */
.girl-card-initial {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 4%);
    font-weight: 800;
    font-size: 120px;
    line-height: 1;
    color: rgba(255, 255, 255, .14);
    animation: ast-floaty 9s ease-in-out infinite;
    pointer-events: none;
}
.girl-card-tag {
    position: absolute;
    top: 9px;
    left: 11px;
    font-weight: 700;
    font-size: 8.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    pointer-events: none;
}

.girl-card-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11, 9, 16, 0) 42%,
        rgba(11, 9, 16, .28) 62%,
        rgba(11, 9, 16, .86) 100%);
    pointer-events: none;
}
.girl-card-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 11px;
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.girl-card-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.girl-card-age { font-size: 12px; font-weight: 600; color: var(--ast-accent-a); flex: none; }

/* infinite-scroll loader + sentinel -------------------------------------- */
.grid-sentinel { height: 1px; }
.grid-loader { display: flex; justify-content: center; gap: 8px; padding: 26px 0; }
.grid-loader[hidden] { display: none; }
.grid-loader span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--ast-accent-a);
    animation: dotPulse 1.1s ease-in-out infinite;
}
.grid-loader span:nth-child(2) { animation-delay: .18s; }
.grid-loader span:nth-child(3) { animation-delay: .36s; }

/* empty state ------------------------------------------------------------ */
.roster-empty { text-align: center; padding: 60px 24px; }
.roster-empty-title { font-weight: 800; font-size: 20px; color: var(--ast-text); margin: 0 0 8px; }
.roster-empty-sub { color: var(--ast-muted); margin: 0 0 20px; font-size: 14px; }

/* signup / CTA card ------------------------------------------------------ */
.home-cta-wrap { padding: 22px 18px 8px; }
.home-cta {
    position: relative;
    border-radius: var(--ast-r-lg);
    padding: 26px 22px;
    overflow: hidden;
    background: linear-gradient(155deg,
        color-mix(in oklab, var(--ast-accent-glow) 34%, var(--ast-surface)),
        var(--ast-surface));
    border: 1px solid var(--ast-line);
}
.home-cta .ast-eyebrow { margin-bottom: 12px; }
.home-cta-title {
    font-weight: 800;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: #fff;
}

@keyframes dotPulse {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* ---------- Desktop (rail layout) --------------------------------------- */
@media (min-width: 1024px) {
    /* the .ast-main wrapper supplies the side padding — align sections to it */
    .home-pill-row { padding: 6px 0 12px; }
    .girl-grid { padding: 0; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .home-cta-wrap { padding: 26px 0 8px; }
    .home-cta { padding: 34px 32px; }
    .home-cta-title { font-size: 30px; }
    .roster-empty { padding: 80px 24px; }
}
@media (min-width: 1360px) {
    .girl-grid { grid-template-columns: repeat(5, 1fr); }
}
