/* ============================================================
   Writers module — premium dedicated directory (/writers/).
   Apple-inspired: glassmorphism, sticky sidebar, compact cards.
   ============================================================ */

.naat-wx-main { padding-top: 112px; }
.naat-wx-wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px 72px; }

/* ---- Header ---- */
.naat-wx-head { text-align: center; padding: 26px 0 30px; }
.naat-wx-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--naat-font-ui, sans-serif); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #059669; }
.naat-wx-title { font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif); font-size: clamp(28px, 5vw, 44px); font-weight: 800; color: #0f172a; margin: .4rem 0 .5rem; line-height: 1.1; }
.naat-wx-lead { max-width: 42rem; margin: 0 auto; font-family: var(--naat-font-ui, sans-serif); font-size: 15px; color: #64748b; line-height: 1.6; }
.naat-wx-headstats { display: inline-flex; gap: 26px; margin-top: 20px; padding: 10px 26px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); border: 1px solid rgba(226,232,240,.9); border-radius: 999px; box-shadow: 0 10px 30px -22px rgba(6,78,59,.4); }
.naat-wx-headstats span { font-family: var(--naat-font-ui, sans-serif); font-size: 12.5px; color: #64748b; }
.naat-wx-headstats strong { color: #047857; font-weight: 800; margin-right: 3px; font-size: 15px; }

/* ---- Layout: content + sidebar ---- */
.naat-wx-layout { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 1040px) { .naat-wx-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

/* ---- Toolbar ---- */
.naat-wx-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.naat-wx-searchbox { position: relative; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 16px; box-shadow: 0 8px 22px -18px rgba(6,78,59,.4); }
.naat-wx-searchbox .bi-search { color: #047857; }
.naat-wx-searchbox input { flex: 1; border: 0; background: transparent; outline: none; font-size: .95rem; padding: 8px 0; color: #1e293b; min-width: 0; }
.naat-wx-clear { border: 0; background: rgba(15,23,42,.06); color: #64748b; cursor: pointer; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.naat-wx-clear:hover { background: rgba(15,23,42,.12); }
.naat-wx-sortwrap { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 14px; box-shadow: 0 8px 22px -18px rgba(6,78,59,.4); }
.naat-wx-sortwrap .bi { color: #047857; font-size: .85rem; }
.naat-wx-sort { border: 0; background: transparent; outline: none; font-family: var(--naat-font-ui, sans-serif); font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; padding: 4px 2px; }

/* ---- Writer cards grid ---- */
.naat-wcx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .naat-wcx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.naat-wcx-card {
	position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
	background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
	border: 1px solid #eef2f6; border-radius: 22px; padding: 20px 18px 16px;
	text-decoration: none; color: #1e293b; box-shadow: 0 10px 30px -24px rgba(6,78,59,.45);
	transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.naat-wcx-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--wc-accent, #047857), color-mix(in srgb, var(--wc-accent, #047857) 55%, #fff)); opacity: .9; }
.naat-wcx-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--wc-accent) 45%, #e2e8f0); box-shadow: 0 26px 48px -28px rgba(6,78,59,.5); }
.naat-wcx-badge { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; color: #f59e0b; background: #fffbeb; border: 1px solid #fde68a; }
/* Clean writer icon — no container, background, or shape. */
.naat-wcx-icon { display: inline-flex; align-items: center; color: var(--wc-accent, #047857); line-height: 0; }
.naat-wcx-icon svg { width: 30px; height: 30px; display: block; }
.naat-wcx-name { display: flex; flex-direction: column; gap: 1px; }
.naat-wcx-ur { font-family: "Lateef", "NaatFont", serif; font-size: 1.35rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.naat-wcx-en { font-family: var(--naat-font-ui, sans-serif); font-size: 13px; font-weight: 700; color: #334155; line-height: 1.3; }
.naat-wcx-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.naat-wcx-meta span { display: inline-flex; align-items: center; gap: 4px; font-family: var(--naat-font-ui, sans-serif); font-size: 11px; font-weight: 600; color: #94a3b8; }
.naat-wcx-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f1f5f9; }
.naat-wcx-stat { display: inline-flex; align-items: center; gap: 5px; font-family: var(--naat-font-ui, sans-serif); font-size: 11.5px; font-weight: 700; color: var(--wc-accent, #047857); }
.naat-wcx-stat .bi { font-size: .8rem; opacity: .8; }

.naat-wx-empty { text-align: center; color: #94a3b8; padding: 48px 0; font-family: var(--naat-font-ui, sans-serif); }

@media (prefers-reduced-motion: reduce) {
	.naat-wcx-card { transition: none; }
	.naat-wcx-card:hover { transform: none; }
}

/* ============================================================
   Writers sidebar — sticky (desktop) / collapsible (mobile).
   ============================================================ */
.naat-wsb { position: relative; }
@media (min-width: 1040px) {
	/* Fixed, fully visible sidebar — no internal scroll area. */
	.naat-wsb { position: sticky; top: 96px; align-self: start; }
}

/* Mobile toggle */
.naat-wsb-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #047857; color: #fff; border: 0; border-radius: 16px; padding: 13px 18px; font-family: var(--naat-font-ui, sans-serif); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px -16px rgba(6,78,59,.6); }
.naat-wsb-toggle-ico { transition: transform .25s ease; }
.naat-wsb-toggle[aria-expanded="true"] .naat-wsb-toggle-ico { transform: rotate(180deg); }
@media (min-width: 1040px) { .naat-wsb-toggle { display: none; } }

.naat-wsb-inner { display: none; margin-top: 14px; }
.naat-wsb-inner.is-open { display: block; }
@media (min-width: 1040px) { .naat-wsb-inner { display: block !important; margin-top: 0; } }

/* Card shell */
.naat-wsb-card { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border: 1px solid #eef2f6; border-radius: 20px; padding: 16px 16px 14px; margin-bottom: 14px; box-shadow: 0 10px 30px -26px rgba(6,78,59,.4); }
.naat-wsb-h { display: flex; align-items: center; gap: 8px; font-family: var(--naat-font-ui, sans-serif); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #0f172a; margin: 0 0 12px; }
.naat-wsb-h .bi { color: #047857; font-size: .95rem; }
.naat-wsb-body { font-family: var(--naat-font-ui, sans-serif); }

/* Counters */
.naat-wsb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.naat-wsb-stat { text-align: center; background: linear-gradient(160deg, #ecfdf5, #fff); border: 1px solid #d1fae5; border-radius: 16px; padding: 14px 6px; }
.naat-wsb-stat-num { display: block; font-family: var(--naat-font-ui, sans-serif); font-size: 20px; font-weight: 800; color: #064e3b; line-height: 1; }
.naat-wsb-stat-lbl { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #059669; }

/* Search box */
.naat-wsb-searchbox { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px 12px; }
.naat-wsb-searchbox .bi-search { color: #047857; font-size: .85rem; }
.naat-wsb-searchbox input { flex: 1; border: 0; background: transparent; outline: none; font-size: .88rem; padding: 8px 0; color: #1e293b; min-width: 0; }
.naat-wsb-hint { margin: 8px 0 0; font-size: 11px; color: #94a3b8; }

/* Alphabet index */
.naat-wsb-alpha { display: flex; flex-wrap: wrap; gap: 5px; }
.naat-wsb-a { border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 9px; min-width: 30px; height: 30px; padding: 0 6px; font-family: "Lateef", serif; font-size: 1.05rem; line-height: 1; cursor: pointer; transition: all .16s ease; }
.naat-wsb-a:hover { border-color: #34d399; color: #047857; }
.naat-wsb-a.is-active { background: #047857; border-color: #047857; color: #fff; }

/* Chip filters */
.naat-wsb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.naat-wsb-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .16s ease; }
.naat-wsb-chip span { font-size: 10px; font-weight: 800; color: #94a3b8; background: #f1f5f9; border-radius: 999px; padding: 1px 6px; }
.naat-wsb-chip:hover { border-color: #34d399; }
.naat-wsb-chip.is-active { background: #047857; border-color: #047857; color: #fff; }
.naat-wsb-chip.is-active span { background: rgba(255,255,255,.25); color: #fff; }

/* Writer list */
.naat-wsb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.naat-wsb-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e293b; padding: 7px 8px; border-radius: 12px; transition: background .16s ease; }
.naat-wsb-list a:hover { background: #f0fdf4; }
.naat-wsb-av { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; font-family: "Lateef", serif; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--w-accent, #047857), color-mix(in srgb, var(--w-accent, #047857) 66%, #000 16%)); }
.naat-wsb-av-lg { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 14px; }
.naat-wsb-li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.naat-wsb-li-ur { font-family: "Lateef", "NaatFont", serif; font-size: 1.02rem; font-weight: 700; color: #0f172a; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.naat-wsb-li-en { font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.naat-wsb-li-c { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--w-accent, #047857); background: color-mix(in srgb, var(--w-accent, #047857) 12%, #fff); border-radius: 999px; padding: 2px 9px; }
.naat-wsb-empty-mini { margin: 4px 2px 0; font-size: 11px; color: #94a3b8; }

/* Random writer */
.naat-wsb-random { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1e293b; padding: 10px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--w-accent, #047857) 8%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--w-accent, #047857) 22%, #eef2f6); transition: transform .2s ease; }
.naat-wsb-random:hover { transform: translateY(-2px); }
.naat-wsb-random-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.naat-wsb-random-cta { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--w-accent, #047857); display: inline-flex; align-items: center; gap: 4px; }

/* Quick nav */
.naat-wsb-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.naat-wsb-nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #334155; font-size: 13px; font-weight: 600; padding: 9px 10px; border-radius: 12px; transition: background .16s ease, color .16s ease; }
.naat-wsb-nav a:hover { background: #f0fdf4; color: #047857; }
.naat-wsb-nav .bi { color: #047857; width: 18px; text-align: center; }

/* Social */
.naat-wsb-wa { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: #25d366; color: #fff; font-size: 13px; font-weight: 700; padding: 11px; border-radius: 12px; }
.naat-wsb-wa:hover { filter: brightness(1.05); }
.naat-wsb-social-note { margin: 10px 0 0; font-size: 11.5px; color: #94a3b8; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
	.naat-wsb-a, .naat-wsb-chip, .naat-wsb-random, .naat-wsb-nav a, .naat-wsb-toggle-ico { transition: none; }
	.naat-wsb-random:hover { transform: none; }
}
