/* "Stock"ing Stuffer Challenge -- The Workshop portal
   Dark navy/emerald festive fintech theme */

:root {
  --navy-deep: #0a1128;
  --navy: #0f1a3d;
  --navy-light: #16244f;
  --emerald: #0d6e4f;
  --emerald-bright: #16a66e;
  --gold: #e8b84b;
  --gold-bright: #f5cc6a;
  --candy-red: #c23b3b;
  --snow: #f4f6fb;
  --ice: #c9d4ec;
  --muted: #8b96b8;
  --coal: #3a3f4f;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at top, var(--navy) 0%, var(--navy-deep) 60%, #050812 100%);
  color: var(--snow);
  min-height: 100vh;
  background-attachment: fixed;
}

/* twinkling snow particles */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.4), transparent);
  background-size: 400px 400px;
  opacity: 0.6;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  color: var(--gold-bright);
  text-decoration: none;
}

.brand .pun {
  color: var(--snow);
}

.navlinks {
  display: flex;
  gap: 6px;
}

.navlinks a {
  color: var(--ice);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.navlinks a:hover, .navlinks a.active {
  background: rgba(255,255,255,0.08);
  color: var(--gold-bright);
}

/* Cards */
.card {
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card h2, .card h3 {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.1s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 4px 16px rgba(232,184,75,0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,184,75,0.45); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-full { width: 100%; text-align: center; }

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  color: var(--snow);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--ice);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-nice {
  background: rgba(22,166,110,0.18);
  color: var(--emerald-bright);
  border: 1px solid rgba(22,166,110,0.4);
}

.badge-flagged {
  background: rgba(194,59,59,0.18);
  color: #e68080;
  border: 1px solid rgba(194,59,59,0.4);
}

.badge-gold {
  background: rgba(232,184,75,0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(232,184,75,0.4);
}

/* Stocking visual */
.stocking-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0;
}

.stocking-svg-holder {
  width: 180px;
  margin: 0 auto;
}

.points-display {
  text-align: center;
  margin-top: 10px;
}

.points-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
}

.points-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Leaderboard */
.lb-row {
  display: grid;
  grid-template-columns: 50px 1fr 90px 90px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
}

.lb-row.me {
  background: rgba(232,184,75,0.12);
  border: 1px solid rgba(232,184,75,0.35);
}

.lb-rank {
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.lb-rank.top3 { color: var(--gold-bright); }

.lb-name { font-weight: 600; }
.lb-points { text-align: right; font-weight: 700; color: var(--emerald-bright); }
.lb-subtle { text-align: right; color: var(--muted); font-size: 0.8rem; }

/* Countdown */
.countdown-banner {
  background: linear-gradient(135deg, rgba(194,59,59,0.25), rgba(13,110,79,0.25));
  border: 1px solid rgba(232,184,75,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.countdown-banner .big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-bright);
}

/* Day badge for coach rotation */
.coach-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.coach-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

a.plain { color: var(--gold-bright); text-decoration: none; }
a.plain:hover { text-decoration: underline; }

.login-wrap {
  max-width: 420px;
  margin: 80px auto;
}

.error-text {
  color: #e68080;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.checklist-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.checklist-item:last-child { border-bottom: none; }

.radio-group {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.radio-option {
  flex: 1;
  padding: 16px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.12);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.radio-option input { display: none; }

.radio-option.selected {
  border-color: var(--gold);
  background: rgba(232,184,75,0.1);
}

.radio-option .pts {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-bright);
  margin-top: 4px;
  font-weight: 700;
}
