/* صفحات لیست پرامپت (explore و category)؛ روی ph.css ساخته شده. پیشوند pl- */

/* ---------- سربرگ ---------- */
.pl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    padding: 28px 32px;
    border-radius: var(--ph-r-lg);
    background: radial-gradient(520px 240px at 0% 0%, rgba(0, 172, 148, .12), transparent 70%), var(--ph-card);
    border: 1px solid var(--ph-line);
}

.pl-hero h1 {
    margin-top: 14px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.45;
}

.pl-desc {
    max-width: 75ch;
    margin-top: 12px;
    color: #3b475c;
    font-size: 14.5px;
    line-height: 2.05;
}

    .pl-desc p {
        margin: 0 0 8px;
    }

    .pl-desc h2,
    .pl-desc h3 {
        margin: 12px 0 6px;
        font-size: 16px;
    }

    .pl-desc a {
        color: var(--ph-teal-ink);
        font-weight: bold;
    }

    .pl-desc.is-clamped {
        max-height: calc(2.05em * 3);
        overflow: hidden;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
        mask-image: linear-gradient(180deg, #000 55%, transparent);
    }

.pl-desc-more {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ph-teal-ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: bold;
    cursor: pointer;
}

/* سه عکس روی هم */
.pl-hero-art {
    position: relative;
    width: 300px;
    height: 220px;
}

    .pl-hero-art img {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 132px;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border-radius: 16px;
        border: 4px solid #fff;
        background: #e3e7ee;
        box-shadow: 0 18px 36px -16px rgba(15, 23, 43, .45);
    }

        .pl-hero-art img:nth-child(1) { transform: translateX(-50%) translateY(-14px); z-index: 2; width: 146px; }
        .pl-hero-art img:nth-child(2) { transform: translateX(-118%) rotate(-8deg); }
        .pl-hero-art img:nth-child(3) { transform: translateX(18%) rotate(8deg); }

/* ---------- جابه‌جایی بین دسته‌ها ---------- */
.pl-switch {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .pl-switch::-webkit-scrollbar {
        display: none;
    }

    .pl-switch .ph-chip {
        flex: none;
        padding: 6px 15px;
        font-size: 14px;
    }

        .pl-switch .ph-chip img {
            width: 18px;
            height: 18px;
            object-fit: contain;
        }

        .pl-switch .ph-chip.is-active {
            background: var(--ph-ink);
            border-color: var(--ph-ink);
            color: #fff;
        }

            .pl-switch .ph-chip.is-active img {
                filter: brightness(0) invert(1);
            }

/* ---------- شبکه پرامپت‌ها ---------- */
.pl-list {
    padding-top: 36px;
    scroll-margin-top: 20px;
}

.pl-page-note {
    font-size: 13px;
    color: var(--ph-muted);
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 16px;
}

.pl-gender {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .92);
    color: var(--ph-ink);
    font-size: 11.5px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(15, 23, 43, .15);
}

    .pl-gender img {
        width: 14px;
        height: 14px;
        object-fit: contain;
    }

.pl-empty {
    padding: 40px 20px;
    border-radius: var(--ph-r-lg);
    background: var(--ph-card);
    border: 1px dashed var(--ph-line);
    color: var(--ph-muted);
    text-align: center;
}

/* ---------- صفحه‌بندی ---------- */
.pl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

    .pl-pager ul {
        display: flex;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .pl-pager ul a,
        .pl-pager ul span {
            display: grid;
            place-items: center;
            min-width: 42px;
            height: 42px;
            padding: 0 6px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
        }

        .pl-pager ul a {
            background: var(--ph-card);
            border: 1px solid var(--ph-line);
            color: var(--ph-ink-2);
        }

            .pl-pager ul a:hover {
                border-color: var(--ph-teal);
                color: var(--ph-teal-ink);
            }

        .pl-pager ul span {
            color: var(--ph-muted);
        }

            .pl-pager ul span.is-current {
                background: var(--ph-ink);
                color: #fff;
            }

.pl-pager-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--ph-card);
    border: 1px solid var(--ph-line);
    font-size: 13.5px;
    font-weight: 500;
}

    .pl-pager-step:hover {
        border-color: var(--ph-teal);
        color: var(--ph-teal-ink);
    }

    .pl-pager-step svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ---------- هوش مصنوعی ---------- */
a.pl-ai {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 0;
    padding: 18px 22px;
    border-radius: var(--ph-r-lg);
    background: radial-gradient(420px 160px at 100% 0%, rgba(0, 172, 148, .3), transparent 70%), var(--ph-ink);
    border: 0;
    color: #fff;
    text-align: right;
}

.pl-ai-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 172, 148, .2);
    color: #6ee7d3;
}

.pl-ai-text {
    flex: 1;
    min-width: 0;
}

    .pl-ai-text b {
        display: block;
        font-size: 16px;
        color: #fff;
    }

    .pl-ai-text small {
        display: block;
        margin-top: 2px;
        font-size: 13.5px;
        color: #b7c2d6;
        line-height: 1.8;
    }

.pl-ai-go {
    flex: none;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--ph-teal);
    font-size: 14px;
    font-weight: bold;
}

/* ---------- تبلت ---------- */
@media (max-width: 1080px) {
    .pl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pl-hero-art {
        width: 230px;
        height: 180px;
    }

        .pl-hero-art img {
            width: 104px;
        }

            .pl-hero-art img:nth-child(1) {
                width: 116px;
            }
}

/* ---------- موبایل ---------- */
@media (max-width: 700px) {
    .pl-hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 18px;
    }

    .pl-hero-art {
        display: none;
    }

    .pl-hero h1 {
        font-size: 23px;
    }

    .pl-desc {
        font-size: 13.5px;
    }

    .pl-list {
        padding-top: 26px;
    }

    .pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

        .pl-grid .ph-card-body {
            padding: 10px;
            gap: 6px;
        }

            .pl-grid .ph-card-body h3 {
                font-size: 12.5px;
            }

        .pl-grid .ph-gen-btn {
            padding: 3px 9px;
            font-size: 11.5px;
        }

    .pl-gender {
        top: 8px;
        right: 8px;
        font-size: 10.5px;
    }

    .pl-pager-step {
        padding: 0 10px;
        font-size: 0;
    }

        .pl-pager-step svg {
            width: 18px;
            height: 18px;
        }

    .pl-pager ul a,
    .pl-pager ul span {
        min-width: 38px;
        height: 38px;
    }

    a.pl-ai {
        flex-wrap: wrap;
        padding: 16px;
    }

    .pl-ai-go {
        width: 100%;
        text-align: center;
    }
}

/* صفحه پرامپت‌های ویدیویی: توضیح تمام‌عرض و دو ردیف فیلتر با فاصله */
.vp-hero .pl-desc {
    max-width: none;
}

.vp-filters {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

    .vp-filters .pl-switch {
        margin-top: 0;
        align-items: center;
    }

.vp-filter-label {
    flex: none;
    width: 52px;
    font-size: 13px;
    color: var(--ph-muted, #5a6880);
    white-space: nowrap;
}
