/*
 * =====================================================
 * LEARNINGLAND — Shared Components v1 · "Amber Solace"
 * Extracted from across the app for DRY reuse.
 * Import after 00-variables.css and 00-activities-design-system.css.
 * =====================================================
 */

/* ── Card (primary content vessel per DESIGN.md) ── */
.ll-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  border: none;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.ll-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Primary Button (verb + object labels) ── */
.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-2xl);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-base);
  letter-spacing: .01em;
  text-decoration: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(143, 78, 0, .25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}
.ll-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(143, 78, 0, .35);
  filter: brightness(1.05);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.ll-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}
.ll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Secondary Button ── */
.ll-btn--secondary {
  background: var(--surface-container);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.ll-btn--secondary:hover {
  background: var(--surface-container-high);
  filter: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  box-shadow: var(--shadow-md);
}

/* ── Success Button ── */
.ll-btn--success {
  background: var(--color-success);
  box-shadow: 0 4px 16px rgba(71, 184, 161, .25);
}
.ll-btn--success:hover {
  box-shadow: 0 8px 28px rgba(71, 184, 161, .35);
}

/* ── Chip / Tag (pill-shaped, low-emphasis) ── */
.ll-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: var(--primary-light);
  color: var(--deep-amber);
}

/* ── Badge (side-meta, e.g. streak day count) ── */
.ll-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--yellow-light);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-pill);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--yellow-dark);
}

/* ── Divider ── */
.ll-divider {
  width: 100%;
  height: 1px;
  background: rgba(253, 153, 55, .30);
  border: none;
  margin: var(--spacing-md) 0;
}

/* ── Empty State ── */
.ll-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-3xl) var(--spacing-xl);
  text-align: center;
}
.ll-empty__icon {
  font-size: 3rem;
  line-height: 1;
}
.ll-empty__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--ink);
}
.ll-empty__text {
  font-size: var(--font-size-base);
  color: var(--ink-muted);
  max-width: 400px;
}

/* ── Skeleton Loading ── */
.ll-skeleton {
  background: var(--surface-container);
  border-radius: var(--radius-sm);
  animation: ll-shimmer 1.5s ease infinite;
  background: linear-gradient(
    90deg,
    var(--surface-container) 0%,
    var(--surface-container-high) 40%,
    var(--surface-container) 80%
  );
  background-size: 200% 100%;
}

@keyframes ll-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ll-skeleton { animation: none; }
  .ll-btn:hover { transform: none; }
}
