/* Noor Expertise — professional-services marketplace (theme-expertise, slate accent).
 * Layered on core app.css; reuses design tokens (--brand, --line, --ink, etc.).
 * Loaded only on /expertise/ pages, so the generic helper classes below
 * (.chip, .section-title, .ex-pill) are safe to define here. App mark: 💼.
 */
body.theme-expertise { --brand:#475569; --brand-dark:#334155; --brand-tint:#f1f5f9; --ring:0 0 0 3px rgba(71,85,105,.24); }

/* ---- Shared helpers (namespaced to this app's stylesheet) --------------- */
.section-title { margin: 0 0 4px; font-size: 1.35rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: var(--radius-pill, 999px); font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.chip:hover { background: var(--brand-tint); border-color: var(--brand); text-decoration: none; }
.chip.chip-static, .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Subnav ------------------------------------------------------------- */
.ex-subnav {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.ex-subnav .ex-brand { font-weight: 800; color: var(--brand-dark); margin-inline-end: 10px; text-decoration: none; }
.ex-subnav a {
  padding: 7px 12px; border-radius: var(--radius-pill, 999px); color: var(--ink);
  font-size: .92rem; font-weight: 600; text-decoration: none;
}
.ex-subnav a:hover { background: var(--brand-tint); text-decoration: none; }
.ex-subnav a.active { background: var(--brand); color: #fff; }
.ex-subnav .spacer { flex: 1; }

/* ---- Layout ------------------------------------------------------------- */
.ex-wrap { display: grid; gap: 34px; }
.ex-section-head {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; align-items: center; margin-bottom: 14px;
}
.ex-narrow { max-width: 860px; margin: 0 auto; }

/* ---- Hero --------------------------------------------------------------- */
.ex-hero {
  border-radius: var(--radius-lg, 20px);
  padding: clamp(32px, 5vw, 60px) clamp(24px, 5vw, 56px);
  background:
    radial-gradient(1100px 380px at 100% -20%, rgba(71,85,105,.16), transparent 60%),
    linear-gradient(135deg, #e6ebf2, #f7f9fb);
  border: 1px solid var(--line);
  display: grid; gap: 14px;
}
.ex-hero-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--brand-dark);
}
.ex-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; }
.ex-hero .ex-sub { font-weight: 600; color: var(--ink); margin: 0; max-width: 62ch; }
.ex-hero p { margin: 0; max-width: 64ch; color: var(--muted); }
.ex-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---- Cards (3-up + grids) ---------------------------------------------- */
.ex-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ex-cards3 .card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.ex-cards3 .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ex-emoji { font-size: 1.6rem; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---- Expert card -------------------------------------------------------- */
.ex-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.ex-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ex-card-top { display: flex; gap: 12px; align-items: center; }
.ex-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  display: inline-grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  background: var(--brand-tint); color: var(--brand-dark);
}
.ex-card-name { margin: 0; font-size: 1.06rem; line-height: 1.2; }
.ex-card-headline { color: var(--muted); font-size: .88rem; line-height: 1.35; margin: 2px 0 0; }
.ex-card-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

/* ---- Category tags / badges -------------------------------------------- */
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; border-radius: var(--radius-pill, 999px);
  padding: 3px 10px; background: var(--brand-tint); color: var(--brand-dark);
}
.ex-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ex-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; border-radius: var(--radius-pill, 999px); padding: 3px 9px;
}
.ex-badge.verified { background: #e8f0fb; color: #2a4fb0; }
.ex-badge.featured { background: #fcf3e3; color: #7a5a14; }

/* ---- Rating stars ------------------------------------------------------- */
.ex-stars { color: #d97706; letter-spacing: 1px; }
.ex-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.ex-rating .ex-rating-num { font-weight: 700; color: var(--ink); }
.ex-rating .ex-rating-count { color: var(--muted); }

/* ---- Rate --------------------------------------------------------------- */
.ex-rate { font-weight: 700; color: var(--brand-dark); font-size: .95rem; white-space: nowrap; }

/* ---- Profile header ----------------------------------------------------- */
.ex-prof-hero {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 26px; border-radius: var(--radius-lg, 20px); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff;
}
.ex-prof-hero .ex-avatar { width: 92px; height: 92px; font-size: 2rem; background: rgba(255,255,255,.18); color: #fff; }
.ex-prof-hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.ex-prof-hero .ex-headline { color: rgba(255,255,255,.92); font-size: 1.05rem; margin-top: 4px; }
.ex-prof-hero .ex-meta { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 8px; }
.ex-prof-hero .ex-tag { background: rgba(255,255,255,.2); color: #fff; }
.ex-prof-hero .ex-badge { background: rgba(255,255,255,.22); color: #fff; }
.ex-prof-hero .ex-stars { color: #ffd27a; }
.ex-prof-body { display: grid; gap: 18px; max-width: 860px; margin-top: 18px; }
.ex-prof-section h2 { font-size: 1.15rem; margin: 0 0 10px; }
.ex-prose { line-height: 1.6; white-space: pre-line; }

/* ---- Services ----------------------------------------------------------- */
.ex-services { display: grid; gap: 12px; }
.ex-service { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.ex-svc-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.ex-svc-title { font-weight: 700; }
.ex-svc-meta { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ex-svc-desc { margin-top: 8px; line-height: 1.5; color: var(--ink); }

/* ---- Reviews ------------------------------------------------------------ */
.ex-reviews { display: grid; gap: 10px; }
.ex-review { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.ex-rev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); }

/* ---- Request board ------------------------------------------------------ */
.ex-req-list { display: grid; gap: 12px; }
.ex-req {
  display: flex; align-items: start; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--brand);
  border-radius: 14px; padding: 16px 18px; background: var(--card);
  text-decoration: none; color: inherit;
}
.ex-req:hover { box-shadow: var(--shadow-lg); }
.ex-req-title { font-weight: 700; margin: 0 0 4px; }
.ex-req-meta { color: var(--muted); font-size: .86rem; }

/* ---- Status / payment pills -------------------------------------------- */
.ex-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 700; border-radius: var(--radius-pill, 999px);
  padding: 3px 11px; background: #eef1ef; color: var(--muted);
}
.ex-pill.green  { background: #e8f5ee; color: #137a4b; }
.ex-pill.amber  { background: #fcf3e3; color: #92600e; }
.ex-pill.blue   { background: #e8f0fb; color: #2a4fb0; }
.ex-pill.purple { background: #f3e9fb; color: #7c3aed; }
.ex-pill.red    { background: #fbeae8; color: #b3261e; }
.ex-pill.grey   { background: #eef1ef; color: #5b6b66; }

/* ---- Status timeline ---------------------------------------------------- */
.ex-timeline { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.ex-timeline li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill, 999px);
  font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--brand-tint);
}
.ex-timeline li.done { background: var(--brand); color: #fff; }
.ex-timeline li.current { background: var(--brand-dark); color: #fff; box-shadow: var(--ring); }
.ex-timeline li.cancelled { background: #fbeae8; color: #b3261e; }

/* ---- Key/value rows ----------------------------------------------------- */
.ex-krow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ex-krow strong { color: var(--brand-dark); }
.ex-meta-grid { display: grid; gap: 10px; margin-top: 6px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ex-meta-grid > div { display: grid; gap: 2px; }
.ex-meta-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }

/* ---- Forms -------------------------------------------------------------- */
.ex-form-wrap { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.ex-row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ex-row3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr 1fr; }
.ex-check { display: flex; gap: 8px; align-items: center; }
.ex-cat-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ex-cat-grid label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: .92rem; }
.ex-note {
  background: var(--brand-tint); border-radius: 10px; padding: 10px 12px;
  color: var(--brand-dark); font-size: .92rem;
}
.ex-back { color: var(--muted); text-decoration: none; font-size: .92rem; }
.ex-back:hover { color: var(--brand-dark); }

/* ---- Admin -------------------------------------------------------------- */
.ex-admin-cols { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; align-items: start; margin-top: 16px; }
.ex-toggle-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 720px) {
  .ex-row2, .ex-row3, .ex-admin-cols, .ex-meta-grid { grid-template-columns: 1fr; }
}
