/* HypePulse: custom styles (Tailwind utilities are generated by the CDN) */

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #08090d;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Custom high-tech scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #3b4259 transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3b4259;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #56607f;
  background-clip: padding-box;
}

/* Hide the scrollbar on the horizontal filter strip while keeping it scrollable */
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.glass-panel {
  background: rgba(17, 19, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-glow {
  box-shadow: 0 0 25px -5px rgba(34, 197, 94, 0.3);
}

.radial-bg {
  background-image: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.08), transparent 45%),
                    radial-gradient(circle at 100% 80%, rgba(59, 130, 246, 0.05), transparent 40%);
}

@keyframes pulseSlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.05); }
}
.ambient-glow {
  animation: pulseSlow 8s ease-in-out infinite;
}
.ambient-glow-delayed {
  animation-delay: 3s;
}

/* Brand logo */
.logo-glow {
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.35));
}
@keyframes logoBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.08); }
  24% { transform: scale(1); }
  36% { transform: scale(1.05); }
}
.logo-beat {
  animation: logoBeat 1.8s ease-in-out infinite;
}

.spin-slow {
  animation-duration: 9s;
}

/* Lucide replaces <i> with <svg>; keep chevron rotation smooth */
#rawChevron {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow,
  .logo-beat,
  .animate-spin,
  .animate-pulse,
  .animate-ping {
    animation: none !important;
  }
}

/* Lift the toast above the compare tray when it is visible */
body.tray-open #toast {
  bottom: 5.5rem;
}

/* ------------------------------------------------------------------ */
/* Share card (rendered off-screen, captured to PNG with html2canvas) */
/* Plain hex colors only: html2canvas does not parse every modern     */
/* color syntax, so this card intentionally avoids Tailwind classes.  */
/* ------------------------------------------------------------------ */

#shareStage {
  position: fixed;
  left: -20000px;
  top: 0;
  pointer-events: none;
}

.sc {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  color: #e2e8f0;
  background-color: #08090d;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0) 45%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0) 45%);
  border: 2px solid #242938;
}
.sc * { box-sizing: border-box; }

.sc--wide   { width: 1200px; height: 675px;  padding: 44px 52px 36px; gap: 26px; }
.sc--square { width: 1080px; height: 1080px; padding: 60px 60px 48px; gap: 34px; }

.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sc-brand { display: flex; align-items: center; gap: 14px; }
.sc-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-logo img { width: 60px; height: 60px; display: block; }
.sc-brand-name { font-size: 26px; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; line-height: 1.1; }
.sc-brand-sub  { font-size: 14px; font-weight: 500; color: #94a3b8; margin-top: 2px; }

.sc-meta { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 15px; color: #94a3b8; }
.sc-source {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.10);
  color: #fbbf24;
  font-weight: 600;
}

.sc-body { display: flex; gap: 40px; align-items: center; flex: 1; min-height: 0; }
.sc--square .sc-body { flex: 0 0 auto; }
.sc-main { flex: 1; min-width: 0; }
.sc-kicker { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: #64748b; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.sc-title { font-size: 42px; line-height: 1.15; font-weight: 800; color: #ffffff; letter-spacing: -1px; }
.sc--square .sc-title { font-size: 46px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  padding: 5px 11px;
  border-radius: 8px;
  background: #11131c;
  border: 1px solid #242938;
  color: #cbd5e1;
}

.sc-gauge { flex: 0 0 auto; width: 250px; display: flex; flex-direction: column; align-items: center; }
.sc-ring { position: relative; width: 210px; height: 210px; }
.sc-ring svg { position: absolute; left: 0; top: 0; width: 210px; height: 210px; }
.sc-ring-value {
  position: absolute;
  left: 0;
  right: 0;
  top: 62px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}
.sc-ring-caption { position: absolute; left: 0; right: 0; top: 130px; text-align: center; font-size: 13px; color: #94a3b8; letter-spacing: 2px; text-transform: uppercase; }
.sc-mood { margin-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.sc-gauge-sub { margin-top: 6px; font-size: 15px; color: #94a3b8; text-align: center; }

.sc-points { display: flex; gap: 16px; }
.sc--square .sc-points { flex-direction: column; flex: 1; min-height: 0; }
.sc-point {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  padding: 18px 20px;
  background: #11131c;
  border: 1px solid #242938;
  border-top-width: 4px;
}
.sc--square .sc-point { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; }
.sc-point--love { border-top-color: #34d399; }
.sc-point--pain { border-top-color: #fb923c; }
.sc-point--ask  { border-top-color: #38bdf8; }
.sc--square .sc-point { border-top-width: 1px; border-left-width: 5px; }
.sc--square .sc-point--love { border-left-color: #34d399; border-top-color: #242938; }
.sc--square .sc-point--pain { border-left-color: #fb923c; border-top-color: #242938; }
.sc--square .sc-point--ask  { border-left-color: #38bdf8; border-top-color: #242938; }
.sc-point-kicker { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.sc--square .sc-point-kicker { width: 150px; flex: 0 0 auto; margin: 3px 0 0; font-size: 14px; }
.sc-point--love .sc-point-kicker { color: #34d399; }
.sc-point--pain .sc-point-kicker { color: #fb923c; }
.sc-point--ask  .sc-point-kicker { color: #38bdf8; }
.sc-point-head { font-size: 18px; font-weight: 700; color: #ffffff; line-height: 1.25; }
.sc-point-text { font-size: 15px; color: #94a3b8; line-height: 1.4; margin-top: 6px; }
.sc--square .sc-point-head { font-size: 22px; }
.sc--square .sc-point-text { font-size: 18px; }

.sc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #242938;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #64748b;
}
.sc-footer strong { color: #34d399; font-weight: 600; }

/* 16:9 has less vertical room: smaller gauge */
.sc--wide .sc-gauge { width: 230px; }
.sc--wide .sc-ring,
.sc--wide .sc-ring svg { width: 176px; height: 176px; }
.sc--wide .sc-ring-value { top: 50px; font-size: 48px; }
.sc--wide .sc-ring-caption { top: 106px; font-size: 12px; }
.sc--wide .sc-mood { margin-top: 10px; font-size: 20px; }
.sc--wide .sc-gauge-sub { margin-top: 4px; font-size: 14px; }

/* Keep the end of the page reachable above the compare tray */
body.tray-open main {
  padding-bottom: 5rem;
}
