/* === WELLNESS CHECK-IN === */
.wellness-checkin {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 50%, #faf6f1 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease;
}

.wellness-checkin::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.wellness-checkin__container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* === GRID LAYOUT === */
.wellness-checkin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .wellness-checkin__grid {
    grid-template-columns: 1fr;
  }
}

/* === GREETING === */
.wellness-checkin__greeting {
  text-align: center;
  margin-bottom: 2rem;
}

.wellness-checkin__time-greeting {
  font-size: 1rem;
  color: var(--blue-crayola, #7BBDF7);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wellness-checkin__time-icon {
  font-size: 1.25rem;
}

.wellness-checkin__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--eerie-black, #1a1a1a);
  margin-bottom: 0.5rem;
}

.wellness-checkin__subtitle {
  font-size: 1rem;
  color: var(--sonic-silver, #6b6b6b);
  max-width: 500px;
  margin: 0 auto;
}

/* === CARD === */
.wellness-checkin__card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wellness-checkin__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-crayola, #7BBDF7);
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wellness-checkin__card--mood {
  display: flex;
  flex-direction: column;
}

.wellness-checkin__card--tip {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wellness-checkin__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* === MOOD SELECTOR === */
.wellness-checkin__moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  flex: 1;
}

@media (max-width: 480px) {
  .wellness-checkin__moods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wellness-checkin__mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #f8f5f1;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.wellness-checkin__mood-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--mood-color, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wellness-checkin__mood-btn:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--mood-color, #7BBDF7);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wellness-checkin__mood-btn:hover::before {
  opacity: 0.15;
}

.wellness-checkin__mood-btn.is-selected {
  border-color: var(--mood-color, #7BBDF7);
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.wellness-checkin__mood-btn.is-selected::before {
  opacity: 0.2;
}

.wellness-checkin__mood-emoji {
  font-size: 2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.wellness-checkin__mood-btn:hover .wellness-checkin__mood-emoji {
  animation: emoji-wiggle 0.5s ease;
}

.wellness-checkin__mood-btn.is-selected .wellness-checkin__mood-emoji {
  animation: emoji-bounce 0.6s ease;
}

@keyframes emoji-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

@keyframes emoji-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.wellness-checkin__mood-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sonic-silver, #6b6b6b);
  text-transform: capitalize;
  position: relative;
  z-index: 1;
}

/* === MOOD COLORS === */
.wellness-checkin__mood-btn[data-mood="happy"] { --mood-color: #10b981; }
.wellness-checkin__mood-btn[data-mood="calm"] { --mood-color: #06b6d4; }
.wellness-checkin__mood-btn[data-mood="okay"] { --mood-color: #f59e0b; }
.wellness-checkin__mood-btn[data-mood="anxious"] { --mood-color: #8b5cf6; }
.wellness-checkin__mood-btn[data-mood="sad"] { --mood-color: #3b82f6; }
.wellness-checkin__mood-btn[data-mood="stressed"] { --mood-color: #ef4444; }

/* === RESPONSE SECTION === */
.wellness-checkin__response {
  background: linear-gradient(135deg, #f8f5f1 0%, #faf6f1 100%);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  display: none;
}

.wellness-checkin__response.is-visible {
  display: block;
}

.wellness-checkin__response.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wellness-checkin__affirmation {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--eerie-black, #1a1a1a);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wellness-checkin__tip {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--mood-accent, #7BBDF7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wellness-checkin__tip-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-crayola, #7BBDF7);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wellness-checkin__tip-text {
  font-size: 0.95rem;
  color: var(--sonic-silver, #4a4a4a);
  line-height: 1.6;
}

/* === QUICK ACTIONS === */
.wellness-checkin__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wellness-checkin__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.wellness-checkin__action-btn--primary {
  background: linear-gradient(135deg, var(--mood-accent, #7BBDF7) 0%, var(--mood-accent-dark, #4893D4) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.wellness-checkin__action-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.wellness-checkin__action-btn--secondary {
  background: white;
  color: var(--eerie-black, #1a1a1a);
  border: 2px solid #e5e5e5;
}

.wellness-checkin__action-btn--secondary:hover {
  border-color: var(--mood-accent, #7BBDF7);
  background: #faf6f1;
}

/* === COMMUNITY MOOD BAR === */
.wellness-checkin__community {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wellness-checkin__community-title {
  font-size: 0.8rem;
  color: var(--sonic-silver, #6b6b6b);
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wellness-checkin__community-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #e5e5e5;
}

.wellness-checkin__community-segment {
  height: 100%;
  transition: width 0.8s ease;
}

.wellness-checkin__community-segment[data-mood="happy"] { background: #10b981; }
.wellness-checkin__community-segment[data-mood="calm"] { background: #06b6d4; }
.wellness-checkin__community-segment[data-mood="okay"] { background: #f59e0b; }
.wellness-checkin__community-segment[data-mood="anxious"] { background: #8b5cf6; }
.wellness-checkin__community-segment[data-mood="sad"] { background: #3b82f6; }
.wellness-checkin__community-segment[data-mood="stressed"] { background: #ef4444; }

.wellness-checkin__community-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.wellness-checkin__legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--sonic-silver, #6b6b6b);
}

.wellness-checkin__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* === CONFETTI === */
.wellness-checkin__confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* === RIPPLE EFFECT === */
.wellness-checkin__ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  transform: scale(0);
  animation: ripple-expand 1s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === DEFAULT TIP === */
.wellness-checkin__default-tip {
  text-align: center;
  padding: 1.5rem;
}

.wellness-checkin__default-tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.wellness-checkin__default-tip-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-crayola, #7BBDF7);
  margin-bottom: 0.5rem;
}

.wellness-checkin__default-tip-text {
  font-size: 0.95rem;
  color: var(--sonic-silver, #4a4a4a);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* === DARK MODE === */
[data-theme="dark"] .wellness-checkin,
body.dark-mode .wellness-checkin {
  background: linear-gradient(135deg, #1a1625 0%, #1f1a2e 50%, #1a1625 100%);
}

[data-theme="dark"] .wellness-checkin::before,
body.dark-mode .wellness-checkin::before {
  background: radial-gradient(circle at 30% 30%, rgba(109, 179, 242, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .wellness-checkin__title,
body.dark-mode .wellness-checkin__title {
  color: #f5f5f5;
}

[data-theme="dark"] .wellness-checkin__subtitle,
body.dark-mode .wellness-checkin__subtitle {
  color: #a0a0a0;
}

[data-theme="dark"] .wellness-checkin__time-greeting,
body.dark-mode .wellness-checkin__time-greeting {
  color: var(--purple-accent, #6DB3F2);
}

[data-theme="dark"] .wellness-checkin__card,
body.dark-mode .wellness-checkin__card {
  background: #252033;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .wellness-checkin__mood-btn,
body.dark-mode .wellness-checkin__mood-btn {
  background: #1f1a2e;
}

[data-theme="dark"] .wellness-checkin__mood-btn.is-selected,
body.dark-mode .wellness-checkin__mood-btn.is-selected {
  background: #2d2640;
}

[data-theme="dark"] .wellness-checkin__mood-label,
body.dark-mode .wellness-checkin__mood-label {
  color: #a0a0a0;
}

[data-theme="dark"] .wellness-checkin__response,
body.dark-mode .wellness-checkin__response {
  background: linear-gradient(135deg, #1f1a2e 0%, #252033 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .wellness-checkin__affirmation,
body.dark-mode .wellness-checkin__affirmation {
  color: #f5f5f5;
}

[data-theme="dark"] .wellness-checkin__tip,
body.dark-mode .wellness-checkin__tip {
  background: #1a1625;
  border-left-color: var(--purple-accent, #6DB3F2);
}

[data-theme="dark"] .wellness-checkin__tip-title,
body.dark-mode .wellness-checkin__tip-title {
  color: var(--purple-accent, #6DB3F2);
}

[data-theme="dark"] .wellness-checkin__tip-text,
body.dark-mode .wellness-checkin__tip-text {
  color: #c0c0c0;
}

[data-theme="dark"] .wellness-checkin__action-btn--primary,
body.dark-mode .wellness-checkin__action-btn--primary {
  background: linear-gradient(135deg, var(--purple-accent, #6DB3F2) 0%, #4A93D4 100%);
  box-shadow: 0 4px 15px rgba(109, 179, 242, 0.3);
}

[data-theme="dark"] .wellness-checkin__action-btn--secondary,
body.dark-mode .wellness-checkin__action-btn--secondary {
  background: #1f1a2e;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wellness-checkin__community,
body.dark-mode .wellness-checkin__community {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .wellness-checkin__community-bar,
body.dark-mode .wellness-checkin__community-bar {
  background: #1f1a2e;
}

[data-theme="dark"] .wellness-checkin__default-tip-title,
body.dark-mode .wellness-checkin__default-tip-title {
  color: var(--purple-accent, #6DB3F2);
}

[data-theme="dark"] .wellness-checkin__default-tip-text,
body.dark-mode .wellness-checkin__default-tip-text {
  color: #c0c0c0;
}

@media (max-width: 768px) {
  .wellness-checkin {
    padding: 3rem 1rem;
  }
  
  .wellness-checkin__card {
    padding: 1.5rem;
  }
  
  .wellness-checkin__moods {
    gap: 0.5rem;
  }
  
  .wellness-checkin__mood-btn {
    padding: 0.75rem 1rem;
  }
  
  .wellness-checkin__mood-emoji {
    font-size: 1.75rem;
  }
  
  .wellness-checkin__actions {
    flex-direction: column;
  }
  
  .wellness-checkin__action-btn {
    justify-content: center;
  }
  
  .wellness-checkin__community-legend {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .wellness-checkin__mood-btn {
    padding: 0.6rem 0.8rem;
  }
  
  .wellness-checkin__mood-emoji {
    font-size: 1.5rem;
  }
  
  .wellness-checkin__mood-label {
    font-size: 0.7rem;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .wellness-checkin__mood-btn,
  .wellness-checkin__response,
  .wellness-checkin__card,
  .wellness-checkin__streak {
    transition: none;
  }
  
  .wellness-checkin__mood-btn:hover .wellness-checkin__mood-emoji,
  .wellness-checkin__mood-btn.is-selected .wellness-checkin__mood-emoji {
    animation: none;
  }
  
  @keyframes streak-pulse {
    0%, 100% { transform: none; }
  }
}
