/* ============================================
   LINUS — Home View (Pastel Light Mode)
   ============================================ */

/* ---- Greeting ---- */
.home-greeting {
  padding: var(--space-3xl) var(--space-xl) var(--space-md);
}

.home-greeting__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.home-greeting__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-xs);
  line-height: var(--leading-tight);
}

/* ---- Linus Area ---- */
.home-linus-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
}

/* ---- Mic Label ---- */
.linus-mic-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ---- Section Divider ---- */
.home-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-sm) var(--space-xl) 0;
}

/* ---- Chat Input Area ---- */
.linus-input-area {
  padding: 0 var(--space-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.linus-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.linus-input-wrap:focus-within {
  border-color: var(--accent-lavender-light);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(139, 126, 200, 0.1);
}

.linus-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.4;
  min-width: 0;
}

.linus-input::placeholder {
  color: var(--color-text-muted);
}

.linus-input-mic,
.linus-input-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.linus-input-mic {
  background: transparent;
  color: var(--color-text-muted);
}

.linus-input-mic:hover {
  background: var(--accent-lavender-bg);
  color: var(--accent-lavender);
}

.linus-input-mic:active {
  transform: scale(0.9);
}

.linus-input-mic.active {
  background: var(--accent-lavender);
  color: white;
  animation: mic-pulse 1.5s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 126, 200, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(139, 126, 200, 0); }
}

.linus-input-send {
  background: var(--accent-lavender);
  color: white;
}

.linus-input-send:hover {
  background: #7A6DB8;
}

.linus-input-send:active {
  transform: scale(0.9);
}

/* ---- Chat Bubbles ---- */
.linus-chat-feed {
  padding: 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.linus-chat-feed:empty {
  display: none;
}

.chat-bubble {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: 16px;
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: bubbleIn 200ms ease-out;
  word-wrap: break-word;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent-lavender);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble--linus {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.thinking-bubble {
  opacity: 0.7;
  font-style: italic;
}
