/* =====================================================================
 * author.css — لاپەڕەی پرۆفایلی نووسەر (author.php)
 * ڕەنگەکان لە گۆڕاوەکانی single.css (--lk-*) دێن، بۆیە شەو/کاهی خۆکار کار دەکات.
 * ===================================================================== */

.lk-author-page { direction: rtl; font-family: var(--lk-font); color: var(--lk-text); }

/* ───────────── پرۆفایل ───────────── */
.lk-profile { max-width: 780px; margin: 0 auto; padding: 6rem 1.1rem 1.2rem; text-align: center; }
.lk-profile-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; }
.lk-profile-side { min-height: 1px; }

/* وێنەی بازنەیی: ڕەنگی دوو-ڕەنگی شین (duotone) وەک نموونە */
.lk-profile-photo { position: relative; width: 212px; height: 212px; border-radius: 50%; border: 1px solid var(--lk-line); padding: 0; background: #fff; isolation: isolate; }
.lk-profile-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.35) brightness(1.05); }
.lk-profile-photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1747c4; mix-blend-mode: screen; pointer-events: none; }

/* کادرەکانی ئامار (لە چەپی وێنە) */
.lk-profile-stats { list-style: none; margin: 2.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; justify-self: start; }
.lk-profile-stats li { background: var(--lk-surface); color: var(--lk-muted); border-radius: 14px; padding: .65rem 1.1rem; font-size: .88rem; white-space: nowrap; text-align: right; }
.lk-profile-stats li b { color: var(--lk-text); font-weight: 700; margin: 0 .15rem; }
.lk-profile-stats li span { margin-inline-end: .15rem; }

.lk-profile-name { font-size: 1.6rem; font-weight: 800; margin: 1.3rem 0 1.1rem; color: var(--lk-text); }

/* ئایکۆنی تۆڕە کۆمەڵایەتییەکان (کاڵ، وەک نموونە) */
.lk-profile-social { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lk-profile-social a { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #b4b4ba !important; font-size: 1.55rem; text-decoration: none; transition: color .2s, transform .2s; }
.lk-profile-social a:hover { color: var(--lk-accent) !important; transform: translateY(-3px); text-decoration: none; }

.lk-profile-about-h { font-size: 1.05rem; font-weight: 800; margin: 0 0 .7rem; color: var(--lk-text); }
.lk-profile-bio { max-width: 40rem; margin: 0 auto 2.2rem; font-size: 1.1rem; line-height: 2.2; color: var(--lk-text); }

/* ───────────── جۆری نیشاندان ───────────── */
.lk-viewbar { display: flex; align-items: center; gap: 1.1rem; margin-top: 1rem; }
.lk-viewbar-label { color: var(--lk-muted); font-size: .95rem; white-space: nowrap; }
.lk-viewbar-line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--lk-line) 15%, var(--lk-text) 50%, var(--lk-line) 85%, transparent); opacity: .85; }
.lk-viewbtns { display: flex; gap: .6rem; }
.lk-viewbtn { width: 2.5rem; height: 2.5rem; padding: .25rem; border: 0; border-radius: 10px; background: transparent; color: var(--lk-muted); cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.lk-viewbtn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lk-viewbtn:hover { color: var(--lk-text); transform: translateY(-2px); }
.lk-viewbtn[aria-pressed="true"] { color: var(--lk-text); background: var(--lk-surface); }
.lk-viewbtn:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 2px; }

/* ───────────── لیستی نووسراوەکان ───────────── */
.lk-posts-band { margin-top: 2.2rem; padding: 3rem 1.1rem 3.5rem; background: var(--lk-surface); }
.lk-posts { max-width: 1320px; margin: 0 auto; }
.lk-pcard { background: var(--lk-card); box-shadow: 0 2px 14px rgba(0,0,0,.06); overflow: hidden; transition: transform .25s, box-shadow .25s; break-inside: avoid; }
.lk-pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.lk-pcard-img { display: block; overflow: hidden; background: #e9ecef; }
.lk-pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lk-pcard:hover .lk-pcard-img img { transform: scale(1.05); }
.lk-pcard-body { padding: 1.4rem 1.5rem 1.3rem; text-align: right; }
.lk-pcard-meta { font-size: .68rem; color: var(--lk-muted); margin-bottom: .55rem; letter-spacing: .02em; }
.lk-pcard-meta a { color: var(--lk-text) !important; font-weight: 700; text-decoration: none; }
.lk-pcard-title { font-size: 1.1rem; line-height: 1.8; font-weight: 800; margin: 0 0 .6rem; }
.lk-pcard-title a { color: var(--lk-text) !important; text-decoration: none; }
.lk-pcard-title a:hover { color: var(--lk-accent) !important; }
.lk-pcard-excerpt { font-size: .82rem; line-height: 2; color: var(--lk-muted); margin: 0 0 1rem; }
.lk-pcard-foot { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.lk-pcard-foot a { color: var(--lk-text) !important; font-weight: 700; text-decoration: none; }
.lk-pcard-foot a:hover { color: var(--lk-accent) !important; }
.lk-pcard-foot small { color: var(--lk-muted); }

/* — Grid Style: ماسۆنری (ستوونی)؛ بەرزی وێنەکان جیاوازن بۆ ئەوەی وەک نموونە ناڕێک بێت — */
.lk-posts[data-view="grid"] { column-count: 5; column-gap: 1.6rem; }
.lk-posts[data-view="grid"] .lk-pcard { margin-bottom: 1.6rem; }
.lk-posts[data-view="grid"] .lk-pcard-img { aspect-ratio: 4 / 3.6; }
.lk-posts[data-view="grid"] .lk-pcard:nth-child(3n+2) .lk-pcard-img { aspect-ratio: 1 / 1; }
.lk-posts[data-view="grid"] .lk-pcard:nth-child(4n+3) .lk-pcard-img { aspect-ratio: 4 / 4.6; }
.lk-posts[data-view="grid"] .lk-pcard:nth-child(5n+1) .lk-pcard-img { aspect-ratio: 4 / 3; }

/* — List Style: یەک ستوون، وێنە لە ڕاست و دەق لە چەپ — */
.lk-posts[data-view="list"] { max-width: 860px; }
.lk-posts[data-view="list"] .lk-pcard { display: flex; align-items: stretch; margin-bottom: 1.2rem; }
.lk-posts[data-view="list"] .lk-pcard-img { flex: 0 0 34%; }
.lk-posts[data-view="list"] .lk-pcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

/* — Mini List Style: ڕیزی کورت، وێنەی بچووک، بێ کورتە — */
.lk-posts[data-view="mini"] { max-width: 760px; background: var(--lk-card); border-radius: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.06); overflow: hidden; }
.lk-posts[data-view="mini"] .lk-pcard { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--lk-line); background: transparent; }
.lk-posts[data-view="mini"] .lk-pcard:last-child { border-bottom: 0; }
.lk-posts[data-view="mini"] .lk-pcard:hover { transform: none; box-shadow: none; background: var(--lk-surface); }
.lk-posts[data-view="mini"] .lk-pcard-img { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 10px; }
.lk-posts[data-view="mini"] .lk-pcard-body { flex: 1; min-width: 0; padding: 0; display: flex; flex-direction: column-reverse; }
.lk-posts[data-view="mini"] .lk-pcard-meta { margin: .15rem 0 0; }
.lk-posts[data-view="mini"] .lk-pcard-title { font-size: .95rem; margin: 0; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-posts[data-view="mini"] .lk-pcard-excerpt, .lk-posts[data-view="mini"] .lk-pcard-foot { display: none; }


/* — Magazine Style: نووسراوەی یەکەم گەورە (فیچەر) و ئەوانی تر لە تۆڕی سێ-ستوونی — */
.lk-posts[data-view="magazine"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1180px; }
.lk-posts[data-view="magazine"] .lk-pcard-img { aspect-ratio: 16 / 10; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-img { aspect-ratio: auto; min-height: 340px; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-body { display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.2rem; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-title { font-size: 1.7rem; line-height: 1.7; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-excerpt { font-size: .95rem; }

/* دوگمەی «زۆرتر» (بارکردنی بابەتەکانی دواتر) */
.lk-more-wrap { display: flex; justify-content: center; margin-top: 2.6rem; }
.lk-more { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 3rem; background: #111; color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s, opacity .2s; }
.lk-more:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.3); text-decoration: none; }
.lk-more.is-loading { opacity: .65; pointer-events: none; }
.lk-more.is-loading::after { content: ""; width: .9rem; height: .9rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lkSpin .7s linear infinite; }
@keyframes lkSpin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .lk-more { background: #e6e9ef; color: #0f131a !important; }
.lk-pcard.is-new { animation: lkCardIn .5s both; }
@keyframes lkCardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lk-noposts { text-align: center; color: var(--lk-muted); }

/* ───────────── وەڵامدەر ───────────── */
@media (max-width: 1199px) { .lk-posts[data-view="grid"] { column-count: 4; } }
@media (max-width: 991px)  { .lk-posts[data-view="grid"] { column-count: 3; } .lk-posts[data-view="magazine"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .lk-posts[data-view="grid"] { column-count: 2; column-gap: 1rem; }
  .lk-posts[data-view="grid"] .lk-pcard { margin-bottom: 1rem; }
  .lk-posts[data-view="grid"] .lk-pcard-body { padding: 1rem; }
  .lk-profile { padding-top: 5rem; }
  .lk-profile-grid { grid-template-columns: 1fr; justify-items: center; }
  .lk-profile-side { display: none; }
  .lk-profile-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 1rem; justify-self: center; }
  .lk-profile-photo { width: 170px; height: 170px; }
  .lk-posts[data-view="list"] .lk-pcard { flex-direction: column; }
  .lk-posts[data-view="list"] .lk-pcard-img { flex: none; aspect-ratio: 16 / 9; }
  .lk-viewbar { gap: .6rem; }
  .lk-viewbar-label { font-size: .8rem; }
}
@media (max-width: 767px) { .lk-posts[data-view="magazine"] .lk-pcard:first-child { grid-template-columns: 1fr; } .lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-img { min-height: 0; aspect-ratio: 16 / 10; } .lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-title { font-size: 1.3rem; } }
@media (max-width: 575px) { .lk-posts[data-view="magazine"] { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .lk-posts[data-view="grid"] { column-count: 1; } }
@media (prefers-reduced-motion: reduce) { .lk-pcard, .lk-pcard-img img { transition: none; } }
@media print { .lk-viewbar, .lk-more-wrap { display: none; } }
/* Magazine: وێنەی فیچەر بە بەرزیی چەسپاو (نەک بەپێی قەبارەی سروشتیی وێنە) */
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-img { position: relative; }
.lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 767px) { .lk-posts[data-view="magazine"] .lk-pcard:first-child .lk-pcard-img { min-height: 0; aspect-ratio: 16 / 10; } }

/* =====================================================================
 * کادری مشخصاتی نووسەر: ئاسمانی کارتۆنی + هەورە جوڵاوەکان
 * (هەورەکان بە ::before/::after دروست دەکرێن و بە animation لە ڕاستەوە بۆ چەپ دەچن؛ ڕەنگەکان بۆ شەو/کاهی دەگۆڕدرێن)
 * ===================================================================== */
.lk-stage { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 1rem;
  --sky1: #8fd3ff; --sky2: #d6f0ff; --sky3: #fff; --cloud: #fff; --cloud-sh: rgba(120,170,220,.35); --ink: #1d3047; --ink2: #4a6078;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%); }
html[data-theme="dark"] .lk-stage { --sky1: #14224a; --sky2: #1c3262; --sky3: #1d2330; --cloud: #3a4f86; --cloud-sh: rgba(0,0,0,.35); --ink: #e6e9ef; --ink2: #aab6cc; }
html[data-theme="sepia"] .lk-stage { --sky1: #f3c995; --sky2: #f8e2bf; --sky3: #faf4e4; --cloud: #fff6e6; --cloud-sh: rgba(180,120,60,.3); --ink: #433422; --ink2: #6b5238; }
.lk-profile-in { position: relative; z-index: 2; }
.lk-profile-card .lk-profile-name, .lk-profile-card .lk-profile-about-h, .lk-profile-card .lk-profile-bio { color: var(--ink); }
.lk-profile-card .lk-profile-bio { color: var(--ink2); }
.lk-profile-card .lk-profile-stats li { background: rgba(255,255,255,.75); color: #4a6078; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 3px 10px rgba(60,120,180,.12); }
html[data-theme="dark"] .lk-profile-card .lk-profile-stats li { background: rgba(20,30,60,.6); color: #aab6cc; }
.lk-profile-card .lk-profile-stats li b { color: #1d3047; }
html[data-theme="dark"] .lk-profile-card .lk-profile-stats li b { color: #fff; }
.lk-profile-card .lk-profile-social a { color: #6b86a3 !important; }
.lk-profile-card .lk-profile-social a:hover { color: #1f6fd0 !important; }
.lk-profile-card .lk-profile-photo { background: #fff; box-shadow: 0 8px 22px rgba(40,100,170,.25); border-color: #fff; border-width: 4px; }

.lk-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lk-cloud { position: absolute; left: -30%; width: 130px; height: 42px; background: var(--cloud); border-radius: 60px; box-shadow: inset 0 -7px 0 var(--cloud-sh), 0 6px 14px rgba(60,120,180,.12); animation: lkCloud 46s linear infinite; will-change: left; }
.lk-cloud::before, .lk-cloud::after { content: ""; position: absolute; background: var(--cloud); border-radius: 50%; box-shadow: inset 0 -6px 0 var(--cloud-sh); }
.lk-cloud::before { width: 58px; height: 58px; left: 18px; top: -30px; }
.lk-cloud::after  { width: 44px; height: 44px; right: 20px; top: -21px; }
@keyframes lkCloud { from { left: -30%; } to { left: 112%; } }
.lk-c1 { top: 12%; transform: scale(1.1); animation-duration: 52s; }
.lk-c2 { top: 30%; transform: scale(.7);  animation-duration: 38s; animation-delay: -14s; opacity: .85; }
.lk-c3 { top: 58%; transform: scale(1.35); animation-duration: 70s; animation-delay: -40s; }
.lk-c4 { top: 74%; transform: scale(.85); animation-duration: 44s; animation-delay: -22s; opacity: .9; }
.lk-c5 { top: 6%;  transform: scale(.6);  animation-duration: 33s; animation-delay: -5s; opacity: .8; }
/* خۆری کارتۆنی لە گۆشەی سەرەوە (بە ڕووناکی ڕۆژ؛ لە شەودا مانگ) */
.lk-sun { position: absolute; top: 18px; right: 22px; width: 54px; height: 54px; border-radius: 50%; background: #ffd84a; box-shadow: inset -6px -6px 0 rgba(240,170,0,.35), 0 0 0 8px rgba(255,216,74,.3), 0 0 0 18px rgba(255,216,74,.16); animation: lkSun 6s ease-in-out infinite; }
@keyframes lkSun { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
html[data-theme="dark"] .lk-sun { background: #f3f0d0; box-shadow: inset -9px -3px 0 rgba(150,150,190,.45), 0 0 0 8px rgba(243,240,208,.12); }
html[data-theme="sepia"] .lk-sun { background: #ffb347; }
@media (max-width: 767px) { .lk-profile-card { border-radius: 22px; padding: 1.6rem 1rem; } .lk-sun { width: 38px; height: 38px; top: 12px; right: 14px; } }
@media (prefers-reduced-motion: reduce) { .lk-cloud, .lk-sun { animation: none; } .lk-cloud { left: 10%; } .lk-c2 { left: 60%; } .lk-c3 { left: 35%; } .lk-c4 { left: 75%; } .lk-c5 { left: 80%; } }

/* چیپی پۆل لە کارتی نووسراوە (ستایلی lk-gcard-chip لە style.css؛ لێرە تەنها شوێنەکەی ستاتیک دەکرێت) */
.lk-pcard-foot .lk-gcard-chip { position: static; text-decoration: none; transition: background .2s, border-color .2s; }
.lk-pcard-foot .lk-gcard-chip:hover { background: var(--lk-accent-soft); border-color: var(--lk-accent); color: var(--lk-accent-text); }
html[data-theme="dark"] .lk-pcard-foot .lk-gcard-chip, html[data-theme="sepia"] .lk-pcard-foot .lk-gcard-chip { background: var(--lk-surface); border-color: var(--lk-line); color: var(--lk-text); }
.lk-pcard-meta time i { margin-inline-end: .2rem; }

/* سەرتاسەری بەشی نووسەر (.lk-stage): کارتی پرۆفایل ئیتر باکگراوندی خۆی نییە و ئاسمانەکە لە پشتیەوەیە */
.lk-stage .lk-profile { position: relative; z-index: 2; }
.lk-profile-card { background: none; box-shadow: none; border-radius: 0; padding: 0; overflow: visible; }
.lk-stage .lk-viewbar-label { color: var(--ink2); }
.lk-stage .lk-viewbtn { color: var(--ink2); }
.lk-stage .lk-viewbtn:hover, .lk-stage .lk-viewbtn[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.55); }
html[data-theme="dark"] .lk-stage .lk-viewbtn:hover, html[data-theme="dark"] .lk-stage .lk-viewbtn[aria-pressed="true"] { background: rgba(255,255,255,.12); }
.lk-stage .lk-viewbar-line { background: linear-gradient(90deg, transparent, var(--ink2) 50%, transparent); opacity: .5; }
.lk-stage .lk-posts-band { margin-top: 0; }
.lk-posts-band { margin-top: 0; }

/* ئایکۆنی SVG ی ماستۆدۆن لە ژێر پرۆفایل (هاوبەش لەگەڵ فووتەر) */
.lk-profile-social .lk-svg-ic { width: 1.45rem; height: 1.45rem; fill: currentColor; }
