/* Home page styles */
.home-layout {
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 520px;
  margin: 0 auto;
}

.home-header {
  margin-bottom: var(--space-xs);
}

.home-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: var(--line-height-normal);
}

.home-title strong,
.home-title .home-title__name {
  color: var(--color-text-primary);
  font-weight: 800;
}

.gamification-stats {
  /* gap handled by .home-layout */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: none;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  background-color: var(--color-muted);
  flex-shrink: 0;
  min-width: unset;
  text-align: center;
}

.stat-card__content {
  flex: 1;
}

.stat-card__value {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  line-height: var(--line-height-tight);
  margin-bottom: 2px;
  display: block;
  color: var(--color-text-primary);
}

.stat-card__label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* highlight / streak */
.stat-card--highlight {
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  grid-column: 1 / -1;
  background: var(--color-primary-gradient);
  color: var(--color-surface);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl);
}

.stat-card--highlight::before,
.stat-card--highlight::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stat-card--highlight::before {
  width: 128px;
  height: 128px;
  background-color: rgba(255, 255, 255, 0.2);
  top: -32px;
  right: -32px;
}

.stat-card--highlight::after {
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.1);
  top: 32px;
  right: -8px;
}

.stat-card--highlight .stat-card__icon {
  font-size: var(--font-size-5xl);
  background-color: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  margin-bottom: 0;
  min-width: 56px;
  line-height: 1;
}

.stat-card--highlight .stat-card__value {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-card--highlight .stat-card__label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}

.home-actions .btn {
  width: 100%;
  max-width: none;
  background: var(--color-primary-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-cta);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: white;
}

@media (min-width: 481px) {
  .home-layout {
    max-width: 560px;
    padding: var(--space-lg) 0;
  }
}

@media (min-width: 768px) {
  .home-layout {
    max-width: var(--container-max-width);
  }
}