/*
 * .brtr — Shared Frame & Sidebar
 * Reusable app-frame chrome shared by Hero dashboard, S3 prototype, S4 mentors.
 * Includes: sidebar, sidebar navigation, separator, labels, brand mark,
 *           frame border gradient, inner grid, top bar, content area.
 */


/* ================================================================
   SIDEBAR (hero uses .f-side-*, prototypes use .proto-side-*)
   Both share identical visual rules; only class names differ
   because HTML was built incrementally.
   ================================================================ */

/* --- Hero sidebar --- */
.f-side {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-t);
  padding: 16px 12px;
  font-size: 13px;
}

.f-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
}

/* Sidebar brand mark — metallic copper gradient text */
.f-side-brand {
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.f-side-chevron { font-size: 9px; color: var(--text-4); }

.f-side-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.f-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(26,24,22,0.35);
  cursor: default;
}

.f-side-link--on {
  background: rgba(255,255,255,0.7);
  color: rgba(26,24,22,0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(184,146,46,0.1);
}

.f-side-sep {
  height: 1px;
  background: var(--border-t);
  margin: 12px 0;
}

.f-side-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26,24,22,0.2);
  padding: 0 10px 6px;
}

/* Sidebar mini avatars */
.f-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  margin-right: 6px;
  flex-shrink: 0;
}
.f-avatar--amber  { background: var(--gold-bg);   color: #9a7a20; }
.f-avatar--green  { background: var(--silver-bg);  color: var(--silver-text); }
.f-avatar--purple { background: var(--copper-bg);  color: var(--copper-text); }


/* --- Prototype sidebar (S3, S4) --- */
.proto-side {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-t);
  padding: 16px 12px;
  font-size: 13px;
}

.proto-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
}

.proto-side__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.proto-side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(26,24,22,0.35);
  cursor: default;
}

.proto-side__link--on {
  background: rgba(255,255,255,0.7);
  color: rgba(26,24,22,0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(184,146,46,0.1);
}

.proto-side__team {
  gap: 8px;
}

.proto-side__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proto-side__dot--amber { background: rgba(184,146,46,0.5); }
.proto-side__dot--copper { background: rgba(160,104,48,0.5); }

.proto-side__badge {
  font-size: 10px;
  color: rgba(26,24,22,0.2);
  margin-left: auto;
}


/* ================================================================
   MENTOR AVATARS (shared across hero, s3, s4)
   ================================================================ */
.f-mentor-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.f-mentor-av--lg { width: 40px; height: 40px; font-size: 13px; }
.f-mentor-av--amber {
  background: linear-gradient(135deg, var(--gold-bg-strong) 0%, rgba(160,104,48,0.08) 100%);
  color: #9a7a20;
  box-shadow: 0 0 8px var(--gold-glow);
}
.f-mentor-av--green {
  background: linear-gradient(135deg, var(--silver-bg-strong) 0%, rgba(100,100,110,0.06) 100%);
  color: var(--silver-text);
  box-shadow: 0 0 8px rgba(122,122,128,0.04);
}
.f-mentor-av--purple {
  background: linear-gradient(135deg, var(--copper-bg-strong) 0%, rgba(140,90,40,0.08) 100%);
  color: var(--copper-text);
  box-shadow: 0 0 8px var(--copper-glow);
}
.f-mentor-av--coral {
  background: linear-gradient(135deg, var(--copper-bg-strong) 0%, rgba(184,146,46,0.08) 100%);
  color: var(--copper-text);
  box-shadow: 0 0 8px var(--copper-glow);
}

/* Online indicator dot */
.f-online {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 6px rgba(122,122,128,0.4);
  margin-left: 4px;
  vertical-align: middle;
  animation: onlinePulse 2s ease-in-out infinite;
}

.f-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ================================================================
   PROTO AVATARS (team member circles in S3 tags, S4 assignment)
   ================================================================ */
.proto-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  margin-right: -6px;
  border: 2px solid var(--bg-white);
  position: relative;
}
.proto-av--sm { width: 22px; height: 22px; font-size: 7px; margin-right: 0; border: none; }
.proto-av--amber  { background: var(--gold-bg-strong);   color: #9a7a20; }
.proto-av--copper { background: var(--copper-bg-strong);  color: var(--copper-text); }
.proto-av--silver { background: var(--silver-bg-strong);  color: var(--silver-text); }


/* ================================================================
   SHARED FRAME CHROME (border gradient, inner grid, top bar, content)
   Used by: hero (.frame-*), S3 & S4 (.proto-*)
   ================================================================ */

/* --- S3/S4 prototype frames --- */
.proto-bleed {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.proto-outer {
  position: relative;
  max-width: var(--frame-max);
  width: 100%;
  padding: 0 var(--frame-pad);
}

.proto-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 12px;
  padding: 1px;
  background: var(--frame-border);
  box-shadow: var(--frame-shadow);
}

.proto-inner {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 520px;
  background: var(--bg-white);
  border-radius: 11px;
  overflow: hidden;
}

/* Main view area */
.proto-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-view);
  min-height: 0;
  overflow: hidden;
}

/* Top bar */
.proto-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-t);
  flex-shrink: 0;
}

.proto-bar__title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,24,22,0.85);
}

.proto-bar__sub {
  font-size: 12px;
  color: rgba(26,24,22,0.3);
}

/* Content area */
.proto-content {
  flex: 1;
  padding: 32px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.08) transparent;
}

.proto-content::-webkit-scrollbar { width: 4px; }
.proto-content::-webkit-scrollbar-track { background: transparent; }
.proto-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.proto-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }

/* Interactive label above prototypes */
.proto-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  opacity: 0.8;
  padding-left: 34px;
  margin-top: 72px;
  margin-bottom: 0;
}
