/* ============================================================
   Wuthqa — Insights page styles
   Builds on tokens + chrome (home.css) + shared inner styles (inner.css).
   ============================================================ */

/* ---- Latest Trends ticker --------------------------------------- */
.wq-trends-sec { border-bottom: 1px solid var(--border-soft); }
.wq-trends { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.wq-trends-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en);
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.wq-trends-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200,168,75,.6); animation: wqPulse 1.8s infinite; }
.wq-trends-vp { position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.wq-trends-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: wqTicker 34s linear infinite; }
.wq-trends:hover .wq-trends-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .wq-trends-track { animation: none; } }
.wq-trend-item { font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.wq-trend-item strong { color: var(--gold-600); font-weight: 600; margin-inline-end: 8px; }

/* ---- Case Studies (BG-image cards on dark) ---------------------- */
.wq-cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wq-cs-card { position: relative; min-height: 320px; border-radius: var(--r-xl); overflow: hidden;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  border: 1px solid rgba(255,255,255,.1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wq-cs-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.wq-cs-body { padding: 24px; }
.wq-cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wq-cs-tags span { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--gold); background: rgba(200,168,75,.16); border: 1px solid rgba(200,168,75,.4);
  border-radius: var(--r-full); padding: 4px 11px; }
.wq-cs-title { color: #fff; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.wq-cs-read { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-family: var(--font-en); font-weight: 600; font-size: 13.5px; }
.wq-cs-card:hover .wq-cs-read { gap: 11px; }

/* ---- Article / Blog grid (filterable) --------------------------- */
.wq-art-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.wq-art-chip { font-family: var(--font-en); font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-full);
  padding: 8px 16px; cursor: pointer; transition: all .25s var(--ease); }
.wq-art-chip:hover { border-color: var(--gold); color: #fff; }
.wq-art-chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--teal-900); }
.wq-art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Card — dark, rounded photo, hot badge, floating author chip, Read More */
.wq-art-card { background: #141414; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  display: flex; flex-direction: column; padding: 14px 14px 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.wq-art-card:hover { transform: translateY(-5px); border-color: rgba(200, 168, 75, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.wq-art-media { position: relative; }
.wq-art-img { height: 258px; border-radius: 16px; background-size: cover; background-position: center; background-color: #222; }
.wq-art-hot { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #e8552d; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .4); }
.wq-art-author { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-full); padding: 5px 16px 5px 5px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.wq-art-avatar { width: 34px; height: 34px; border-radius: 50%; background-size: cover; background-position: center top;
  background-color: var(--surface); flex-shrink: 0; }
.wq-art-authname { color: var(--teal-900); font-family: var(--font-en); font-weight: 600; font-size: 13px; white-space: nowrap; }
.wq-art-body { padding: 18px 8px 0; display: flex; flex-direction: column; flex: 1; }
.wq-art-title { font-family: var(--font-en); font-weight: 700; font-size: 20px; line-height: 1.3; color: #fff; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wq-art-preview { color: rgba(255, 255, 255, .55); font-size: 13.5px; line-height: 1.7; margin: 0 0 22px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wq-art-readmore { display: block; text-align: center; font-family: var(--font-en); font-weight: 600; font-size: 14px;
  color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-full); padding: 14px 20px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.wq-art-readmore:hover { background: var(--gold); color: var(--teal-900); border-color: var(--gold); }

/* ---- Subscribe band --------------------------------------------- */
.wq-sub { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.wq-sub-copy { flex: 1 1 380px; }
.wq-sub-copy h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; color: #fff;
  font-size: clamp(24px, 2.8vw, 33px); line-height: 1.2; margin: 14px 0 12px; }
.wq-sub-copy p { color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.7; margin: 0; }
.wq-sub-form { flex: 0 1 440px; display: flex; gap: 12px; }
.wq-sub-form input { flex: 1; font-family: var(--font-ar); font-size: 15px; padding: 14px 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); color: #fff; }
.wq-sub-form input::placeholder { color: rgba(255,255,255,.45); }
.wq-sub-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.wq-sub-ok { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-weight: 600; font-size: 15px; }

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 980px) {
  .wq-cs-grid { grid-template-columns: repeat(2, 1fr); }
  .wq-art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wq-cs-grid { grid-template-columns: 1fr; }
  .wq-art-grid { grid-template-columns: 1fr; }
  .wq-sub-form { flex-basis: 100%; }
}

/* ---- Card title links (cards route to the inner page) ------------ */
.wq-art-title a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.wq-art-title a:hover { color: var(--gold); }

/* ============================================================
   Insight inner page (insight.html — article / blog / case study)
   ============================================================ */
.wq-insd { max-width: 780px; margin: 0 auto; }
.wq-insd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 26px; }
.wq-insd-chip { font-family: var(--font-en); font-weight: 600; font-size: 12.5px; letter-spacing: .04em;
  color: var(--gold-600); background: var(--gold-tint); border: 1px solid rgba(165, 149, 107, .35);
  border-radius: var(--r-full); padding: 6px 14px; }
.wq-insd-m { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-3);
  font-family: var(--font-en); font-size: 13.5px; }
.wq-insd-m svg, .wq-insd-m [data-lucide] { color: var(--gold); }
.wq-insd-banner { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--r-xl); background-size: cover;
  background-position: center; margin-bottom: 34px; box-shadow: 0 28px 55px -30px rgba(20, 16, 10, .4); }
.wq-insd-lead { font-size: 19px; line-height: 1.85; color: var(--fg); font-weight: 500; margin: 0 0 24px; }
.wq-insd-body p { font-size: 16px; line-height: 1.9; color: var(--fg-2); margin: 0 0 20px; }
.wq-insd-pending { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; margin: 8px 0 4px;
  background: var(--gold-tint); border: 1px dashed rgba(165, 149, 107, .5); border-radius: var(--r-lg);
  color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.wq-insd-pending svg, .wq-insd-pending [data-lucide] { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.wq-insd-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--gold-600); text-decoration: none;
  transition: color .2s var(--ease), gap .2s var(--ease); }
.wq-insd-back:hover { color: var(--gold); gap: 12px; }

/* related strip (dark) */
.wq-insd-rel-title { font-family: var(--font-en); font-weight: 600; font-size: clamp(21px, 2.4vw, 28px);
  color: #fff; margin: 0 0 28px; text-align: center; }
.wq-insd-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wq-insd-rel-card { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease); }
.wq-insd-rel-card:hover { transform: translateY(-4px); border-color: rgba(200, 168, 75, .5); }
.wq-insd-rel-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.wq-insd-rel-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.wq-insd-rel-body h3 { font-family: var(--font-en); font-weight: 600; font-size: 15.5px; line-height: 1.45;
  color: #fff; margin: 0; }
.wq-insd-rel-read { display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-family: var(--font-en); font-weight: 600; font-size: 13px; color: var(--gold); }

@media (max-width: 860px) {
  .wq-insd-rel-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ---- Case study card actions: Read + optional Download ----------- */
.wq-cs-card.is-link { cursor: pointer; }
.wq-cs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.wq-cs-actions .wq-cs-read { text-decoration: none; }
.wq-cs-dl { display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: rgba(255, 255, 255, .88); font-family: var(--font-en); font-weight: 600; font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-full); padding: 6px 14px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.wq-cs-dl:hover { border-color: var(--gold); color: var(--gold); background: rgba(200, 168, 75, .1); }
.wq-cs-dl .lucide, .wq-cs-dl svg { flex-shrink: 0; }

/* ---- Inner page: case-study PDF download (meta strip, trailing) -- */
.wq-insd-pdf { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto;
  text-decoration: none; color: var(--teal-900); background: var(--gold);
  font-family: var(--font-en); font-weight: 600; font-size: 13.5px;
  border-radius: var(--r-full); padding: 9px 18px;
  transition: background .2s var(--ease), transform .2s var(--ease); }
.wq-insd-pdf:hover { background: var(--gold-600); transform: translateY(-1px); }
@media (max-width: 640px) { .wq-insd-pdf { margin-inline-start: 0; } }
