/* WHAT MATTERS — Life Probability OS — Professional Styles */
/* Supplements Tailwind CSS — custom animations and components */

/* ===== Base ===== */
body {
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ===== Cosmic Background ===== */
.cosmic-bg {
  background: linear-gradient(145deg, #0d0533 0%, #150940 25%, #0f0830 55%, #0a0320 100%);
  min-height: 100vh;
}

/* ===== Glass Morphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}
.glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* ===== Glows ===== */
.glow-green { box-shadow: 0 0 25px rgba(57, 255, 20, 0.2), inset 0 0 25px rgba(57, 255, 20, 0.03); }
.glow-blue { box-shadow: 0 0 25px rgba(0, 212, 255, 0.2), inset 0 0 25px rgba(0, 212, 255, 0.03); }
.glow-pink { box-shadow: 0 0 25px rgba(255, 20, 147, 0.2); }
.glow-text-green { text-shadow: 0 0 25px rgba(57, 255, 20, 0.4); }
.glow-text-blue { text-shadow: 0 0 25px rgba(0, 212, 255, 0.4); }

/* ===== Score Ring ===== */
.score-ring {
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-up { animation: fadeInUp 0.5s ease-out forwards; }
.anim-d1 { animation-delay: 0.1s; opacity: 0; }
.anim-d2 { animation-delay: 0.2s; opacity: 0; }
.anim-d3 { animation-delay: 0.3s; opacity: 0; }
.anim-d4 { animation-delay: 0.4s; opacity: 0; }

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.cosmic-pulse { animation: cosmicPulse 2.5s ease-in-out infinite; }

/* ===== Stars ===== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.2;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ===== Inputs ===== */
.input-cosmic {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 11px 16px;
  outline: none;
  transition: all 0.2s;
  font-size: inherit;
}
.input-cosmic:focus {
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.1);
  background: rgba(255, 255, 255, 0.06);
}
.input-cosmic::placeholder { color: rgba(255, 255, 255, 0.25); }
.input-cosmic option { background: #1a0a4a; color: white; }

/* ===== Buttons ===== */
.btn-cosmic {
  background: linear-gradient(135deg, #5b3dff 0%, #4210e0 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-align: center;
}
.btn-cosmic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(91, 61, 255, 0.4);
}
.btn-cosmic:active { transform: translateY(0); }
.btn-cosmic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-neon {
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: #39ff14;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-align: center;
}
.btn-neon:hover {
  background: rgba(57, 255, 20, 0.08);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
  border-color: rgba(57, 255, 20, 0.6);
}

/* ===== Spinner ===== */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #39ff14;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.spinner-lg {
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #39ff14;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Typing Dots ===== */
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-right: 4px;
}
.typing-dots span {
  width: 5px;
  height: 5px;
  background: #39ff14;
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ===== Tabs ===== */
.tab-active {
  border-bottom: 2px solid #39ff14;
  color: #39ff14 !important;
}
.nav-tab {
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-tab:hover { color: rgba(255, 255, 255, 0.7); }

/* ===== Advice Rendering ===== */
.advice-text strong { color: #00d4ff; }
.advice-text em { color: #ff1493; font-style: italic; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== App Transition ===== */
#app {
  transition: opacity 0.2s ease;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
  .glass-strong { border-radius: 16px; }
  .glass { border-radius: 12px; }
}

/* ===== Range Slider ===== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #39ff14;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(57,255,20,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #39ff14;
  cursor: pointer;
  border: none;
}

/* ===== Date Input ===== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.7);
  cursor: pointer;
}

/* ===== Time Input ===== */
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.7);
  cursor: pointer;
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Vision Board ===== */
.vision-achieved {
  position: relative;
}
.vision-achieved::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(57, 255, 20, 0.03);
  border-radius: 16px;
  pointer-events: none;
}
