/* ─────────────────────────────────────────────────────────────────────────────
   Fruit Basket — Shared Styleguide
   Loaded in every HTML page before the Tailwind CDN script.
───────────────────────────────────────────────────────────────────────────── */

/* ── A. Color tokens ─────────────────────────────────────────────────────── */
:root {
  --mango-50:  #fffbe8;
  --mango-100: #fff4c2;
  --mango-300: #ffe566;
  --mango-400: #FFCA3A;
  --mango-500: #e6b400;
  --mango-600: #cc9e00;

  --magenta-50:  #fff1f1;
  --magenta-100: #ffd9da;
  --magenta-300: #ff8a8e;
  --magenta-400: #FF595E;
  --magenta-500: #e64449;
  --magenta-600: #cc3337;

  --kiwi-50:  #f4fde8;
  --kiwi-100: #e6fac4;
  --kiwi-300: #b5e566;
  --kiwi-400: #8AC926;
  --kiwi-500: #6fa01e;
  --kiwi-600: #567a17;

  --ocean-50:  #edf6fd;
  --ocean-100: #d0e9f8;
  --ocean-300: #6ab8e6;
  --ocean-400: #1982C4;
  --ocean-500: #146ba3;
  --ocean-600: #105582;

  --plum-50:  #f3eefa;
  --plum-100: #e4d6f5;
  --plum-300: #a888d0;
  --plum-400: #6A4C93;
  --plum-500: #583e7a;
  --plum-600: #453062;

  --bark-50:  #ffffff;
  --bark-700: #444444;
  --bark-800: #111111;
  --bark-900: #000000;
}

/* ── B. Base styles ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: #ffffff; color: #000000; margin: 0; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }

/* ── C. Shared component classes ─────────────────────────────────────────── */

/* Wordmark — "Fruit Basket" logotype in every nav/header */
.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #000000;
  -webkit-text-fill-color: #000000;
  background: none;
}

/* Gradient text — used in dashboard, creator, login, signup, index */
.gradient-text {
  background: linear-gradient(135deg, #e6b400, #FF595E, #FF595E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA button — used in dashboard, login, signup, index */
.cta-btn {
  background: linear-gradient(135deg, #e6b400, #FF595E);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FF595E, #FF595E);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cta-btn:hover::after { opacity: 1; }
.cta-btn span { position: relative; z-index: 1; }

/* Badge — used in admin, creator */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* Progress bar — used in dashboard and popup (popup uses its own classes) */
.progress-bar {
  height: 4px; border-radius: 2px; background: #0000000a;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #e6b400, #FF595E);
  transition: width 0.5s ease;
}

/* Tab button — used in admin and dashboard */
.tab-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #444444;
  transition: all 0.2s;
  cursor: pointer;
}
.tab-btn.active {
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  color: #000000;
  font-weight: 600;
}
.tab-btn:not(.active):hover { background: rgba(0,0,0,0.05); }

/* ── E. Sidebar nav ──────────────────────────────────────────────────────── */
/* Shared between dashboard.html and creator.html via sidebar.js */
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500; width: 100%; text-align: left;
  color: #444444; transition: all 0.2s; border: 1px solid transparent;
  cursor: pointer; background: none;
}
.sidebar-link:hover { background: #0000000a; }
.sidebar-link.active { color: #000000; font-weight: 600; }
.sidebar-link[data-panel="extract"].active   { background: #fff1f1; border-color: #FF595E20; }
.sidebar-link[data-panel="profiles"].active  { background: #fffbe8; border-color: #FFCA3A20; }
.sidebar-link[data-panel="knowledge"].active { background: #f4fde8; border-color: #8AC92620; }
.sidebar-link[data-panel="personas"].active  { background: #edf6fd; border-color: #1982C420; }
.sidebar-link[data-panel="strategy"].active  { background: #fdf4ff; border-color: #d946ef20; }
.sidebar-link[data-panel="skills"].active    { background: #f3eefa; border-color: #6A4C9320; }

/* ── Radar chart interactive points ─────────────────────────────────────── */
.radar-pt .radar-tip { opacity: 0; transition: opacity 0.12s; pointer-events: none; }
.radar-pt:hover .radar-tip { opacity: 1; }

/* ── D. Shared scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #00000020; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00000040; }
