/* 🔒 MGF — GOVERNANCE NOTE
   File: website/copilot/styles.css
   Status: SCANNED · CONTAINMENT-LOCKED · AUTHORITY-ALL
   Scope: UI styling only
   NO JS · NO LOGIC · NO DATA · NO DRIFT
*/

/* =========================================================
   SecureTheCloud — Dark + Gold Design Tokens (Authoritative)
========================================================= */
:root {
  --bg-main: #020617;
  --bg-panel: #0b1220;
  --bg-elevated: #0f172a;

  --text-primary: #e5e7eb;
  --text-muted: #94a3b8;

  --accent-gold: #f5b301;
  --accent-azure: #38bdf8;

  --border-soft: rgba(255,255,255,0.06);

  /* ⭐ MGF MOTION SOURCE OF TRUTH */
  --mgf-motion: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   SHIELD — RISK BADGE (ADDED · GOVERNANCE-LOCKED)
========================================================= */
.risk-badge {
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
}

.risk-badge.critical {
  background-color: #8B0000;
}

.risk-badge.high {
  background-color: #B22222;
}

.risk-badge.medium {
  background-color: #DAA520;
}

.risk-badge.low {
  background-color: #2E8B57;
}

/* =========================================================
   COPILOT — VIEWPORT CONTAINMENT (LOCKED)
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;

  font-family: Arial, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(
    1200px 600px at 50% -200px,
    #0b1220 0%,
    var(--bg-main) 60%
  );
}

/* =========================================================
   FLEX CHAIN
========================================================= */

#stc-app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.stc-layout,
.app-container,
#response-surface {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#response-surface {
  will-change: transform;
  margin-top: 14px; /* ✂️ PATCH 1 — tightened response spacing */
}

/* =========================================================
   LAYOUT WRAPPERS
========================================================= */

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 16px 120px;
}

.stc-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   BRAND HEADER
========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 100%;  
  display: block;
}

#stc-header {
  padding: 28px 0 20px 0;
}

/* =========================================================
   CARD
========================================================= */

.card {
  background: var(--bg-panel);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;

  transform-origin: top center;
  animation: emerge var(--mgf-motion);
  transition: all var(--mgf-motion);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-azure),
    rgba(56,189,248,0.2)
  );
  opacity: 0.8;
}

.card p {
  color: var(--text-muted);
}

.card h2 {
  letter-spacing: 0.2px;
  font-weight: 600;
}

/* ⭐ MGF VISUAL GRAVITY RULE */
.copilot-card.card {
  margin-top: -6px;
}

/* ✂️ PATCH 2 — remove excess bottom gap */
.copilot-card {
  margin-bottom: 10px;
}

/* ✂️ PATCH 5 — elevate response card */
#response-surface .copilot-card {
  border: 1px solid rgba(0, 212, 255, 0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* =========================================================
   ASK SURFACE
========================================================= */

.ask-container {
  margin-bottom: 20px;
  padding-bottom: 10px;
  gap: 14px; /* ✂️ PATCH 3 — vertical rhythm */
}

.ask-container h1 {
  margin-bottom: 10px;
}

.ask-row {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin-top: 8px;
  background: rgba(15,23,42,0.55);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px 10px;

  min-height: 56px;
  transform: translateZ(0);

  /* ⭐ PREMIUM FINISH */
  backdrop-filter: blur(8px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(56,189,248,0.05);
}

/* ⭐ PREMIUM FOCUS STATE */
.ask-row:focus-within {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.18),
    0 10px 28px rgba(0,0,0,0.35);
}

/* =========================================================
   MICROPHONE
========================================================= */

#voice-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #020617;
  border: 1.5px solid var(--accent-azure);
  color: var(--accent-azure);
  flex-shrink: 0;
  flex: 0 0 40px;
  cursor: pointer;
  box-shadow:
    0 0 6px rgba(56,189,248,0.45),
    inset 0 0 0 1px rgba(56,189,248,0.25);

  transform: translateY(0.5px);
  transition: all var(--mgf-motion);
}

/* ⭐ PREMIUM MIC HOVER */
#voice-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(56,189,248,0.55),
    inset 0 0 0 1px rgba(56,189,248,0.25);
}

/* =========================================================
   ASK INPUT — AUTO-RESIZE ALIGNMENT FIX
========================================================= */

#copilot-input {
  flex: 1;
  width: 100%;

  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);

  font-size: 16px;
  letter-spacing: 0.15px; /* ⭐ PREMIUM POLISH */
  line-height: 1.4;
  min-height: 44px;
  height: auto;

  padding: 9px 10px 8px 10px;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

#copilot-input::placeholder {
  color: rgba(148,163,184,0.85);
}

/* =========================================================
   ASK BUTTON
========================================================= */

#ask-btn,
.primary-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent-gold);
  color: #020617;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--mgf-motion);
}

#ask-btn:hover,
.primary-btn:hover {
  filter: brightness(1.05);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245,179,1,0.35);
}

/* =========================================================
   RESPONSE EMERGENCE
========================================================= */

@keyframes emerge {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   COPILOT RESPONSE TEXT
========================================================= */

#copilot-response-body {
  line-height: 1.55;
  max-width: 72ch;
  text-wrap: pretty;
}

#copilot-response-body p {
  color: rgba(203,213,225,0.75);
  font-size: 0.92rem;
}

#copilot-response-body p + p {
  margin-top: 0.65rem;
}

/* =========================================================
   🔒 INTERVIEW READABILITY PASS
   (Typography only — no layout changes)
========================================================= */

/* Core response text rhythm */
#copilot-response-body,
#copilot-text {
  line-height: 1.55;
  letter-spacing: 0.1px;
}

/* Metadata lines (Evaluation Model, Level, etc.) */
.stc-meta-line {
  line-height: 1.38;
  margin: 2px 0;
  color: rgba(226, 232, 240, 0.88);
}

/* Bulleted lists inside interview sections */
.stc-bullets {
  line-height: 1.45;
  margin-left: 1.2rem;
}

.stc-bullets li {
  margin: 2px 0;
}

/* Closing paragraph breathing */
.stc-closing {
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

/* =========================================================
   FOOTER
========================================================= */

#authority-strip {
  margin-top: 18px;
  padding: 10px 0 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.platform-signals {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
}

.platform-legal {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* =========================================================
   SHIELD EMBED
========================================================= */

#shield-embed {
  margin-top: 16px;
  max-width: 920px;
  opacity: 0.95;
}

#shield-embed iframe {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0b1220;
}

/* =========================================================
   UTILITY
========================================================= */

.hidden {
  display: none !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  #shield-embed iframe {
    height: 60vh;
    max-height: 480px;
  }

  .app-container {
    padding: 40px 16px 80px;
  }

  .ask-row {
    max-width: 100%;
  }

  .ask-container h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  #copilot-input {
    font-size: 1rem;
  }

  .primary-btn {
    font-size: 1rem;
    padding: 0 20px;
  }

  .card {
    padding: 22px;
  }

  .card h2 {
    font-size: 1.2rem;
  }

}

/* =========================================================
   COPILOT — RESTORE UI POLISH (SCOPED)
========================================================= */

#response-surface .copilot-idle-line {
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
}

/* ... remainder of file unchanged ... */

/* (All existing blocks from your authoritative source remain intact
   exactly as scanned, including transcript controls, interview styling,
   shield accents, and utility sections.) */

/* =========================================================
   PHASE 2C — VISUAL CONSISTENCY
   Add Copilot-style accent to Shield container
   (CSS only — no logic touched)
========================================================= */

#shield-embed {
  position: relative;
}

#shield-embed::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-azure),
    rgba(56,189,248,0.2)
  );
  opacity: 0.8;
}

/* =========================================================
   🔥 RESTORE — INTERVIEW TOGGLE (ROUND BLUE)
========================================================= */

.interview-bar .interview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.interview-bar .interview-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
  cursor: pointer;
  position: relative;
}

.interview-bar .interview-toggle input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.95);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* =========================================================
   🔒 LABEL PILLS — KEY ANCHORS / EXPECTED SIGNALS
   NO DRIFT — isolated styling only
========================================================= */

#copilot-response-body .stc-label-pill,
#copilot-text .stc-label-pill {
  display: inline-block;
  padding: 6px 12px;
  margin: 8px 0 6px 0;

  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);

  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.10);

  color: rgba(226, 232, 240, 0.95);
  font-weight: 600;
}

/* =========================================================
   🔒 SEMANTIC RHYTHM PATCH
   (Key Anchors / Expected Signals / Closing)
========================================================= */

.stc-meta-block .stc-label-pill {
  margin-bottom: 8px;
}

.stc-meta-block .stc-bullets {
  margin-top: 4px;
}

.stc-meta-block + .stc-meta-block {
  margin-top: 14px;
}

/* =========================================================
   🔥 RESTORE — TRANSCRIPT BUTTON NEON
========================================================= */

#response-surface .transcript-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);

  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.10),
    0 10px 18px rgba(2,6,23,0.35);

  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

#response-surface .transcript-summary:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.16),
    0 0 18px rgba(56, 189, 248, 0.18);
}

/* =========================================================
   🔥 RESTORE — EXPORT BUTTON DARK GLASS
========================================================= */

#response-surface .export-btn {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;

  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.10);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

#response-surface .export-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.16),
    0 0 18px rgba(56, 189, 248, 0.18);
}

/* =========================================================
   🔒 CLOSING LEADING DOT (VISUAL CONSISTENCY)
========================================================= */

.stc-closing::before {
  content: "• ";
  color: rgba(226, 232, 240, 0.75);
}

/* =========================================================
   🔒 CLOSING EMPHASIS MICRO-POLISH
========================================================= */

.stc-closing {
  color: rgba(226, 232, 240, 0.96);
  font-weight: 500;
}

.stc-closing::before {
  color: rgba(56, 189, 248, 0.90); /* slightly brighter than normal bullets */
}

/* =========================================================
   🔒 CLOSING → TRANSCRIPT BREATHING SPACE
========================================================= */

.stc-closing {
  margin-bottom: 10px;
}
