/* UI Kit shared styles — Guju Guru app surfaces.
   Imports the design system tokens. */
@import url('../../colors_and_type.css');

* { box-sizing: border-box; }

body { margin: 0; background: #f6f7f9; }

/* ---------- App-shell tokens ---------- */
.gg-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  font-family: var(--font-ui);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar — clears iOS status bar (time + dynamic island sit at top:11, ~37px tall) */
.gg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  margin-top: 64px; /* clears status bar + island */
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}
.gg-topbar__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.gg-topbar__brand img { width: 24px; height: 24px; border-radius: 6px; }

.gg-stats { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gg-stat {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 9999px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.gg-stat--streak { background: #fff5e6; color: var(--warning-fg); }
.gg-stat--coin   { background: #fff7d6; color: #b45309; }
.gg-stat--heart  { background: #ffe9e9; color: var(--danger-fg); }
.gg-stat--xp     { background: #e8efff; color: var(--xp-fg); }

/* Tab bar */
.gg-tabbar {
  display: flex;
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
  padding: 6px 8px 10px;
}
.gg-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-muted);
  font: 500 11px var(--font-ui);
}
.gg-tab[aria-current="page"] { color: var(--brand-blue); }
.gg-tab svg { width: 22px; height: 22px; }

/* Body scroll area */
.gg-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }

/* Cards */
.gg-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 16px;
}
.gg-card--featured { box-shadow: var(--shadow-3); }

/* Buttons */
.gg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px var(--font-ui);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 0; cursor: pointer;
  transition: background 150ms ease-out, transform 200ms cubic-bezier(0.2,0,0,1);
}
.gg-btn:active { transform: scale(0.98); }
.gg-btn--primary { background: var(--text-charcoal); color: #fff; }
.gg-btn--primary:hover { background: #22282f; }
.gg-btn--brand { background: var(--brand-blue); color: #fff; }
.gg-btn--brand:hover { background: var(--blue-700); }
.gg-btn--secondary { background: var(--bg-light-gray); color: #333; }
.gg-btn--pill { border-radius: 9999px; padding: 10px 18px; }
.gg-btn--block { width: 100%; }

/* Progress */
.gg-progress { height: 8px; background: var(--border-light); border-radius: 9999px; overflow: hidden; }
.gg-progress__fill { height: 100%; background: var(--brand-blue); border-radius: 9999px; }

/* Pills/chips */
.gg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 9999px;
  font: 600 12px var(--font-ui);
  background: rgba(0,0,0,0.05); color: var(--text-strong);
}
.gg-chip[aria-pressed="true"] { background: var(--text-charcoal); color: #fff; }

/* Section heading */
.gg-section-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

/* List rows */
.gg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.gg-row + .gg-row { margin-top: 10px; }

/* Lesson tile */
.gg-tile {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-3);
}
.gg-tile h4 { font: 600 12px var(--font-ui); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; margin: 0; }
.gg-tile h3 { font: 600 22px var(--font-display); margin: 6px 0 4px; }
.gg-tile p  { font: 400 13px var(--font-ui); opacity: 0.92; line-height: 1.45; margin: 0; }

/* Gradient backgrounds for product/lesson cards */
.gg-grad-blue   { background: linear-gradient(135deg, #1456f0, #3daeff); }
.gg-grad-purple { background: linear-gradient(135deg, #7b5cff, #ea5ec1); }
.gg-grad-orange { background: linear-gradient(135deg, #ff8a3d, #ffc06b); }
.gg-grad-pink   { background: linear-gradient(135deg, #ea5ec1, #ff8ab1); }
.gg-grad-green  { background: linear-gradient(135deg, #10b981, #6ee7b7); }
