/* ============================================================
   Confluence Air — Profile page  (cfe-profile.css)
   ------------------------------------------------------------
   Route: frontend.profile.index  →  body[data-route="frontend.profile.index"]
   (route name VERIFIED via router match, not guessed.)
   Scoped by the data-route hook in confluence_v3/app.blade.php.
   Pure CSS: info panel + stat tiles + pill tabs + de-red map btn.
   REVERT: remove the cfe-profile.css <link> from app.blade.php.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Source+Sans+3:wght@400;600;700&family=Roboto+Mono:wght@400;500&display=swap');

body[data-route="frontend.profile.index"]{
  --cfe-navy:#012773;
  --cfe-navy-600:#0a3a8f;
  --cfe-navy-050:#eef1f9;
  --cfe-gold:#f5dc0f;
  --cfe-gold-deep:#c9b400;
  --cfe-ink:#141922;
  --cfe-slate:#5b6576;
  --cfe-line:rgba(1,39,115,.12);
  --cfe-good:#1f7a52;
  --cfe-good-bg:#e6f3ec;
  font-family:"Source Sans 3",system-ui,sans-serif;
}

/* ---- cards ---- */
body[data-route="frontend.profile.index"] .card{
  border:1px solid var(--cfe-line);
  border-radius:16px;
  box-shadow:0 1px 2px rgba(1,39,115,.06), 0 8px 24px rgba(1,39,115,.06);
  overflow:hidden;
}
/* transparent inner wrappers (e.g. the avatar/info sub-card) keep no chrome */
body[data-route="frontend.profile.index"] .card.bg-transparent,
body[data-route="frontend.profile.index"] .card.border-0.shadow-none{
  border:0 !important; box-shadow:none !important; border-radius:0 !important;
}
body[data-route="frontend.profile.index"] .card-header{
  background:var(--cfe-navy);
  color:#fff;
  border-bottom:0;
  font-weight:700;
}
body[data-route="frontend.profile.index"] .card-header h1,
body[data-route="frontend.profile.index"] .card-header h2,
body[data-route="frontend.profile.index"] .card-header h3,
body[data-route="frontend.profile.index"] .card-header h4,
body[data-route="frontend.profile.index"] .card-header h5{ font-family:"Archivo",sans-serif; color:#fff; }
body[data-route="frontend.profile.index"] .card-header i{ color:var(--cfe-gold); }
body[data-route="frontend.profile.index"] .card-footer{
  background:var(--cfe-navy-050);
  border-top:1px solid var(--cfe-line);
  color:var(--cfe-slate);
}

/* ---- stat tiles (.card.text-center) → KPI look ---- */
body[data-route="frontend.profile.index"] .card.text-center .card-body{
  padding:14px 12px;
}
body[data-route="frontend.profile.index"] .card.text-center .card-body h1,
body[data-route="frontend.profile.index"] .card.text-center .card-body h2,
body[data-route="frontend.profile.index"] .card.text-center .card-body h3,
body[data-route="frontend.profile.index"] .card.text-center .card-body h4,
body[data-route="frontend.profile.index"] .card.text-center .card-body h5,
body[data-route="frontend.profile.index"] .card.text-center .card-body .h5{
  font-family:"Archivo",sans-serif;
  font-weight:800;
  color:var(--cfe-navy);
}
/* stat label (the footer caption under each number) */
body[data-route="frontend.profile.index"] .card.text-center .card-footer{
  background:#fff;
  border-top:1px solid var(--cfe-line-2, rgba(1,39,115,.07));
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--cfe-slate);
  font-size:10.5px;
}

/* ---- info-panel table: <th> row labels are content, keep normal case ---- */
body[data-route="frontend.profile.index"] .table tbody th{
  font-family:"Source Sans 3",sans-serif;
  text-transform:none;
  letter-spacing:0;
  color:var(--cfe-ink);
  font-weight:600;
}
body[data-route="frontend.profile.index"] .table td{ vertical-align:middle; }
body[data-route="frontend.profile.index"] .table a{ color:var(--cfe-navy); text-decoration:none; font-weight:600; }
body[data-route="frontend.profile.index"] .table a:hover{ text-decoration:underline; }

/* ---- pill tabs (Profile Details / Type Ratings / Awards / Statistics / PIREPs) ---- */
body[data-route="frontend.profile.index"] .nav-pills .nav-link{
  font-family:"Archivo",sans-serif;
  font-weight:700;
  color:var(--cfe-navy) !important;
  background:var(--cfe-navy-050) !important;
  border:1px solid var(--cfe-line) !important;
  border-radius:10px !important;
  margin:0 3px;
}
body[data-route="frontend.profile.index"] .nav-pills .nav-link:hover{
  background:#e2e8f6 !important;
}
body[data-route="frontend.profile.index"] .nav-pills .nav-link.active{
  color:#fff !important;
  background:var(--cfe-navy) !important;
  border-color:var(--cfe-navy) !important;
}

/* ---- buttons ---- */
/* Edit Profile (primary) → navy */
body[data-route="frontend.profile.index"] .btn-primary{
  background:var(--cfe-navy) !important; border-color:var(--cfe-navy) !important; color:#fff !important;
}
body[data-route="frontend.profile.index"] .btn-primary:hover{
  background:var(--cfe-navy-600) !important; border-color:var(--cfe-navy-600) !important;
}
/* My Flights / PIREPs Map (DBasic::Map widget) → de-red navy */
body[data-route="frontend.profile.index"] .btn-danger:not(.save_flight):not([x-saved-class]){
  background:var(--cfe-navy) !important; border-color:var(--cfe-navy) !important; color:#fff !important;
}
body[data-route="frontend.profile.index"] .btn-danger:not(.save_flight):not([x-saved-class]):hover{
  background:var(--cfe-navy-600) !important; border-color:var(--cfe-navy-600) !important;
}

/* ---- badges ---- */
body[data-route="frontend.profile.index"] .badge.bg-success{ background:var(--cfe-good-bg) !important; color:var(--cfe-good) !important; }

/* ============================================================
   PROFILE B — hero + Overview shell (child override index.blade)
   All scoped to the profile route.
   ============================================================ */
body[data-route="frontend.profile.index"] .cfe-mono{font-family:"Roboto Mono",monospace;font-variant-numeric:tabular-nums}

/* hero */
body[data-route="frontend.profile.index"] .cfe-phero{position:relative;overflow:hidden;border-radius:20px;color:#fff;padding:24px 26px;
  background:radial-gradient(1100px 280px at 12% -40%, rgba(255,255,255,.10), transparent 60%), linear-gradient(135deg,#012773 0%,#0a3a8f 100%);
  box-shadow:0 12px 40px rgba(1,39,115,.22)}
body[data-route="frontend.profile.index"] .cfe-phero::after{content:"";position:absolute;right:-60px;top:-60px;width:280px;height:280px;background:radial-gradient(circle, rgba(245,220,15,.14), transparent 70%);pointer-events:none}
body[data-route="frontend.profile.index"] .cfe-phero-top{display:flex;gap:20px;align-items:center;flex-wrap:wrap;position:relative;z-index:1}
body[data-route="frontend.profile.index"] .cfe-phero-avatar{width:92px;height:92px;border-radius:18px;object-fit:cover;border:2px solid rgba(255,255,255,.35);flex:0 0 auto;background:#0a3a8f}
body[data-route="frontend.profile.index"] .cfe-phero-id{min-width:0;flex:1}
body[data-route="frontend.profile.index"] .cfe-eyebrow{font-family:"Archivo",sans-serif;font-weight:700;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#f5dc0f}
body[data-route="frontend.profile.index"] .cfe-phero-name{font-family:"Archivo",sans-serif;font-weight:800;font-size:32px;line-height:1.04;margin:2px 0 6px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body[data-route="frontend.profile.index"] .cfe-idbadge{font-family:"Roboto Mono",monospace;font-size:13px;font-weight:500;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:8px;padding:3px 9px}
body[data-route="frontend.profile.index"] .cfe-rank-insignia{height:26px;width:auto;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
body[data-route="frontend.profile.index"] .cfe-phero-meta{display:flex;gap:16px;flex-wrap:wrap;color:rgba(255,255,255,.82);font-size:13.5px;font-weight:600}
body[data-route="frontend.profile.index"] .cfe-phero-meta i{opacity:.7;margin-right:5px}
body[data-route="frontend.profile.index"] .cfe-phero-meta a{color:#fff;text-decoration:none}
body[data-route="frontend.profile.index"] .cfe-phero-meta a:hover{text-decoration:underline}
body[data-route="frontend.profile.index"] .cfe-phero-actions{display:flex;gap:8px;align-items:center;position:relative;z-index:1;margin-left:auto}
body[data-route="frontend.profile.index"] .cfe-iconbtn{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);color:#fff;text-decoration:none}
body[data-route="frontend.profile.index"] .cfe-iconbtn:hover{background:rgba(255,255,255,.18)}
body[data-route="frontend.profile.index"] .cfe-btn-gold{font-family:"Archivo",sans-serif;font-weight:700;font-size:13px;border-radius:10px;padding:9px 15px;background:#f5dc0f;color:#012773;text-decoration:none;display:inline-flex;gap:7px;align-items:center;border:1px solid #c9b400}
body[data-route="frontend.profile.index"] .cfe-btn-gold:hover{background:#ffe62e}

/* hero KPI strip */
body[data-route="frontend.profile.index"] .cfe-pkpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:20px;position:relative;z-index:1}
body[data-route="frontend.profile.index"] .cfe-pkpi{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px 14px}
body[data-route="frontend.profile.index"] .cfe-pkpi .v{font-family:"Archivo",sans-serif;font-weight:800;font-size:21px;line-height:1;color:#fff}
body[data-route="frontend.profile.index"] .cfe-pkpi .v small{font-size:12px;opacity:.7;font-weight:600}
body[data-route="frontend.profile.index"] .cfe-pkpi .l{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:rgba(255,255,255,.7);font-weight:700;margin-top:6px}
body[data-route="frontend.profile.index"] .cfe-pkpi .prev{font-size:11px;color:rgba(255,255,255,.55);margin-top:3px}
@media(max-width:900px){body[data-route="frontend.profile.index"] .cfe-pkpis{grid-template-columns:repeat(2,1fr)}}

/* tabs (override the earlier nav-pills rules for the new pill row) */
body[data-route="frontend.profile.index"] .cfe-ptabs{gap:6px;flex-wrap:wrap;border:0}
body[data-route="frontend.profile.index"] .cfe-ptabs .nav-link{font-family:"Archivo",sans-serif;font-weight:700;font-size:13px;color:#012773 !important;background:#fff !important;border:1px solid rgba(1,39,115,.12) !important;border-radius:11px !important;padding:8px 15px !important;margin:0}
body[data-route="frontend.profile.index"] .cfe-ptabs .nav-link:hover{background:#eef1f9 !important}
body[data-route="frontend.profile.index"] .cfe-ptabs .nav-link.active{color:#fff !important;background:#012773 !important;border-color:#012773 !important}

/* generic profile-B card */
body[data-route="frontend.profile.index"] .cfe-card{background:#fff;border:1px solid rgba(1,39,115,.12);border-radius:16px;box-shadow:0 1px 2px rgba(1,39,115,.05),0 10px 26px rgba(1,39,115,.06);overflow:hidden;margin-bottom:16px}
body[data-route="frontend.profile.index"] .cfe-card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(1,39,115,.12);flex-wrap:wrap}
body[data-route="frontend.profile.index"] .cfe-card-h h3{font-family:"Archivo",sans-serif;font-weight:800;font-size:16px;margin:0;color:#141922}
body[data-route="frontend.profile.index"] .cfe-card-h .sub{font-size:12.5px;color:#5b6576;font-weight:600}
body[data-route="frontend.profile.index"] .cfe-card-b{padding:18px}
body[data-route="frontend.profile.index"] .cfe-pill{font-size:11px;font-weight:700;color:#012773;background:#eef1f9;border:1px solid rgba(1,39,115,.12);border-radius:999px;padding:4px 10px}
body[data-route="frontend.profile.index"] .cfe-empty{text-align:center;color:#5b6576;font-weight:600;padding:24px}

/* snapshot */
body[data-route="frontend.profile.index"] .cfe-snap{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){body[data-route="frontend.profile.index"] .cfe-snap{grid-template-columns:1fr}}
body[data-route="frontend.profile.index"] .cfe-stat{border:1px solid rgba(1,39,115,.12);border-radius:14px;padding:15px 16px;position:relative}
body[data-route="frontend.profile.index"] .cfe-stat .cap{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#5b6576;font-weight:700}
body[data-route="frontend.profile.index"] .cfe-stat .big{font-family:"Archivo",sans-serif;font-weight:800;font-size:29px;line-height:1;margin:9px 0 2px;color:#012773}
body[data-route="frontend.profile.index"] .cfe-stat .unit{font-size:12px;color:#5b6576;font-weight:600}
body[data-route="frontend.profile.index"] .cfe-stat .foot{margin-top:12px;padding-top:10px;border-top:1px solid rgba(1,39,115,.12);display:flex;justify-content:space-between;font-size:12px;color:#5b6576;font-weight:600}
body[data-route="frontend.profile.index"] .cfe-stat .foot b{color:#141922;font-family:"Roboto Mono",monospace}
body[data-route="frontend.profile.index"] .cfe-stat .glyph{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:10px;background:#eef1f9;display:flex;align-items:center;justify-content:center;color:#012773;font-size:14px}

/* momentum + bests */
body[data-route="frontend.profile.index"] .cfe-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:900px){body[data-route="frontend.profile.index"] .cfe-split{grid-template-columns:1fr}}
body[data-route="frontend.profile.index"] .cfe-mrow{margin-bottom:14px}
body[data-route="frontend.profile.index"] .cfe-mrow .top{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin-bottom:6px}
body[data-route="frontend.profile.index"] .cfe-mrow .top b{font-family:"Roboto Mono",monospace;color:#141922}
body[data-route="frontend.profile.index"] .cfe-bar{height:8px;border-radius:999px;background:#eef1f9;overflow:hidden}
body[data-route="frontend.profile.index"] .cfe-bar > span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#012773,#0a3a8f)}
body[data-route="frontend.profile.index"] .cfe-note{font-size:11.5px;color:#5b6576;margin-top:12px}
body[data-route="frontend.profile.index"] .cfe-bests{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body[data-route="frontend.profile.index"] .cfe-best{border:1px solid rgba(1,39,115,.12);border-radius:12px;padding:12px 13px}
body[data-route="frontend.profile.index"] .cfe-best .t{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#5b6576;font-weight:700;display:flex;justify-content:space-between;align-items:center}
body[data-route="frontend.profile.index"] .cfe-best .v{font-family:"Archivo",sans-serif;font-weight:800;font-size:20px;color:#012773;margin-top:6px}
body[data-route="frontend.profile.index"] .cfe-best .s{font-size:11.5px;color:#5b6576;margin-top:2px}
body[data-route="frontend.profile.index"] .cfe-dot{width:16px;height:16px;border-radius:50%;background:#e6f3ec;color:#1f7a52;display:inline-flex;align-items:center;justify-content:center;font-size:8px}

/* awards grid (carried partial) polish */
body[data-route="frontend.profile.index"] #awards .card{border-radius:14px;overflow:hidden}
body[data-route="frontend.profile.index"] #awards .card-footer{background:#012773;color:#fff;border-top:0}
body[data-route="frontend.profile.index"] #awards .card-footer:last-child{background:#eef1f9;color:#5b6576;font-weight:600}

/* ============================================================
   PROFILE B — Statistics tab polish (carried PersonalStats tiles)
   Turns the stock grey widget cards into clean brand KPI tiles.
   ============================================================ */
body[data-route="frontend.profile.index"] #stats .card{
  border:1px solid rgba(1,39,115,.12) !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 1px 2px rgba(1,39,115,.05) !important;
  margin-bottom:10px;
}
body[data-route="frontend.profile.index"] #stats .card-body{
  color:#012773 !important;
  font-family:"Archivo",sans-serif;
  font-weight:800;
  font-size:18px;
  padding:12px 10px 6px !important;
}
body[data-route="frontend.profile.index"] #stats .card-footer{
  background:#eef1f9 !important;
  color:#5b6576 !important;
  border-top:1px solid rgba(1,39,115,.10) !important;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:10px !important;
}
body[data-route="frontend.profile.index"] #stats hr{
  border-color:rgba(1,39,115,.12);
  opacity:1;
  margin:14px 0;
}
