/* ============================================================
   R.I.S.E. Portal – Brand Stylesheet
   Official ThoughtSpot brand colors × R.I.S.E. identity
   ============================================================ */

.font-inter { font-family: 'Inter', sans-serif; }

/* ── OFFICIAL THOUGHTSPOT BRAND TOKENS ─────────────────── */
:root {
  /* Primary palette */
  --ts-dark:    #08062B;   /* Deep navy/black — primary dark bg */
  --ts-navy:    #1B3E61;   /* Navy blue */
  --ts-blue:    #346DC9;   /* Medium blue */
  --ts-cyan:    #04D1FF;   /* Signature cyan — key accent */

  /* Secondary */
  --ts-blurple: #3D2894;   /* Indigo purple */
  --ts-purple:  #714BFB;   /* Bright purple */

  /* Tertiary */
  --ts-yellow:  #FFC052;   /* Golden yellow */
  --ts-green:   #6DD267;   /* Lime green */
  --ts-coral:   #FF92A8;   /* Coral pink */
  --ts-periwinkle: #8AAFFF;
  --ts-aqua:    #32D9DF;
  --ts-orchid:  #C493FF;

  /* R.I.S.E. specific — cyan as primary accent, yellow for CTAs */
  --rise-accent:      var(--ts-cyan);
  --rise-cta:         var(--ts-yellow);
  --rise-cta-dark:    #e6a832;

  /* Surfaces */
  --surface:    #FFFFFF;
  --surface-2:  #F8FAFF;
  --border:     #E5E7EB;
  --border-soft:#F0F0F0;

  /* Text */
  --text-1:     #08062B;
  --text-2:     #1B3E61;
  --text-3:     #6B7280;
  --text-4:     #9CA3AF;
}

/* ── HERO GRADIENT (fallback if gif fails) ──────────────── */
.hero-gradient {
  background: linear-gradient(135deg,
    var(--ts-dark) 0%,
    #0D1445 40%,
    var(--ts-blurple) 100%
  );
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ts-cyan);
  color: var(--ts-dark);
  font-weight: 800;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: #00bbee;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(4,209,255,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: var(--text-2);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-secondary:hover { background: #E5E7EB; }

/* Hero CTA — yellow/golden */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ts-yellow);
  color: var(--ts-dark);
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  border-radius: 0.875rem;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,192,82,0.4);
  letter-spacing: -0.01em;
}
.btn-white:hover {
  background: var(--rise-cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,192,82,0.5);
}

/* Hero secondary CTA — outline */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.875rem;
  border: 1.5px solid rgba(4,209,255,0.5);
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  border-color: var(--ts-cyan);
  background: rgba(4,209,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(4,209,255,0.2);
}

/* ── HOMEPAGE STATS BAR ─────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(4,209,255,0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ts-cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── NAV ────────────────────────────────────────────────── */
nav { font-family: 'Inter', sans-serif; }

/* ── RISE LOGO ──────────────────────────────────────────── */
.rise-logo-mark {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ts-cyan);
  letter-spacing: -0.02em;
}
.rise-logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ts-blue);
}

/* ── PILLAR CARDS ───────────────────────────────────────── */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s;
}
.pillar-card:hover {
  box-shadow: 0 8px 30px rgba(4,209,255,0.12);
  transform: translateY(-3px);
  border-color: rgba(4,209,255,0.3);
}
.pillar-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.pillar-title { font-size: 1.1rem; font-weight: 800; color: var(--ts-dark); margin-bottom: 0.5rem; }
.pillar-desc  { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ── THEME CARDS ────────────────────────────────────────── */
.theme-card {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.theme-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.theme-card h3    { font-weight: 700; font-size: 0.95rem; margin: 0.5rem 0 0.35rem; }
.theme-card p     { font-size: 0.825rem; opacity: 0.8; line-height: 1.6; }
.theme-icon       { font-size: 1.75rem; }
.theme-green  { background: #F0FDF4; color: #166534; }
.theme-blue   { background: #EFF6FF; color: #1E40AF; }
.theme-purple { background: #FAF5FF; color: #6B21A8; }
.theme-orange { background: #FFF7ED; color: #9A3412; }
.theme-teal   { background: #F0FDFA; color: #134E4A; }
.theme-pink   { background: #FDF2F8; color: #831843; }

/* ── HOW IT WORKS ───────────────────────────────────────── */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s;
}
.step-card:hover {
  box-shadow: 0 4px 16px rgba(4,209,255,0.08);
  border-color: rgba(4,209,255,0.25);
}
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ts-dark);
  color: var(--ts-cyan);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FILTER INPUTS ──────────────────────────────────────── */
.filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.filter-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all 0.15s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  font-family: 'Inter', sans-serif;
}
.filter-select:focus {
  border-color: var(--ts-cyan);
  box-shadow: 0 0 0 3px rgba(4,209,255,0.12);
  background-color: var(--surface);
}

.input-field {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-2);
  outline: none;
  transition: all 0.15s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.input-field:focus {
  border-color: var(--ts-cyan);
  box-shadow: 0 0 0 3px rgba(4,209,255,0.12);
  background: var(--surface);
}

/* ── TOGGLE ─────────────────────────────────────────────── */
.toggle-track {
  width: 2.75rem;
  height: 1.5rem;
  background: var(--border);
  border-radius: 9999px;
  transition: background 0.2s;
}
input:checked ~ .toggle-track { background: var(--ts-cyan); }
.toggle-thumb {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked ~ .toggle-thumb { transform: translateX(1.25rem); }

/* ── EVENT CARDS ────────────────────────────────────────── */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.2s;
}
.event-card:hover {
  box-shadow: 0 8px 24px rgba(52,109,201,0.1);
  transform: translateY(-2px);
  border-color: rgba(4,209,255,0.3);
}

/* ── CAPACITY BAR ───────────────────────────────────────── */
.capacity-bar {
  height: 6px;
  background: #F0F0F0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.capacity-fill   { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.capacity-low    { background: var(--ts-cyan); }
.capacity-medium { background: var(--ts-yellow); }
.capacity-high   { background: var(--ts-coral); }
.capacity-full   { background: #9CA3AF; }

/* ── SKELETON ───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.event-skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E5E5E5 50%, #F0F0F0 75%);
  background-size: 2000px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 1.25rem;
  height: 220px;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,6,43,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 60px rgba(8,6,43,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ts-dark);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(8,6,43,0.4);
  animation: fadeInUp 0.3s ease;
  border: 1px solid rgba(4,209,255,0.2);
}
.toast.error { background: #DC2626; border-color: transparent; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── LEADERBOARD ────────────────────────────────────────── */
.metric-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.625rem;
  color: var(--text-3);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.metric-btn-active { background: var(--ts-dark); color: var(--ts-cyan); }
.metric-btn:not(.metric-btn-active):hover { background: var(--surface-2); }

.podium-card {
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 2px solid transparent;
}
.podium-first  { background: linear-gradient(135deg,#FEF3C7,#FDE68A); border-color: #F59E0B; }
.podium-second { background: linear-gradient(135deg,#F1F5F9,#E2E8F0); border-color: #94A3B8; }
.podium-third  { background: linear-gradient(135deg,#FFF7ED,#FED7AA); border-color: #F97316; }

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  transition: background 0.15s;
}
.leaderboard-row:hover { background: var(--surface-2); }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--ts-cyan);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── ADMIN STATS ────────────────────────────────────────── */
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}
.admin-stat-value { font-size: 2rem; font-weight: 900; color: var(--ts-dark); }
.admin-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.2rem;
}

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-open    { background: rgba(4,209,255,0.12); color: #0369a1; }
.badge-full    { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: rgba(255,192,82,0.15); color: #92400E; }
.badge-past    { background: #F1F5F9; color: #475569; }
.badge-pending { background: rgba(255,192,82,0.15); color: #92400E; }
.badge-done    { background: #DCFCE7; color: #166534; }

/* ── text-ts-blue overrides ─────────────────────────────── */
.text-ts-blue { color: var(--ts-cyan) !important; }