/* =====================================================================
   TalentedHub — shared styles for About / Contact / Category / Legal / 404
   ===================================================================== */

/* ---- Generic page header ---- */
.page-head { text-align: center; padding: 60px 0 14px; }
.page-head .eyebrow { margin-inline: auto; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-top: 16px; }
.page-head .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { max-width: 620px; margin: 16px auto 0; color: var(--text-soft); font-size: 1.12rem; }

/* ---- About ---- */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 36px 0 50px; }
.about-hero img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-hero h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.about-hero p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 16px 0 56px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--text-soft); font-size: .92rem; margin-top: 4px; }

.values { padding: 10px 0 60px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 28px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 16px; }
[data-theme="dark"] .value-icon { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: .96rem; }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 30px 0 64px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: .96rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; min-height: 130px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card .value-icon { margin: 0; flex-shrink: 0; }
.info-card h4 { font-size: 1.02rem; }
.info-card p { color: var(--text-soft); font-size: .92rem; }
.form-note { font-size: .85rem; color: var(--text-faint); margin-top: 10px; }

/* ---- Category page ---- */
.cat-hero { text-align: center; padding: 54px 0 30px; }
.cat-hero .pill { margin-inline: auto; }
.cat-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 14px 0 12px; }
.cat-hero p { max-width: 560px; margin: 0 auto; color: var(--text-soft); }
.cat-feed { padding: 20px 0 50px; }
.cat-feed .post-grid { grid-template-columns: repeat(3, 1fr); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .92rem; color: var(--text-soft); transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .gap { border: none; background: none; }

/* ---- Legal / prose pages ---- */
.legal { max-width: 800px; margin-inline: auto; padding: 20px 0 70px; }
.legal .updated { color: var(--text-faint); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 14px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.18rem; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.8; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 16px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---- Career / Jobs board ---- */
.job-search { display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-md); margin: 8px 0 26px; }
.job-search .search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.job-search .search-field:focus-within { border-color: var(--accent); }
.job-search .search-field svg { color: var(--text-faint); flex-shrink: 0; }
.job-search input { width: 100%; padding: 13px 0; border: none; background: none; outline: none;
  color: var(--text); font-family: inherit; font-size: .96rem; }

.jobs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.jobs-head .count { color: var(--text-faint); font-size: .9rem; }
.sort-select { padding: 8px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; outline: none; }
.sort-select:focus { border-color: var(--accent); }
.jobs-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jobs-controls label.muted { font-size: .85rem; color: var(--text-faint); }

.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card { display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.job-logo { position: relative; overflow: hidden; width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; }
.job-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #fff; padding: 6px; }
.job-main { flex: 1; min-width: 0; }
.job-title { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; margin-bottom: 3px; }
.job-title a:hover { color: var(--accent); }
.job-company { color: var(--text-soft); font-size: .92rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.job-company .dot { opacity: .5; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.job-tag { font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); }
.job-tag.remote { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: #058a78; }
[data-theme="dark"] .job-tag.remote { color: var(--accent-2); }
.job-tag.salary { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
[data-theme="dark"] .job-tag.salary { color: #b9a6ff; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.job-posted { color: var(--text-faint); font-size: .82rem; white-space: nowrap; }

/* ---- Job detail page ---- */
.job-detail { padding-bottom: 60px; }
.job-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; padding-top: 18px; }
.job-hero { display: flex; gap: 20px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.job-logo.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.8rem; }
.job-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.job-hero-company { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); margin-top: 22px; }
.job-body h2 { font-size: 1.3rem; margin-bottom: 14px; }
.job-body p { color: var(--text); line-height: 1.8; }
.job-apply-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 28px; margin-top: 22px; box-shadow: var(--shadow-sm); font-weight: 600; }
.job-side-col { display: flex; flex-direction: column; gap: 22px; }
.job-apply-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.job-meta-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.job-meta-row:last-of-type { border-bottom: none; }
.job-meta-row span { color: var(--text-faint); }
.job-meta-row strong { text-align: right; }

@media (max-width: 900px) {
  .job-detail-grid { grid-template-columns: 1fr; }
  .job-apply-card { position: static; }
}

/* Loading skeletons + messages */
.job-card.skeleton { pointer-events: none; }
.sk-logo, .sk-line { background: var(--surface-2); border-radius: 8px;
  position: relative; overflow: hidden; }
.sk-logo { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.sk-main { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.sk-line { height: 12px; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.job-card.skeleton .sk-logo::after, .job-card.skeleton .sk-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.jobs-message { text-align: center; padding: 40px 20px; color: var(--text-soft);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

@media (max-width: 720px) {
  .job-search { grid-template-columns: 1fr; }
  .job-card { flex-wrap: wrap; }
  .job-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
  .job-side .btn { order: 2; }
}

/* ---- 404 ---- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 14px; }
.notfound p { color: var(--text-soft); max-width: 460px; margin: 0 auto 28px; }
.notfound .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cat-feed .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cat-feed .post-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---- FAQ page ---- */
.faq-wrap { max-width: 820px; margin: 0 auto; padding-bottom: 50px; }
.faq-section { margin-bottom: 32px; }
.faq-section h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1.02rem; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent);
  font-weight: 400; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { color: var(--text-soft); line-height: 1.7; margin: 0; }
.faq-a a { color: var(--accent); font-weight: 600; }
[data-theme="dark"] .faq-a a { color: var(--accent-2); }
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 24px; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.faq-cta strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; }
.faq-cta p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.faq-cta .btn { white-space: nowrap; }

/* ---- Pillar / hub guide pages ---- */
.pillar-page { padding-bottom: 50px; }
.pillar-head { max-width: 760px; margin: 6px auto 22px; text-align: center; }
.pillar-head h1 { font-size: 2.1rem; line-height: 1.2; margin: 8px 0 12px; }
.pillar-lede { color: var(--text-soft); font-size: 1.1rem; line-height: 1.6; }
.pillar-intro { max-width: 760px; margin: 0 auto 10px; font-size: 1.05rem; line-height: 1.75; }
.pillar-intro h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin: 24px 0 10px; }
.pillar-intro p { color: var(--text); margin-bottom: 14px; }
.pillar-section { max-width: 920px; margin: 0 auto 30px; }
.pillar-section > h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin: 0 0 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pillar-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.pillar-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; }
.pillar-card p { color: var(--text-soft); font-size: .94rem; line-height: 1.55; flex: 1; margin: 0 0 12px; }
.pillar-card-link { color: var(--accent); font-weight: 700; font-size: .9rem; }
[data-theme="dark"] .pillar-card-link { color: var(--accent-2); }
.pillar-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar-tool { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 18px; font-weight: 600; font-size: .92rem; color: var(--text); transition: all .2s; }
.pillar-tool:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }
.pillar-cta { max-width: 920px; margin: 4px auto 0; text-align: center; }
@media (max-width: 680px) { .pillar-grid { grid-template-columns: 1fr; } .pillar-head h1 { font-size: 1.7rem; } }

/* Pillar promo (on the Guides page) */
.pillar-promo { margin: 6px auto 32px; }
.pillar-promo .section-title { margin-bottom: 2px; }
.pillar-promo-sub { color: var(--text-soft); margin: 0 0 18px; }
@media (min-width: 920px) { .pillar-promo .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
