/* Bond Priori - Mood Tracker Styles */

/* Mood Emoji Grid */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (max-width: 600px) {
  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mood-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mood-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mood-item.selected {
  border-color: var(--color-copper);
  background: rgba(var(--rgb-dusty-taupe), 0.2);
}

.mood-item-emoji {
  font-size: 2rem;
  line-height: 1;
}

.mood-item-label {
  font-size: var(--font-size-xs);
  color: var(--color-warm-grey);
  text-align: center;
}

.mood-item.selected .mood-item-label {
  color: var(--color-alabaster);
  font-weight: var(--font-weight-medium);
}

/* Mood Note Input */
.mood-note-area {
  margin-bottom: var(--space-4);
}

.mood-note-area textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

/* Current Mood Display */
.mood-current {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.mood-current-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.mood-current-info {
  flex: 1;
}

.mood-current-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.mood-current-note {
  font-size: var(--font-size-sm);
  color: var(--color-warm-grey);
  margin-bottom: var(--space-1);
}

.mood-current-time {
  font-size: var(--font-size-xs);
  color: var(--color-soft-grey);
}

.mood-current-empty {
  text-align: center;
  padding: var(--space-5);
  color: var(--color-soft-grey);
  font-size: var(--font-size-sm);
}

/* Mood History List */
.mood-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mood-history-date {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-soft-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mood-history-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.mood-history-item-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.mood-history-item-content {
  flex: 1;
  min-width: 0;
}

.mood-history-item-label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.mood-history-item-note {
  font-size: var(--font-size-xs);
  color: var(--color-warm-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mood-history-item-meta {
  text-align: right;
  flex-shrink: 0;
}

.mood-history-item-user {
  font-size: var(--font-size-xs);
  color: var(--color-copper);
  font-weight: var(--font-weight-medium);
}

.mood-history-item-time {
  font-size: var(--font-size-xs);
  color: var(--color-soft-grey);
}

/* Analytics Bar Chart */
.mood-analytics-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mood-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mood-bar-emoji {
  font-size: 1.25rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.mood-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.mood-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
  min-width: 2px;
}

.mood-bar-label {
  font-size: var(--font-size-xs);
  color: var(--color-warm-grey);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

/* Period Tabs */
.period-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.period-tab {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--color-warm-grey);
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.period-tab.active {
  background: rgba(var(--rgb-dusty-taupe), 0.2);
  border-color: var(--color-copper);
  color: var(--color-alabaster);
}

/* Load More */
.mood-load-more {
  text-align: center;
  padding: var(--space-4) 0;
}

.mood-load-more .btn {
  min-width: 140px;
}
