/* ============================================
   LINUS — Home View
   Greeting, Linus orb area, smart feed
   ============================================ */

/* =============================================
   GREETING SECTION
   ============================================= */
.home-greeting {
  text-align: center;
  padding-top: var(--space-xl);
  margin-bottom: var(--space-md);
  animation: homeGreetingIn 600ms ease forwards;
}

.home-greeting__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-xs);
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-linus-1) 60%,
    var(--color-linus-2) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.home-greeting__status {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

@keyframes homeGreetingIn {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   LINUS ORB AREA
   ============================================= */
.home-linus-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0 var(--space-2xl);
  min-height: 280px;
  position: relative;
  animation: homeLinusIn 700ms ease 150ms both;
}

@keyframes homeLinusIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Decorative ambient gradient behind orb */
.home-linus-area::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    rgba(184, 169, 201, 0.08) 0%,
    rgba(124, 156, 191, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Quick action hint below orb */
.home-linus-area__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  text-align: center;
  opacity: 0.7;
}

/* =============================================
   SMART FEED
   ============================================= */
.home-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-feed__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.home-feed__title-icon {
  font-size: var(--text-lg);
  opacity: 0.7;
}

/* =============================================
   SMART CARDS
   ============================================= */
.smart-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
  /* Staggered entrance — set via inline style or nth-child */
  animation: smartCardIn 400ms ease both;
}

.smart-card:nth-child(1) { animation-delay: 100ms; }
.smart-card:nth-child(2) { animation-delay: 180ms; }
.smart-card:nth-child(3) { animation-delay: 260ms; }
.smart-card:nth-child(4) { animation-delay: 340ms; }
.smart-card:nth-child(5) { animation-delay: 420ms; }

.smart-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-xs);
}

.smart-card:hover {
  box-shadow: var(--shadow-md);
}

@keyframes smartCardIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Icon circle */
.smart-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform var(--transition-spring);
}

.smart-card:active .smart-card__icon {
  transform: scale(0.9);
}

/* Content area */
.smart-card__content {
  flex: 1;
  min-width: 0;
}

.smart-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.smart-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-card__meta,
.smart-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Value / right side */
.smart-card__value {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  text-align: right;
}

.smart-card__value-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
  font-family: var(--font-body);
}

/* Arrow indicator */
.smart-card__arrow {
  flex-shrink: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.smart-card:hover .smart-card__arrow {
  transform: translateX(2px);
}

/* ---- Category Variants ---- */
.smart-card--next-event .smart-card__icon {
  background: var(--color-business-light);
  color: var(--color-business-dark);
}

.smart-card--tasks-summary .smart-card__icon {
  background: var(--color-personal-light);
  color: var(--color-personal-dark);
}

.smart-card--finance-snapshot .smart-card__icon {
  background: var(--color-finance-light);
  color: var(--color-finance-dark);
}

.smart-card--habits-streak .smart-card__icon {
  background: var(--color-mae-light);
  color: var(--color-mae-dark);
}

.smart-card--mae .smart-card__icon {
  background: var(--color-mae-light);
  color: var(--color-mae-dark);
}

.smart-card--business .smart-card__icon {
  background: var(--color-business-light);
  color: var(--color-business-dark);
}

.smart-card--personal .smart-card__icon {
  background: var(--color-personal-light);
  color: var(--color-personal-dark);
}

/* =============================================
   QUICK ACTIONS ROW (optional)
   ============================================= */
.home-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.home-actions__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.home-actions__btn:active {
  transform: scale(0.95);
}

.home-actions__btn-icon {
  font-size: 20px;
  opacity: 0.8;
}
