/* صفحه ابزارها؛ روی ph.css و سربرگ listing.css ساخته شده. پیشوند tl- */

.tl-accent {
    color: var(--ph-teal-ink);
}

.tl-lead {
    max-width: 60ch;
    margin: 12px 0 0;
    color: var(--ph-muted);
    font-size: 15.5px;
    line-height: 2;
}

.tl-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 12px;
    border-radius: 99px;
    background: var(--ph-teal-soft);
    color: var(--ph-teal-ink);
    font-size: 12px;
    font-weight: bold;
}

.tl-tag--gold {
    background: rgba(201, 161, 74, .18);
    color: var(--ph-gold);
}

/* ---------- ابزار اصلی ---------- */
.tl-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.tl-featured--single {
    grid-template-columns: 1fr;
}

.tl-ai h2 {
    font-size: 22px;
    font-weight: bold;
}

.tl-ai .ph-tile-pad p {
    max-width: 60ch;
}

.tl-ai {
    grid-row: auto;
}

.tl-studio {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px;
    border-radius: var(--ph-r-lg);
    background: radial-gradient(380px 220px at 0% 100%, rgba(201, 161, 74, .28), transparent 70%), var(--ph-ink);
    color: #e9eef7;
    overflow: hidden;
}

.tl-studio-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(201, 161, 74, .18);
    color: var(--ph-gold);
}

.tl-studio .tl-tag {
    align-self: flex-start;
}

.tl-studio h2 {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.tl-studio p {
    margin: 0;
    color: #b7c2d6;
    font-size: 14px;
    line-height: 2;
}

.tl-studio ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
}

    .tl-studio ul li {
        color: #dfe6f2;
        font-size: 13.5px;
        line-height: 1.8;
    }

    .tl-studio ul li::before {
        content: "✓";
        margin-left: 8px;
        color: var(--ph-gold);
        font-weight: bold;
    }

.tl-studio-go {
    align-self: flex-start;
    margin-top: auto;
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--ph-gold);
    color: #1c1606;
    font-size: 14px;
    font-weight: bold;
}

.tl-studio:hover .tl-studio-go {
    filter: brightness(1.05);
}

/* ---------- شبکه ابزارها ---------- */
.tl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tl-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--ph-r-lg);
    background: var(--ph-card);
    border: 1px solid var(--ph-line);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

a.tl-card:hover {
    border-color: var(--ph-teal);
    transform: translateY(-3px);
    box-shadow: var(--ph-shadow);
}

.tl-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ecf2;
}

    .tl-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s;
    }

a.tl-card:hover .tl-card-media img {
    transform: scale(1.05);
}

.tl-card-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ph-teal-soft), #f5f7fb);
    color: var(--ph-teal-ink);
}

    .tl-card-ph .ph-ico {
        width: 40px;
        height: 40px;
        stroke-width: 1.4;
    }

.tl-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .92);
    font-size: 11.5px;
    font-weight: bold;
}

.tl-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

    .tl-card-body h3 {
        font-size: 16px;
        font-weight: bold;
    }

    .tl-card-body p {
        margin: 0;
        color: var(--ph-muted);
        font-size: 13px;
        line-height: 1.9;
    }

.tl-card-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--ph-teal-ink);
    font-size: 13.5px;
    font-weight: bold;
}

    .tl-card-go .ph-ico {
        width: 16px;
        height: 16px;
        transition: transform .15s;
    }

a.tl-card:hover .tl-card-go .ph-ico {
    transform: translateX(-3px);
}

.tl-card--soon {
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 18px;
    border-style: dashed;
    background: transparent;
    text-align: center;
}

    .tl-card--soon h3 {
        font-size: 16px;
        font-weight: bold;
    }

    .tl-card--soon p {
        margin: 0;
        color: var(--ph-muted);
        font-size: 13px;
        line-height: 1.9;
    }

.tl-soon-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--ph-teal-soft);
    color: var(--ph-teal-ink);
}

.tl-soon-link {
    margin-top: 6px;
    color: var(--ph-teal-ink) !important;
    font-size: 13px;
    font-weight: bold;
}

/* ---------- روش کار + اپ ---------- */
.tl-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

.tl-steps {
    padding: 26px 28px;
    border-radius: var(--ph-r-lg);
    background: var(--ph-card);
    border: 1px solid var(--ph-line);
}

    .tl-steps h2 {
        margin-bottom: 16px;
        font-size: 19px;
        font-weight: bold;
    }

    .tl-steps ol {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: tl-step;
    }

    .tl-steps li {
        display: flex;
        flex-direction: column;
        gap: 4px;
        counter-increment: tl-step;
    }

        .tl-steps li::before {
            content: counter(tl-step, persian);
            display: grid;
            place-items: center;
            width: 38px;
            height: 38px;
            margin-bottom: 6px;
            border-radius: 12px;
            background: var(--ph-teal-soft);
            color: var(--ph-teal-ink);
            font-size: 16px;
            font-weight: bold;
        }

    .tl-steps b {
        font-size: 14.5px;
    }

    .tl-steps span {
        color: var(--ph-muted);
        font-size: 13px;
        line-height: 1.9;
    }

.tl-app {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: var(--ph-r-lg);
    background: linear-gradient(160deg, #eef9f2, #fff 65%);
    border: 1px solid #cfe9da;
    transition: border-color .15s;
}

    .tl-app:hover {
        border-color: #34b26a;
    }

    .tl-app b {
        font-size: 17px;
    }

    .tl-app > span:not(.tl-app-ico):not(.tl-app-go) {
        color: var(--ph-muted);
        font-size: 13.5px;
        line-height: 1.9;
    }

.tl-app-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: #d9f1e3;
    color: #23804a;
}

.tl-app-go {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #34b26a, #23804a);
    color: #fff;
    font-size: 13.5px;
    font-weight: bold;
}

/* ---------- تبلت ---------- */
@media (max-width: 1080px) {
    .tl-featured,
    .tl-bottom {
        grid-template-columns: 1fr;
    }

    .tl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- موبایل ---------- */
@media (max-width: 700px) {
    .tl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tl-card-body {
        padding: 12px;
    }

        .tl-card-body h3 {
            font-size: 14px;
        }

        .tl-card-body p {
            display: none;
        }

    .tl-card--soon {
        grid-column: 1 / -1;
    }

    .tl-steps ol {
        grid-template-columns: 1fr;
    }

    .tl-studio,
    .tl-steps,
    .tl-app {
        padding: 20px 18px;
    }

    .tl-lead {
        font-size: 14px;
    }
}

.tl-card-badge--hot {
    background: var(--ph-teal);
    color: #fff;
}

.tl-card-badge--new {
    background: var(--ph-gold);
    color: #1c1606;
}

.tl-card-ph--gold {
    background: radial-gradient(240px 160px at 20% 100%, rgba(201, 161, 74, .35), transparent 70%), var(--ph-ink);
    color: var(--ph-gold);
}

/* کارت ساخت ویدیو */
.tl-card-ph--video {
    background: radial-gradient(260px 170px at 80% 0%, rgba(79, 70, 229, .45), transparent 70%), radial-gradient(240px 160px at 10% 100%, rgba(0, 172, 148, .4), transparent 70%), #0f172b;
    color: #fff;
}
