/* Pippin Conversion Suite — AI Companion Promo (roundup table)
   Brand palette: accent #FEBF00 / black #0a0a0a / white #ffffff */

:root {
    --pcs-ai-accent: #FEBF00;
    --pcs-ai-accent-hover: #ffcd2e;
    --pcs-ai-ink: #0a0a0a;
    --pcs-ai-paper: #ffffff;
    --pcs-ai-line: #ececec;
    --pcs-ai-muted: #555;
}

.pcs-ai-roundup {
    position: relative;
    margin: 32px 0;
    background: var(--pcs-ai-paper);
    border: 1px solid var(--pcs-ai-line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

/* Accent rail along the top edge, matching the blog-promo blocks */
.pcs-ai-roundup::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pcs-ai-accent), #ffd966, var(--pcs-ai-accent));
}

.pcs-ai-roundup__heading {
    margin: 0;
    padding: 22px 22px 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pcs-ai-ink);
}

.pcs-ai-roundup__table {
    display: flex;
    flex-direction: column;
}

.pcs-ai-roundup__row {
    display: grid;
    grid-template-columns: 28px 84px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-top: 1px solid var(--pcs-ai-line);
    transition: background-color 0.15s ease;
}
.pcs-ai-roundup__row:hover {
    background: #fffaec;
}

/* Top pick gets a soft highlight */
.pcs-ai-roundup__row--top {
    background: #fff7dd;
}
.pcs-ai-roundup__row--top:hover {
    background: #fff3cc;
}

.pcs-ai-roundup__rank {
    font-size: 15px;
    font-weight: 800;
    color: var(--pcs-ai-muted);
    text-align: center;
}
.pcs-ai-roundup__row--top .pcs-ai-roundup__rank {
    color: var(--pcs-ai-ink);
}

.pcs-ai-roundup__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 52px;
    border-radius: 10px;
    background: var(--pcs-ai-ink);
    overflow: hidden;
    text-decoration: none;
}
.pcs-ai-roundup__logo img {
    max-width: 72px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.pcs-ai-roundup__info {
    min-width: 0;
}

.pcs-ai-roundup__name {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pcs-ai-ink) !important;
    text-decoration: none !important;
}
.pcs-ai-roundup__name:hover {
    color: #7a5c00 !important;
}

.pcs-ai-roundup__copy {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--pcs-ai-muted);
}

.pcs-ai-roundup__btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--pcs-ai-accent);
    color: var(--pcs-ai-ink) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(254, 191, 0, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.pcs-ai-roundup__btn:hover {
    background: var(--pcs-ai-accent-hover);
    transform: translateY(-1px);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .pcs-ai-roundup__heading {
        font-size: 19px;
        padding: 18px 16px 12px;
    }
    .pcs-ai-roundup__row {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "logo info"
            "logo btn";
        gap: 6px 12px;
        padding: 14px 16px;
    }
    .pcs-ai-roundup__rank {
        display: none;
    }
    .pcs-ai-roundup__logo {
        grid-area: logo;
        width: 64px;
        height: 64px;
        align-self: start;
    }
    .pcs-ai-roundup__logo img {
        max-width: 54px;
        max-height: 48px;
    }
    .pcs-ai-roundup__info {
        grid-area: info;
    }
    .pcs-ai-roundup__copy {
        font-size: 13px;
    }
    .pcs-ai-roundup__btn {
        grid-area: btn;
        justify-self: start;
        padding: 8px 16px;
        font-size: 12px;
    }
}
