/* =========================================================================
   WORKSHOP  —  aimatin.com
   Only what prompt.css / persian-bootstrap-shell.css don't already provide:
   the sample-teaser video grid, the price block and the workshop cards.
   Tokens are inherited (--primary-blue #066ac9, --radius-*, Vazirmatn).
   Self-hosted, no CDN. Cache-busting: loaded with ?v=N.
   ========================================================================= */

/* ---------------------------------------------------------------- videos */
.wk-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin: 1.6rem 0 0.6rem;
    padding: 0;
    list-style: none;
}

.wk-video { margin: 0; }

/* The whole card is one big tap target that opens the full-screen player. */
.wk-video .wk-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(6, 106, 201, .10);
    border-radius: var(--radius-md, 20px);
    overflow: hidden;
    background: #0e1116;
    box-shadow: 0 14px 34px -20px rgba(16, 22, 32, .55);
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.wk-video .wk-open:hover,
.wk-video .wk-open:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(6, 106, 201, .4);
    box-shadow: 0 22px 44px -22px rgba(6, 106, 201, .55);
}

.wk-thumb { position: relative; display: block; }

/* Reserve the box before the poster paints — zero layout shift. */
.wk-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #0e1116;
}

.wk-video.is-wide { grid-column: span 2; }
.wk-video.is-wide .wk-thumb img { aspect-ratio: 16 / 9; }

.wk-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 11, 16, .55) 0%, rgba(8, 11, 16, 0) 45%);
    pointer-events: none;
}

.wk-play {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .93);
    color: #0e1116;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.wk-play svg { width: 19px; height: 19px; margin-inline-start: 3px; }

.wk-video .wk-open:hover .wk-play { background: #fff; }

.wk-video .wk-cap {
    display: block;
    padding: 10px 10px 12px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #d7dde6;
    line-height: 1.7;
}

.wk-videos-note {
    margin-top: 0.9rem;
    font-size: 0.87rem;
    color: var(--text-secondary, #565a60);
    text-align: center;
}

/* No-JS fallback: the plain players, stacked and readable. */
.wk-videos-ns { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wk-videos-ns video { width: 100%; height: auto; border-radius: 16px; background: #0e1116; }

/* ----------------------------------------------------------------- price */
.wk-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 0.2rem 0 1.1rem;
}

.wk-price .wk-amount {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.wk-price .wk-unit { font-size: 1rem; font-weight: 700; opacity: .85; color: #fff; }
.wk-price .wk-once { font-size: 0.9rem; opacity: .8; color: #fff; }

/* --------------------------------------------------------- workshop card */
.wk-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

.wk-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: var(--radius-lg, 28px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wk-card:hover,
.wk-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(6, 106, 201, .35);
    box-shadow: 0 22px 48px -26px rgba(6, 106, 201, .55);
}

.wk-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.wk-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.wk-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(6, 106, 201, .09);
    color: var(--primary-blue, #066ac9);
}

.wk-badge.is-soon { background: rgba(138, 143, 150, .14); color: #6b7280; }

.wk-card h3 { font-size: 1.12rem; font-weight: 800; margin: 0; line-height: 1.7; color: var(--text-main, #1a1d21); }
.wk-card p { font-size: 0.92rem; color: var(--text-secondary, #565a60); margin: 0; line-height: 1.9; }

.wk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary, #565a60);
}

.wk-meta strong { color: var(--text-main, #1a1d21); font-variant-numeric: tabular-nums; }

.wk-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wk-foot .wk-now { font-size: 1.06rem; font-weight: 900; color: var(--text-main, #1a1d21); font-variant-numeric: tabular-nums; }
.wk-foot .wk-now small { font-size: 0.8rem; font-weight: 700; margin-inline-start: 4px; color: var(--text-secondary, #565a60); }
.wk-foot .wk-go { font-size: 0.9rem; font-weight: 800; color: var(--primary-blue, #066ac9); }

/* -------------------------------------------------------------- delivery */
.wk-steps,
.article-content .wk-steps { counter-reset: wk; list-style: none; padding: 0; margin: 1.4rem 0 0; }

.wk-steps li,
.article-content .wk-steps li {
    position: relative;
    padding-inline-start: 46px;
    padding-inline-end: 0;
    margin-bottom: 20px;
    line-height: 2;
}

/* Persian numerals, unlike prompt.css's Latin `counter(item)` default. */
.article-content .wk-steps li::before,
.wk-steps li::before {
    counter-increment: wk;
    content: counter(wk, persian);
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #3aa0ff 0%, #066ac9 100%);
}

@media (max-width: 620px) {
    .wk-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .wk-video.is-wide { grid-column: span 1; }
    .wk-video.is-wide .wk-thumb img { aspect-ratio: 9 / 16; }
    .wk-price .wk-amount { font-size: 1.65rem; }
    .wk-compare li { gap: 11px; padding: 12px 13px; }
    .wk-compare .wk-x { min-width: 50px; font-size: 0.98rem; padding: 7px 8px; }
}

/* ------------------------------------------------------------------ hero */
.wk-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    align-items: stretch;
    margin: 0 0 2rem;
}

.wk-hero-media {
    position: relative;
    border-radius: var(--radius-lg, 28px);
    overflow: hidden;
    background: #0e1116;
    box-shadow: 0 26px 60px -32px rgba(16, 22, 32, .7);
}

.wk-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

.wk-hero-tag {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(8, 11, 16, .72);
    color: #fff;
    font-size: 0.79rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.wk-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 26px 24px;
    border-radius: var(--radius-lg, 28px);
    background: #fff;
    border: 1px solid #e6eaf0;
    box-shadow: 0 22px 50px -34px rgba(6, 106, 201, .5);
}

.wk-hero-panel .wk-price { margin: 0; justify-content: flex-start; }
.wk-hero-panel .wk-amount { color: var(--text-main, #1a1d21); font-size: 2.1rem; }
.wk-hero-panel .wk-unit,
.wk-hero-panel .wk-once { color: var(--text-secondary, #565a60); }
.wk-hero-panel .btn { width: 100%; }

.wk-chips { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }

.wk-chips li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-secondary, #565a60);
}

.wk-chips i { color: var(--primary-blue, #066ac9); margin-top: 6px; font-size: 0.85rem; }
.wk-chips strong { color: var(--text-main, #1a1d21); font-weight: 800; }

.wk-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted, #8a8f96);
    text-align: center;
}

/* ------------------------------------------------ price comparison rows */
.wk-compare { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }

.wk-compare li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm, 14px);
    background: #f2f5f9;
    border: 1px solid #e6eaf0;
}

.wk-compare .wk-x {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #dfe5ed;
    color: #5b6472;
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wk-compare .wk-x-t {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-secondary, #565a60);
}

.wk-compare .wk-x-t strong { font-size: 0.98rem; font-weight: 800; color: var(--text-main, #1a1d21); }

.wk-compare li.is-ours {
    background: rgba(6, 106, 201, .07);
    border-color: rgba(6, 106, 201, .28);
}

.wk-compare li.is-ours .wk-x {
    background: linear-gradient(135deg, #3aa0ff 0%, #066ac9 100%);
    color: #fff;
}

.wk-compare li.is-ours .wk-x-t strong { color: var(--primary-blue, #066ac9); }

.wk-bars-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted, #8a8f96); }

@media (max-width: 760px) {
    .wk-hero { grid-template-columns: 1fr; gap: 18px; }
    .wk-hero-panel { padding: 22px 18px; }
    .wk-hero-panel .wk-amount { font-size: 1.8rem; }
}

/* prompt.css paints a blue dot before every .article-content li; these lists are
   grids and cards, not prose bullets, so switch it off for them. */
.article-content .wk-videos li::before,
.article-content .wk-videos-ns li::before,
.article-content .wk-list li::before,
.article-content .wk-compare li::before,
.article-content .wk-chips li::before {
    content: none;
}

.article-content .wk-videos li,
.article-content .wk-videos-ns li,
.article-content .wk-list li,
.article-content .wk-compare li,
.article-content .wk-chips li {
    padding-inline-start: 0;
    padding-inline-end: 0;
    margin-bottom: 0;
}

.article-content .wk-videos,
.article-content .wk-videos-ns,
.article-content .wk-list,
.article-content .wk-compare,
.article-content .wk-chips {
    padding-inline-start: 0;
    padding-inline-end: 0;
    list-style: none;
}

/* Multiplier chip: "۵۰×" is a number plus a sign, which RTL splits inconsistently
   (one row rendered "۱ ×"). Isolate it as one LTR run so all rows match. */
.wk-compare .wk-x {
    direction: ltr;
    unicode-bidi: isolate;
}
