/* =====================================================================
 * category.css — لاپەڕەی پۆل (category.php)
 *   - ٣ کارتی ڕەش و سپی (وەک وێنەی ٠٠١) + کارتی پاستێلی ٣ ستوون (وەک وێنەی ٠٠٢)
 *   - دوگمەی «+» لەسەر وێنە ← پەنجەرەی هاوبەشکردن (ئایکۆن لە ٣ ستوون)
 *   - ژمارەی لاپەڕە (پەڕەبەندی بێ ڕیفرێش)
 * ڕەنگەکان لە گۆڕاوەکانی single.css دێن، بۆیە تێمی شەو/کاهی خۆکار کار دەکات
 * ===================================================================== */
.lkc-page { direction: rtl; font-family: var(--lk-font); color: var(--lk-text); padding: 6rem 1rem 3rem; max-width: 1120px; margin: 0 auto; width: 100%; min-width: 0; box-sizing: border-box; /* min-width:0 ← ئەگەر body flex بێت ناهێڵێت ئاسۆیی سکرۆڵی کارتەکان لاپەڕە فراوان بکات */ }
.lkc-feat, .lkc-feat-row, .lkc-list { min-width: 0; max-width: 100%; }

/* سەرپەڕە */
.lkc-head { text-align: center; margin-bottom: 2rem; }
.lkc-head h1 { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.lkc-head p { color: var(--lk-muted); max-width: 40rem; margin: 0 auto .6rem; line-height: 2; }
.lkc-count { display: inline-block; font-size: .85rem; color: var(--lk-muted); background: var(--lk-surface); border-radius: 99px; padding: .25rem .9rem; }

/* ───────── ٣ کارتی ڕەش و سپی ───────── */
.lkc-feat { position: relative; margin: 0 auto 3.2rem; padding: 2.2rem 0 1.4rem; }
.lkc-feat::before { /* هەورە کاڵەکانی پشتەوە وەک وێنەی نموونە (نەرم، بێ لێوار) */
  content: ""; position: absolute; left: 8%; right: 8%; top: -10px; height: 90px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 28% 60% at 18% 40%, rgba(0,0,0,.06), transparent), radial-gradient(ellipse 30% 55% at 52% 30%, rgba(0,0,0,.05), transparent), radial-gradient(ellipse 28% 60% at 84% 40%, rgba(0,0,0,.06), transparent);
  filter: blur(8px);
}
.lkc-feat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); gap: 2.2rem; justify-content: center; }
.lkc-fcard { background: var(--lk-card); box-shadow: 0 18px 30px -18px rgba(0,0,0,.28); text-align: center; padding-bottom: 1.5rem; transition: transform .3s, box-shadow .3s; }
.lkc-fcard:hover { transform: translateY(-6px); box-shadow: 0 26px 36px -18px rgba(0,0,0,.35); }
.lkc-fimg { display: block; overflow: hidden; aspect-ratio: 1 / 1.02; background: #ddd; }
.lkc-fimg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: transform .5s, filter .5s; }
.lkc-fcard:hover .lkc-fimg img { transform: scale(1.05); filter: grayscale(.4); }
.lkc-fcard h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.9; margin: 1.1rem 1rem .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lkc-fcard h2 a { color: var(--lk-text) !important; text-decoration: none; }
.lkc-fcard small { display: block; color: var(--lk-muted); font-size: .78rem; margin-bottom: 1rem; }
.lkc-fbtn { display: inline-block; padding: .45rem 1.7rem; border-radius: 99px; font-size: .8rem; font-weight: 700; text-decoration: none !important; color: var(--lk-text) !important; background: var(--lk-card); border: 1px solid var(--lk-line); box-shadow: 0 4px 10px rgba(0,0,0,.08); transition: transform .2s; }
.lkc-fbtn:hover { transform: translateY(-2px); }
.lkc-fbtn.is-dark { background: #26262a; color: #fff !important; border-color: #26262a; }
.lkc-dots { display: none; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.lkc-dots i { width: 26px; height: 3px; border-radius: 2px; background: var(--lk-line); transition: background .2s; }
.lkc-dots i.is-on { background: var(--lk-muted); }

/* ───────── کارتی پاستێلی ٣ ستوون ───────── */
.lkc-list { transition: opacity .2s; }
.lkc-list.is-loading { opacity: .45; pointer-events: none; }
.lkc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.lkc-card { --pc: #d9e6fb; --pb: #d3e2fa; --pt: #2d4f87; background: var(--lk-card); border-radius: 28px; box-shadow: 0 10px 28px -10px rgba(40,60,110,.22); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.lkc-card:hover, .lkc-card:focus-within { transform: translateY(-5px); box-shadow: 0 18px 34px -12px rgba(40,60,110,.3); }
.lkc-c0 { --pc: #d9e6fb; --pb: #d3e2fa; --pt: #2d4f87; }
.lkc-c1 { --pc: #d8f0d4; --pb: #fbd5d8; --pt: #8a2f3c; }
.lkc-c2 { --pc: #fdf3c8; --pb: #fbeaa2; --pt: #7a5d00; }
.lkc-c3 { --pc: #fdf3c8; --pb: #d6f0e0; --pt: #1f6b4b; }
.lkc-c4 { --pc: #dcf0dc; --pb: #fde3cf; --pt: #9a4d12; }
.lkc-c5 { --pc: #c7dcfa; --pb: #d3e2fa; --pt: #2d4f87; }
.lkc-top { position: relative; background: var(--pc); padding: 1rem; height: 190px; }
.lkc-top img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.lkc-plus { position: absolute; top: 1.7rem; left: 1.7rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #333; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: 0; transform: scale(.7) rotate(-90deg); transition: opacity .2s, transform .25s; }
.lkc-card:hover .lkc-plus, .lkc-card:focus-within .lkc-plus, .lkc-plus:focus-visible { opacity: 1; transform: none; }
.lkc-plus:hover { background: #26262a; color: #fff; }
@media (hover: none) { .lkc-plus { opacity: 1; transform: none; } } /* لە تەچ‌سکرین hover نییە */
.lkc-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; text-align: right; }
.lkc-body h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.9; margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lkc-body h3 a { color: var(--lk-text) !important; text-decoration: none; }
.lkc-body p { color: var(--lk-muted); font-size: .85rem; line-height: 2; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lkc-more { margin: auto auto 0; display: inline-block; padding: .4rem 1.6rem; border-radius: 99px; background: var(--pb); color: var(--pt) !important; font-size: .82rem; font-weight: 700; text-decoration: none !important; transition: transform .2s, filter .2s; }
.lkc-more:hover { transform: translateY(-2px); filter: brightness(.97); }

/* ───────── ژمارەی لاپەڕە ───────── */
.lkc-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.lkc-pager .page-numbers { min-width: 40px; height: 40px; padding: 0 .7rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--lk-surface); color: var(--lk-text) !important; font-weight: 700; text-decoration: none !important; transition: background .2s, transform .2s; }
.lkc-pager a.page-numbers:hover { background: var(--lk-line); transform: translateY(-2px); }
.lkc-pager .page-numbers.current { background: #26262a; color: #fff !important; }
.lkc-pager .page-numbers.dots { background: none; }

/* ───────── پەنجەرەی هاوبەشکردن ───────── */
.lkc-pop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(10,14,22,.4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: lkcFade .18s both; }
.lkc-pop[hidden] { display: none; }
@keyframes lkcFade { from { opacity: 0; } to { opacity: 1; } }
.lkc-pop-box { width: 270px; max-width: 100%; background: var(--lk-card); color: var(--lk-text); border-radius: 22px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 24px 50px rgba(0,0,0,.35); animation: lkcPop .22s cubic-bezier(.2,.9,.3,1.2) both; font-family: var(--lk-font); }
@keyframes lkcPop { from { transform: scale(.85) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.lkc-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.lkc-pop-x { border: 0; background: var(--lk-surface); color: var(--lk-text); width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.lkc-pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.lkc-pop-grid a { display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 16px; background: var(--lk-surface); color: var(--lk-text) !important; font-size: 1.5rem; text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.lkc-pop-grid a:hover { transform: translateY(-3px); color: #fff !important; }
.lkc-pop-grid a[data-s="telegram"]:hover { background: #229ed9; } .lkc-pop-grid a[data-s="twitter"]:hover { background: #111; }
.lkc-pop-grid a[data-s="facebook"]:hover { background: #1877f2; } .lkc-pop-grid a[data-s="whatsapp"]:hover { background: #25d366; }
.lkc-pop-grid a[data-s="email"]:hover { background: #f59e0b; } .lkc-pop-grid a[data-s="copy"]:hover { background: #6b7280; }
.lkc-pop-msg { min-height: 1.2rem; margin-top: .6rem; text-align: center; font-size: .8rem; color: #2fb34a; }

/* ───────── تێمی شەو ───────── */
html[data-theme="dark"] .lkc-card { box-shadow: 0 10px 28px -10px rgba(0,0,0,.6); }
html[data-theme="dark"] .lkc-top { background: color-mix(in srgb, var(--pc) 22%, var(--lk-card)); }
html[data-theme="dark"] .lkc-more { background: color-mix(in srgb, var(--pb) 25%, var(--lk-card)); color: var(--lk-text) !important; }
html[data-theme="dark"] .lkc-fbtn.is-dark, html[data-theme="dark"] .lkc-pager .page-numbers.current { background: #e6e9ef; color: #111 !important; }

/* ───────── ڕیسپانسیڤ ───────── */
@media (max-width: 991px) {
  .lkc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lkc-feat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (max-width: 767px) {
  .lkc-page { padding-top: 5.4rem; }
  .lkc-head h1 { font-size: 1.6rem; }
  /* ٣ کارتی ڕەش و سپی: سکرۆڵی ئاسۆیی + هێڵی نیشانەدەر */
  .lkc-feat-row { display: flex; justify-content: flex-start; /* justify center دەبووە هۆی ون بوونی یەکەم کارت */ overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 0 12vw 1.2rem; margin: 0 -1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lkc-feat-row::-webkit-scrollbar { display: none; }
  .lkc-fcard { flex: 0 0 76vw; max-width: 300px; scroll-snap-align: center; }
  .lkc-dots { display: flex; }
}
@media (max-width: 575px) { .lkc-grid { grid-template-columns: 1fr; } .lkc-top { height: 200px; } }
@media (prefers-reduced-motion: reduce) { .lkc-pop, .lkc-pop-box { animation: none; } .lkc-card, .lkc-fcard { transition: none; } }
@media print { .lkc-plus, .lkc-pop, .lkc-pager, .lkc-dots { display: none !important; } }

/* ئاڤاتار + ناوی نووسەر (جیاتی دوگمەی «زۆرتر») */
.lkc-by { display: inline-flex; align-items: center; gap: .55rem; margin: auto auto 0; padding: .25rem .9rem .25rem .35rem; border-radius: 99px; background: var(--pb, var(--lk-surface)); color: var(--pt, var(--lk-text)) !important; font-size: .82rem; font-weight: 700; text-decoration: none !important; transition: transform .2s; max-width: 100%; }
.lkc-by:hover { transform: translateY(-2px); }
.lkc-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkc-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; }
.lkc-fcard .lkc-by { --pb: var(--lk-surface); --pt: var(--lk-text); margin: 1rem auto 0; }
.lkc-fcard .lkc-av { filter: grayscale(1); }
html[data-theme="dark"] .lkc-by { background: color-mix(in srgb, var(--pb, #444) 25%, var(--lk-card)); color: var(--lk-text) !important; }
html[data-theme="dark"] .lkc-fcard .lkc-by { background: var(--lk-surface); }
html[data-theme="dark"] .lkc-av { border-color: var(--lk-card); }

/* ئایکۆنە زیادکراوەکان (لینکدین، ئینستاگرام، Threads، ماستۆدۆن) */
.lkc-pop-grid svg { width: 1.35em; height: 1.35em; fill: currentColor; }
.lkc-pop-grid a:last-child { grid-column: 1 / -1; height: 46px; } /* «کۆپی بەستەر» لە ڕیزی کۆتایی بە پانی تەواو */
.lkc-pop-grid a[data-s="linkedin"]:hover { background: #0a66c2; } .lkc-pop-grid a[data-s="threads"]:hover { background: #000; }
.lkc-pop-grid a[data-s="mastodon"]:hover { background: #6364ff; }
.lkc-pop-grid a[data-s="instagram"]:hover { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
