/* Platform landings (Views/Home/Platform): YouTube, Noon, Amazon on the home page's styles (home.css).
   Each page has its accent (.pf-youtube / .pf-noon / .pf-amazon → --pf-accent) as a detail beside the site's red:
   the hero's glow, the platform badge, the preview's active group. */

.pf-youtube { --pf-accent: #FF0000; --pf-accent-soft: rgba(255, 0, 0, .08); }
.pf-noon { --pf-accent: #E8C900; --pf-accent-soft: rgba(254, 238, 0, .16); }
.pf-amazon { --pf-accent: #FF9900; --pf-accent-soft: rgba(255, 153, 0, .12); }

/* ---------- hero ---------- */
/* the home hero's glow, with the platform's colour above the title */
.pf-hero::before {
    background:
        radial-gradient(ellipse 34% 30% at 50% 14%, var(--pf-accent-soft) 0%, transparent 72%),
        radial-gradient(ellipse 40% 38% at 50% 66%, rgba(201, 29, 19, 0.10) 0%, rgba(201, 29, 19, 0) 70%),
        radial-gradient(ellipse 65% 60% at 50% 62%, var(--ds-glow) 0%, transparent 70%);
}

.pf-eyebrow img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ---------- 01: the result preview ---------- */
.pf-result {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border-top: 3px solid var(--pf-accent);
}

.pf-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ds-line-soft);
}

.pf-result-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--pf-accent-soft);
}

    .pf-result-logo img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

.pf-result-word {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--ds-soft);
    font-weight: 700;
    color: var(--ds-ink);
}

    .pf-result-word i {
        font-size: 13px;
        color: var(--ds-muted);
    }

.pf-result-count {
    margin-inline-start: auto;
    font-size: 14px;
    color: var(--ds-muted);
}

    .pf-result-count b {
        font-size: 18px;
        color: var(--ds-red);
    }

.pf-result-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 360px;
}

.pf-group-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--ds-surface-2);
    border-inline-end: 1px solid var(--ds-line-soft);
}

    .pf-group-list button {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border: 1px solid transparent;
        border-radius: 14px;
        background: transparent;
        text-align: start;
        color: var(--ds-text);
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

        .pf-group-list button > i {
            display: grid;
            place-items: center;
            flex: none;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--ds-surface);
            border: 1px solid var(--ds-line);
            font-size: 14px;
            color: var(--ds-muted);
            transition: inherit;
        }

        .pf-group-list button span {
            display: flex;
            flex-direction: column;
            line-height: 1.5;
        }

        .pf-group-list button b {
            font-size: 15px;
            font-weight: 700;
        }

        .pf-group-list button small {
            font-size: 12.5px;
            color: var(--ds-muted);
        }

        .pf-group-list button:hover {
            background: var(--ds-surface);
            border-color: var(--ds-line);
        }

        .pf-group-list button.is-on {
            background: var(--ds-surface);
            border-color: var(--ds-tint-line);
            color: var(--ds-ink);
            box-shadow: 0 6px 16px -10px rgba(35, 38, 47, .25);
        }

            .pf-group-list button.is-on > i {
                background: var(--ds-red);
                border-color: var(--ds-red);
                color: #FFF;
            }

.pf-group-panels {
    padding: 20px 24px;
}

.pf-group-text {
    margin: 0 0 14px;
    line-height: 1.9;
}

.pf-intents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pf-words {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

    .pf-words li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border: 1px solid var(--ds-line-soft);
        border-radius: 12px;
        background: var(--ds-surface);
        transition: opacity .35s ease, transform .35s ease, border-color .2s ease;
    }

        .pf-words li:hover {
            border-color: var(--ds-tint-line);
        }

        .pf-words li > i {
            font-size: 12px;
            color: var(--ds-muted);
        }

        /* waiting to "arrive" (platform.js adds .is-wait, then removes it one by one) */
        .pf-words li.is-wait {
            opacity: 0;
            transform: translateY(6px);
        }

        .pf-words li.is-new {
            border-color: var(--pf-accent);
        }

.pf-word {
    flex: 1;
    font-weight: 600;
    color: var(--ds-ink);
}

.pf-soon-cell {
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--ds-soft);
    font-size: 12px;
    color: var(--ds-muted);
}

.pf-result-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--ds-line-soft);
    font-size: 13px;
    color: var(--ds-muted);
}

    .pf-result-foot i {
        margin-inline-end: 6px;
    }

/* Amazon: volume is coming */
.pf-soon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 980px;
    margin: 18px auto 0;
    padding: 20px 24px;
    border-style: dashed;
}

    .pf-soon p {
        margin: 6px 0 0;
        line-height: 1.9;
    }

.pf-soon-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--pf-accent-soft);
    color: var(--pf-accent);
    font-size: 18px;
}

/* ---------- 03: uses ---------- */
.pf-uses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pf-use {
    position: relative;
    transition: transform .25s ease, border-color .25s ease;
}

    .pf-use:hover {
        transform: translateY(-4px);
        border-color: var(--ds-tint-line);
    }

    .pf-use p {
        margin: 8px 0 0;
        line-height: 1.9;
    }

.pf-use-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 20px;
}

.pf-use-n {
    position: absolute;
    top: 20px;
    inset-inline-end: 22px;
    font-size: 13px;
    color: var(--ds-muted);
}

/* ---------- the other platforms ---------- */
.pf-others {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pf-other {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--ds-text);
    transition: transform .25s ease, border-color .25s ease;
}

    .pf-other img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .pf-other span {
        display: flex;
        flex: 1;
        flex-direction: column;
        line-height: 1.6;
    }

    .pf-other b {
        font-size: 16px;
        color: var(--ds-ink);
    }

    .pf-other small {
        font-size: 13px;
        color: var(--ds-muted);
    }

    .pf-other > i {
        color: var(--ds-muted);
        transition: transform .25s ease, color .25s ease;
    }

    .pf-other:hover {
        transform: translateY(-3px);
        border-color: var(--ds-tint-line);
    }

        .pf-other:hover > i {
            color: var(--ds-red);
            transform: translateX(var(--pf-nudge, -4px));
        }

[dir="ltr"] .pf-other { --pf-nudge: 4px; }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
    .pf-uses,
    .pf-others {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pf-result-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    /* the groups become a scrolling row of chips above the words */
    .pf-group-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--ds-line-soft);
        scrollbar-width: none;
    }

        .pf-group-list button {
            flex: none;
            padding: 8px 10px;
        }

            .pf-group-list button small {
                display: none;
            }

    .pf-group-panels {
        padding: 16px;
    }

    .pf-result-count {
        margin-inline-start: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-words li,
    .pf-use,
    .pf-other,
    .pf-other > i {
        transition: none;
    }

    .pf-use:hover,
    .pf-other:hover,
    .pf-other:hover > i {
        transform: none;
    }
}
