/* ===========================================================================
   PatientFlow — interface showcase mockups
   Faithful, always-current light-theme UI mockups of the real portal, framed in
   a browser window. Rendered by the "showcase" block in js/render.js.
   =========================================================================== */

.pf-showcase { margin-top: 44px; }
.pf-sc__tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.pf-sc__tab { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.pf-sc__tab .pf-ico { width: 16px; height: 16px; }
.pf-sc__tab:hover { color: var(--text); border-color: var(--glass-line); }
.pf-sc__tab.is-on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-orange); }

.pf-sc__stage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 900px) { .pf-sc__stage { grid-template-columns: 1fr; } }

/* Feature callouts beside the mockup */
.pf-sc__info h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pf-sc__info > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 10px 0 20px; }
.pf-sc__feats { display: grid; gap: 12px; }
.pf-sc__feat { display: flex; gap: 12px; align-items: flex-start; }
.pf-sc__feat .pf-ico { flex: 0 0 auto; width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.pf-sc__feat strong { font-size: 14.5px; }
.pf-sc__feat p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }

/* ---- Browser window frame ---- */
.pf-win { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); background: #0f1115; transform: perspective(1600px) rotateY(-1deg); }
.pf-win__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #1a1d23; border-bottom: 1px solid rgba(255,255,255,.06); }
.pf-win__dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4a; }
.pf-win__dot:nth-child(1){ background:#ff5f57 } .pf-win__dot:nth-child(2){ background:#febc2e } .pf-win__dot:nth-child(3){ background:#28c840 }
.pf-win__url { margin-left: 12px; flex: 1; font-size: 11.5px; color: #8b93a7; background: #0f1115; border-radius: 6px; padding: 5px 12px; font-family: ui-monospace, monospace; }

/* ---- App shell (light theme, like the real portal) ---- */
.pf-app { display: grid; grid-template-columns: 140px 1fr; background: #f6f7f9; color: #0f1720; min-height: 340px; font-size: 12px; }
.pf-app__side { background: #0d1b2a; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.pf-app__brand { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 800; font-size: 12.5px; padding: 4px 8px 12px; }
.pf-app__brand span { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); display: inline-block; }
.pf-app__nav { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: #9fb0c3; font-weight: 500; }
.pf-app__nav .pf-ico { width: 14px; height: 14px; }
.pf-app__nav.on { background: rgba(254,106,9,.16); color: #ff8a2a; font-weight: 700; }
.pf-app__main { padding: 16px 18px; overflow: hidden; }
.pf-app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pf-app__title { font-size: 15px; font-weight: 800; color: #0f1720; }
.pf-app__pill { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--grad); padding: 5px 11px; border-radius: 999px; }
.pf-card { background: #fff; border: 1px solid #e7eaee; border-radius: 10px; padding: 12px; }

/* stat cards */
.pf-app__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 12px; }
.pf-app__stat .k { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8894a3; }
.pf-app__stat .v { font-size: 17px; font-weight: 800; margin-top: 5px; color: #0f1720; }
.pf-app__stat .v.up { color: #12a150; } .pf-app__stat .v.or { color: #f5620a; }

/* chart */
.pf-chartrow { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.pf-bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; padding-top: 8px; }
.pf-bars i { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .9; }
.pf-legend { display: grid; gap: 8px; align-content: center; }
.pf-legend div { display: flex; justify-content: space-between; font-size: 11px; }
.pf-legend b { color: #0f1720; }
.pf-legend .mut { color: #8894a3; }

/* list rows (appointments / patients) */
.pf-rows { display: grid; gap: 7px; }
.pf-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; background: #fff; border: 1px solid #e7eaee; border-radius: 8px; padding: 8px 10px; }
.pf-av { width: 26px; height: 26px; border-radius: 7px; background: #e9edf2; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #55637a; }
.pf-row .nm { font-weight: 700; font-size: 11.5px; }
.pf-row .sub { color: #8894a3; font-size: 10px; margin-top: 1px; }
.pf-tag { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pf-tag.g { background: #e5f7 ; background: #e6f7ee; color: #12a150; }
.pf-tag.o { background: #fff0e6; color: #f5620a; }
.pf-tag.b { background: #e8f0fe; color: #2b6cff; }

/* invoice mockup */
.pf-inv { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pf-inv__line { display: flex; justify-content: space-between; font-size: 11.5px; padding: 5px 0; border-bottom: 1px dashed #e7eaee; }
.pf-inv__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; color: #0f1720; padding-top: 6px; }
.pf-inv__pay { margin-top: 10px; background: #f0f7ff; border: 1px solid #d8e8ff; border-radius: 8px; padding: 10px; }
.pf-inv__pay .h { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2b6cff; margin-bottom: 6px; }
.pf-inv__pay .r { display: flex; justify-content: space-between; font-size: 10.5px; padding: 2px 0; }
.pf-inv__pay .r span { color: #8894a3; } .pf-inv__pay .r b { color: #0f1720; }

/* chat / automation mockup */
.pf-chat { display: grid; gap: 8px; }
.pf-bub { max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 11px; line-height: 1.4; }
.pf-bub.in { background: #fff; border: 1px solid #e7eaee; border-bottom-left-radius: 3px; }
.pf-bub.out { background: #dcf8c6; margin-left: auto; border-bottom-right-radius: 3px; color: #0b3d1f; }
.pf-bub .who { font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .6; margin-bottom: 3px; }
.pf-auto { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e7eaee; border-radius: 8px; padding: 8px 10px; font-size: 11px; }
.pf-auto .st { width: 8px; height: 8px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 3px #e6f7ee; }
.pf-auto b { font-weight: 700; } .pf-auto .mut { color: #8894a3; margin-left: auto; }

@media (max-width: 560px) {
  .pf-app { grid-template-columns: 1fr; }
  .pf-app__side { flex-direction: row; overflow-x: auto; padding: 10px; }
  .pf-app__brand { display: none; }
  .pf-app__nav span:not(.pf-ico) { display: none; }
  .pf-app__stats { grid-template-columns: repeat(2,1fr); }
  .pf-chartrow { grid-template-columns: 1fr; }
}
