﻿/* Dashboard styles */

.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.welcome-text {
  display: flex;
  align-items: center;
  gap: 18px;
}

.welcome-avatar {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.08);
  border: 2px solid var(--color-border);
  border-radius: 50%;
}

.quote-card {
  max-width: 360px;
  padding: 18px 22px;
  border-left: 4px solid var(--color-gold);
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--color-text-muted);
}

.quick-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.dashboard-grid .card {
  display: flex;
  flex-direction: column;
}

.card-text {
  color: var(--color-text-muted);
  margin: 0 0 14px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.meal-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--color-text-muted);
}

.meal-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meal-list li:last-child {
  border-bottom: none;
}

.progress-card {
  align-items: center;
}

.progress-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
}

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

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.progress-fill {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1s ease;
}

.progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-label span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-gold);
}

.progress-label small {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--color-gold-light);
}

.news-card .tag,
.story-card .tag {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .welcome-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-card {
    max-width: 100%;
  }

  .welcome-avatar {
    font-size: 2.6rem;
    width: 64px;
    height: 64px;
  }
}
