/* =====================================================================
   GenieAI Academy — assets/preview.css
   Styles for the preview-mode indicator ONLY.

   A separate file on purpose: Module 1 is signed off and styles.css is
   frozen, so nothing here edits an existing rule. Every selector below is
   namespaced .flf-preview-*, which appears nowhere else in the codebase, and
   the markup it styles only exists inside a preview session.
   ===================================================================== */

.flf-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 9999px;
  border: 1px solid #F0A000;
  background: #FFF8E0;
  color: #6B4A00;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.flf-preview-chip--floating {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.flf-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #F0A000;
  flex: none;
}

.flf-preview-exit {
  appearance: none;
  border: 1px solid #E0B252;
  background: #FFFFFF;
  color: #6B4A00;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
}

.flf-preview-exit:hover { background: #FFF4CC; }
.flf-preview-exit:focus-visible { outline: 2px solid #F0A000; outline-offset: 2px; }

/* The label is the first thing to go when the header runs out of room; the dot
   and the exit control stay, so the state is never ambiguous on a phone. */
@media (max-width: 720px) {
  .flf-preview-label { display: none; }
  .flf-preview-chip { padding-left: 10px; }
}

@media (prefers-color-scheme: dark) {
  .flf-preview-chip { background: #3A2E10; color: #FFD060; border-color: #6E5500; }
  .flf-preview-exit { background: transparent; color: #FFD060; border-color: #6E5500; }
  .flf-preview-exit:hover { background: #4A3A14; }
}
