/* ===========================================================================
   gps-extras.css
   Styles for: Author byline (A3), Author card (C2), Funds Guarantee banner (FG2),
   author profile page, and the funds-guarantee explainer page.

   Palette locked to Design #14 (no new colours introduced):
     dark gradient : linear-gradient(135deg,#18181b 0%,#27272a 100%)
     gold accent   : #fbbf24
     amber link    : #d97706  (var --amber)
     body text     : #3f3f46    muted: #71717a (var --dm)    border: #e4e4e7
   All selectors are namespaced .gps-* so nothing here can leak into or
   override existing site styles.
   =========================================================================== */

/* shared monogram / photo avatar ------------------------------------------- */
.gps-author-avatar{
  display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;vertical-align:middle;
}
.gps-author-monogram{
  background:linear-gradient(135deg,#27272a,#52525b);
  color:#fff;font-weight:800;line-height:1;font-family:inherit;
}

/* ===========================================================================
   1. BYLINE A3 — stacked bar inside the dark article hero
   Lives inside .article-hero (white text on dark gradient). White name,
   gold role, semi-transparent date — matches .article-hero text treatment.
   =========================================================================== */
.gps-byline-stack{
  display:flex;align-items:center;gap:14px;margin-top:6px;
}
.gps-byline-stack .gps-author-avatar{
  border:2px solid rgba(255,255,255,0.14);
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
}
.gps-byline-stack-name{
  font-size:16px;font-weight:800;line-height:1.2;
}
.gps-byline-name{
  color:#fff;text-decoration:none;
  text-shadow:0 1px 3px rgba(0,0,0,0.5);
  transition:color .15s;
}
.gps-byline-name:hover{ color:#fbbf24; }
.gps-byline-name-plain{ color:#fff; }
.gps-byline-stack-meta{
  font-size:13px;margin-top:2px;
  color:rgba(255,255,255,0.7);
  text-shadow:0 1px 3px rgba(0,0,0,0.45);
}
.gps-byline-role{ color:#fbbf24;font-weight:700; }
.gps-byline-dot{ opacity:0.5;margin:0 2px; }

/* ===========================================================================
   2. AUTHOR CARD C2 — dark + gold banner at the END of an article.
   Sits inside the light .article-content column.
   =========================================================================== */
.gps-authorcard{
  display:flex;gap:18px;align-items:center;flex-wrap:wrap;
  background:linear-gradient(135deg,#18181b 0%,#27272a 100%);
  color:#fff;border-radius:16px;padding:24px 26px;
  position:relative;overflow:hidden;margin:36px 0 8px;
}
.gps-authorcard::after{
  content:"";position:absolute;right:-30px;top:-30px;width:180px;height:180px;
  background:radial-gradient(circle,rgba(217,119,6,0.18),transparent 70%);
  pointer-events:none;
}
.gps-authorcard .gps-author-avatar{
  border:2px solid rgba(255,255,255,0.14);position:relative;z-index:1;
}
.gps-authorcard-info{ position:relative;z-index:1;min-width:0; }
.gps-authorcard-name{ font-size:19px;font-weight:800;line-height:1.2; }
.gps-authorcard-name a{ color:#fff;text-decoration:none;transition:color .15s; }
.gps-authorcard-name a:hover{ color:#fbbf24; }
.gps-authorcard-role{
  color:#fbbf24;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.6px;margin-top:3px;
}
.gps-authorcard-bio{
  color:rgba(255,255,255,0.72);font-size:13.5px;line-height:1.6;
  margin-top:9px;max-width:620px;
}
.gps-authorcard-link{
  display:inline-block;margin-top:12px;font-size:13px;font-weight:700;
  color:#fbbf24;text-decoration:none;
}
.gps-authorcard-link:hover{ text-decoration:underline; }

/* ===========================================================================
   3. FUNDS GUARANTEE BANNER FG2 — dark + gold. Apps & Clubs pages only.
   =========================================================================== */
.gps-fg-banner{
  display:flex;gap:18px;align-items:center;flex-wrap:wrap;
  background:linear-gradient(135deg,#18181b 0%,#27272a 100%);
  border:1px solid #3f3f46;border-radius:16px;padding:22px 26px;
  color:#fff;position:relative;overflow:hidden;margin:0 0 24px;
}
.gps-fg-banner::after{
  content:"";position:absolute;right:-40px;top:-40px;width:200px;height:200px;
  background:radial-gradient(circle,rgba(251,191,36,0.18),transparent 70%);
  pointer-events:none;
}
.gps-fg-banner .gps-fg-shield{
  width:58px;height:58px;flex-shrink:0;position:relative;z-index:1;
}
.gps-fg-text{ position:relative;z-index:1;flex:1;min-width:0; }
.gps-fg-text h3{
  font-size:20px;font-weight:900;line-height:1.2;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;
}
.gps-fg-pill{
  background:#fbbf24;color:#18181b;font-size:11px;font-weight:800;
  padding:2px 9px;border-radius:999px;text-transform:uppercase;letter-spacing:.5px;
}
.gps-fg-text p{
  color:rgba(255,255,255,0.74);font-size:14px;line-height:1.6;
  margin:6px 0 0;max-width:640px;
}
.gps-fg-learn{
  display:inline-block;margin-top:12px;background:#fbbf24;color:#18181b;
  font-size:13px;font-weight:800;padding:9px 18px;border-radius:9px;
  text-decoration:none;transition:transform .15s,box-shadow .15s;
}
.gps-fg-learn:hover{ transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,0.3); }

/* sidebar variant of the shield card is not used (FG2 only), but the shield
   class stays generic so the explainer page can reuse it. */

/* ===========================================================================
   4. AUTHOR PROFILE PAGE  (/authors/{slug})
   =========================================================================== */
.gps-profile-hero{
  background:linear-gradient(135deg,#18181b 0%,#27272a 100%);
  color:#fff;position:relative;overflow:hidden;
  padding:44px 28px;
}
.gps-profile-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 80% 30%,rgba(217,119,6,0.10),transparent 70%);
  pointer-events:none;
}
.gps-profile-inner{
  max-width:1000px;margin:0 auto;position:relative;z-index:1;
  display:flex;gap:26px;align-items:center;flex-wrap:wrap;
}
.gps-profile-hero .gps-author-avatar{
  width:104px;height:104px;border-radius:26px;font-size:38px;
  border:2px solid rgba(255,255,255,0.15);
  box-shadow:0 8px 28px rgba(0,0,0,0.4);
}
.gps-profile-hero h1{
  font-size:30px;font-weight:900;letter-spacing:-.5px;line-height:1.1;
  text-shadow:0 1px 3px rgba(0,0,0,0.5);
}
.gps-profile-role{
  color:#fbbf24;font-size:13px;font-weight:700;
  text-transform:uppercase;letter-spacing:.6px;margin-top:5px;
}
.gps-profile-bio{
  color:rgba(255,255,255,0.78);font-size:15px;line-height:1.6;
  margin-top:12px;max-width:600px;
  text-shadow:0 1px 3px rgba(0,0,0,0.4);
}
.gps-profile-stat{ margin-top:12px;font-size:13px;color:rgba(255,255,255,0.5); }

.gps-profile-body{ max-width:1000px;margin:32px auto 0;padding:0 28px; }
.gps-profile-heading{
  font-size:22px;font-weight:800;letter-spacing:-.3px;
  display:flex;align-items:center;gap:14px;margin-bottom:18px;
}
.gps-profile-heading span{ flex:1;height:1px;background:var(--br); }
.gps-profile-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;
}
.gps-pa-card{
  background:var(--card);border:1px solid var(--br);border-radius:14px;
  overflow:hidden;text-decoration:none;color:inherit;transition:all .25s;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);display:block;
}
.gps-pa-card:hover{ transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,0.08); }
.gps-pa-thumb{ width:100%;height:130px;object-fit:cover;display:block; }
.gps-pa-thumb-ph{
  width:100%;height:130px;background:var(--hover);
  display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--dm);
}
.gps-pa-body{ padding:14px 16px; }
.gps-pa-cat{
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;
  color:var(--amber);
}
.gps-pa-title{
  font-size:15px;font-weight:700;line-height:1.4;margin-top:4px;color:var(--tx);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.gps-pa-date{ font-size:12px;color:var(--dm);margin-top:6px; }

/* ===========================================================================
   5. FUNDS GUARANTEE EXPLAINER PAGE  (/funds-guarantee)
   =========================================================================== */
.gps-fgp-hero{
  background:linear-gradient(135deg,#18181b 0%,#27272a 100%);
  color:#fff;position:relative;overflow:hidden;padding:52px 28px;text-align:center;
}
.gps-fgp-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% 0%,rgba(251,191,36,0.12),transparent 70%);
  pointer-events:none;
}
.gps-fgp-hero-inner{ max-width:760px;margin:0 auto;position:relative;z-index:1; }
.gps-fgp-hero .gps-fg-shield{ width:64px;height:64px;margin:0 auto 16px;display:block; }
.gps-fgp-hero h1{
  font-size:32px;font-weight:900;letter-spacing:-.6px;line-height:1.15;
  text-shadow:0 1px 3px rgba(0,0,0,0.5);
}
.gps-fgp-hero .gps-fgp-cap{
  display:inline-block;margin-top:14px;background:#fbbf24;color:#18181b;
  font-size:14px;font-weight:800;padding:7px 18px;border-radius:999px;
}
.gps-fgp-hero .gps-fgp-lede{
  color:rgba(255,255,255,0.78);font-size:16px;line-height:1.6;margin-top:16px;
  text-shadow:0 1px 3px rgba(0,0,0,0.4);
}
.gps-fgp-body{ max-width:760px;margin:40px auto;padding:0 28px; }
.gps-fgp-card{
  background:var(--card);border:1px solid var(--br);border-radius:16px;
  padding:8px 28px;box-shadow:0 2px 12px rgba(0,0,0,0.05);
}
.gps-fgp-item{ padding:24px 0;border-bottom:1px solid var(--br);display:flex;gap:18px;align-items:flex-start; }
.gps-fgp-item:last-child{ border-bottom:none; }
.gps-fgp-ico{
  width:40px;height:40px;border-radius:11px;flex-shrink:0;
  background:linear-gradient(135deg,#18181b,#27272a);color:#fbbf24;
  display:flex;align-items:center;justify-content:center;font-size:19px;
}
.gps-fgp-item h2{
  font-size:18px;font-weight:800;color:var(--tx);margin:0 0 6px;line-height:1.3;
}
.gps-fgp-item p{ font-size:15px;line-height:1.7;color:#3f3f46;margin:0; }
.gps-fgp-item p + p{ margin-top:8px; }
.gps-fgp-cta{
  text-align:center;margin-top:28px;
}
.gps-fgp-cta a{
  display:inline-flex;align-items:center;gap:9px;
  background:#fbbf24;color:#18181b;font-size:16px;font-weight:800;
  padding:14px 28px;border-radius:11px;text-decoration:none;
  transition:transform .15s,box-shadow .15s;
}
.gps-fgp-cta a:hover{ transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,0.18); }
.gps-fgp-fine{
  font-size:12.5px;color:var(--dm);text-align:center;margin-top:18px;line-height:1.6;
  max-width:620px;margin-left:auto;margin-right:auto;
}

/* ===========================================================================
   6. ADMIN — authors manager + dropdown helpers
   (Loaded only on admin pages alongside admin.css.)
   =========================================================================== */
.gps-adm-authors{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;
}
.gps-adm-author{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;
  display:flex;gap:13px;align-items:flex-start;
}
.gps-adm-author .gps-author-avatar{
  width:48px;height:48px;border-radius:11px;font-size:18px;
}
.gps-adm-author .gps-adm-nm{ font-weight:800;font-size:15px;color:#0f172a; }
.gps-adm-author .gps-adm-role{ font-size:12px;color:#64748b;margin-top:1px; }
.gps-adm-author .gps-adm-count{ font-size:12px;color:#94a3b8;margin-top:6px; }
.gps-adm-author .gps-adm-acts{ margin-top:9px;display:flex;gap:10px; }
.gps-adm-author .gps-adm-acts a{ font-size:12px;font-weight:600;color:#2563eb;text-decoration:none; }
.gps-adm-author .gps-adm-acts a.del{ color:#dc2626; }

/* responsive */
@media (max-width:768px){
  .gps-profile-inner{ gap:18px; }
  .gps-profile-hero .gps-author-avatar{ width:84px;height:84px;font-size:30px;border-radius:20px; }
  .gps-profile-hero h1{ font-size:25px; }
  .gps-fgp-hero h1{ font-size:26px; }
}
