/* Mood & Period Tracker (MnP) - Master Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Premium Atmospheric Dark & Radiant Tones */
  --bg-deep: #090d16;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-elevated: rgba(28, 36, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(236, 72, 153, 0.35);

  /* Brand Accents */
  --primary-pink: #ec4899;
  --primary-rose: #f43f5e;
  --primary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --cycle-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --secondary-violet: #8b5cf6;
  --secondary-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;

  /* Micro-Diary Mood Colors */
  --mood-rad: #10b981;    /* Vibrant Green */
  --mood-good: #06b6d4;   /* Ocean Teal */
  --mood-meh: #f59e0b;    /* Warm Amber */
  --mood-fugly: #f97316;  /* Sunset Orange */
  --mood-awful: #ef4444;  /* Deep Coral Red */

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(236, 72, 153, 0.25);
  --shadow-glow-violet: 0 0 40px rgba(139, 92, 246, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Animated Glow Spheres */
.ambient-glow-1 {
  position: fixed;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -15vw;
  left: -10vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(0,0,0,0) 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, -2vh) scale(0.95); }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Card System */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card-elevated {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Typography Helpers */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cycle {
  background: var(--cycle-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-doctor {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.btn-doctor:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
}

/* App Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.badge-pro {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #ffffff;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-live {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Mood Face Icons */
.mood-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
}

.mood-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid transparent;
  transition: var(--transition-spring);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.mood-circle.rad { background: rgba(16, 185, 129, 0.15); color: var(--mood-rad); border-color: rgba(16, 185, 129, 0.4); }
.mood-circle.good { background: rgba(6, 182, 212, 0.15); color: var(--mood-good); border-color: rgba(6, 182, 212, 0.4); }
.mood-circle.meh { background: rgba(245, 158, 11, 0.15); color: var(--mood-meh); border-color: rgba(245, 158, 11, 0.4); }
.mood-circle.fugly { background: rgba(249, 115, 22, 0.15); color: var(--mood-fugly); border-color: rgba(249, 115, 22, 0.4); }
.mood-circle.awful { background: rgba(239, 68, 68, 0.15); color: var(--mood-awful); border-color: rgba(239, 68, 68, 0.4); }

.mood-icon-btn:hover .mood-circle,
.mood-icon-btn.selected .mood-circle {
  transform: scale(1.15) translateY(-4px);
}

.mood-icon-btn.selected .mood-circle.rad { background: var(--mood-rad); color: #fff; box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
.mood-icon-btn.selected .mood-circle.good { background: var(--mood-good); color: #fff; box-shadow: 0 0 25px rgba(6, 182, 212, 0.6); }
.mood-icon-btn.selected .mood-circle.meh { background: var(--mood-meh); color: #fff; box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }
.mood-icon-btn.selected .mood-circle.fugly { background: var(--mood-fugly); color: #fff; box-shadow: 0 0 25px rgba(249, 115, 22, 0.6); }
.mood-icon-btn.selected .mood-circle.awful { background: var(--mood-awful); color: #fff; box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }

.mood-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mood-icon-btn.selected .mood-label {
  color: #ffffff;
}

/* Cycle Ring Visualizer */
.cycle-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.cycle-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.cycle-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.cycle-ring-fill {
  fill: none;
  stroke: url(#cycleGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 280;
  transition: stroke-dashoffset 1s ease-out;
}

.cycle-ring-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cycle-day-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.cycle-day-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 540px;
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-spring);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

/* Notification Banner & Ad Space */
.ad-banner-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin: 1.5rem 0;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mood-circle {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}
