/* Soltori design tokens — friendly/playful for high schoolers */

:root {
  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Color — warm, sunrise-inspired */
  --bg: #FBF6EE;          /* warm off-white */
  --bg-tint: #F5EEE1;     /* slightly deeper warm */
  --surface: #FFFFFF;
  --surface-2: #FCF8F1;
  --ink: #11203F;         /* deep navy from logo */
  --ink-soft: #3B4A6B;
  --ink-muted: #6F7B95;
  --line: rgba(17, 32, 63, 0.08);
  --line-strong: rgba(17, 32, 63, 0.14);

  /* Accents */
  --sun: #F59E2E;          /* sunrise amber */
  --sun-deep: #E07A1F;
  --sun-soft: #FFE9C9;
  --aurora: #2FAE7B;       /* aurora green */
  --aurora-soft: #CDEFDD;
  --sky: #5390E0;          /* aurora blue */
  --sky-soft: #DBE7FA;
  --plum: #B854A6;         /* aurora pink */
  --plum-soft: #F4DCEE;

  /* Medals */
  --bronze: #C97534;
  --bronze-soft: #F8DBBE;
  --silver: #8A93A6;
  --silver-soft: #E4E7EE;
  --gold: #D9A41E;
  --gold-soft: #FBEDB7;
  --platinum: #5FA9C7;
  --platinum-soft: #D2EAF3;
  --krypto: #19B884;
  --krypto-soft: #C7F1DF;

  /* States */
  --ok: #2FAE7B;
  --warn: #E08A1F;
  --bad: #D14F58;
  --info: #5390E0;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — soft, low spread */
  --shadow-sm: 0 1px 2px rgba(17, 32, 63, .05), 0 1px 1px rgba(17, 32, 63, .04);
  --shadow-md: 0 4px 10px rgba(17, 32, 63, .06), 0 2px 4px rgba(17, 32, 63, .04);
  --shadow-lg: 0 12px 32px rgba(17, 32, 63, .08), 0 4px 10px rgba(17, 32, 63, .04);
  --shadow-glow: 0 8px 24px rgba(245, 158, 46, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.font-mono { font-family: var(--font-mono); }

/* Frame (each artboard) */
.frame {
  width: 100%;
  height: 100%;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}
.app-header .breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.app-header .breadcrumb .sep { opacity: .4; }
.app-header .right { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.app-header .avatar {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--sun), var(--plum));
  color: white; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}

/* Brand mark */
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(155deg, #1B2E55 0%, #11203F 50%, #0A1530 100%);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -6px -6px auto -6px;
  height: 18px;
  background: linear-gradient(90deg, #2FAE7B 0%, #5390E0 50%, #B854A6 100%);
  border-radius: 50%;
  filter: blur(4px);
  opacity: .65;
}
.brand-mark .sun {
  position: relative;
  z-index: 1;
  width: 14px; height: 7px;
  border-radius: 14px 14px 0 0;
  background: radial-gradient(ellipse at 50% 100%, #FFD27A, var(--sun) 60%, var(--sun-deep));
  align-self: end;
  margin-bottom: 4px;
  box-shadow: 0 0 12px rgba(245, 158, 46, .6);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name .o { color: var(--sun); }

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #1A2C52; box-shadow: var(--shadow-md); }
.btn-sun {
  background: var(--sun);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-sun:hover { background: var(--sun-deep); }
.btn-go {
  background: var(--aurora);
  color: white;
  box-shadow: 0 6px 18px rgba(47, 174, 123, 0.28);
}
.btn-go:hover { background: #259665; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

/* Medal pills */
.medal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.medal .dot {
  width: 14px; height: 14px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: 8px;
  color: white;
  font-weight: 800;
}
.medal-bronze { background: var(--bronze-soft); color: #7C3F12; }
.medal-bronze .dot { background: var(--bronze); }
.medal-silver { background: var(--silver-soft); color: #4A5063; }
.medal-silver .dot { background: var(--silver); }
.medal-gold { background: var(--gold-soft); color: #7A5A0D; }
.medal-gold .dot { background: var(--gold); }
.medal-platinum { background: var(--platinum-soft); color: #2E5C73; }
.medal-platinum .dot { background: var(--platinum); }
.medal-krypto { background: var(--krypto-soft); color: #0C6B4B; }
.medal-krypto .dot { background: var(--krypto); }

/* Status chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
}
.chip .ico { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--aurora-soft); color: #0E6B47; }
.chip-fail { background: #F8DCDE; color: #8A2630; }
.chip-progress { background: var(--sun-soft); color: #8A4E0C; }
.chip-locked { background: var(--silver-soft); color: #4A5063; }
.chip-overdue { background: #F8DCDE; color: #8A2630; }
.chip-due { background: var(--sky-soft); color: #234980; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* Progress ring base — drawn with conic-gradient */
.ring {
  --pct: 0;
  --size: 56px;
  --thick: 7px;
  --ring-color: var(--sun);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--bg-tint) 0);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.ring::after {
  content: "";
  position: absolute;
  inset: var(--thick);
  border-radius: 50%;
  background: var(--surface);
}
.ring > * { position: relative; z-index: 1; }

/* Subtle striped placeholder for imagery */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(17,32,63,.04) 0 8px,
      transparent 8px 16px),
    var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Scrollbar tidy inside frames */
.frame *::-webkit-scrollbar { width: 8px; height: 8px; }
.frame *::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.frame *::-webkit-scrollbar-track { background: transparent; }
