/* ═══════════════════════════════════════════
   WIDGET — Android home screen widget section
═══════════════════════════════════════════ */

.widget-section {
  padding-block: var(--sp-24);
  background: var(--bg-canvas);
  border-top: 1px solid var(--glass-border);
}

.widget-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .widget-section__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
  /* Demo on right, text on left */
  .widget-section__demo { order: 2; }
  .widget-section__text { order: 1; }
}

.widget-section__body {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .widget-section__body { font-size: var(--text-lg); }
}

.widget-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.widget-section__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ink-500);
}

.widget-section__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--brand-glow);
  border: 1.5px solid var(--brand-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23145E31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ── Widget mock ── */
.widget-section__demo {
  display: flex;
  justify-content: center;
}

.widget-mock {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: var(--sp-4);
  width: 100%;
  max-width: 340px;
  /* Android widget aesthetic: rounded, subtle */
}

.widget-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.widget-mock__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.widget-mock__refresh {
  font-size: var(--text-lg);
  color: var(--ink-300);
  cursor: default;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  animation: spinRefresh 4s linear infinite;
  transform-origin: center;
}

@keyframes spinRefresh {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.widget-mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.widget-mock__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

.widget-mock__stat-icon {
  font-size: var(--text-lg);
  line-height: 1;
  margin-bottom: 2px;
}

.widget-mock__stat-val {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.widget-mock__stat-val small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-300);
}

.widget-mock__stat-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-300);
}

.widget-mock__chart {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--sp-3);
}

.widget-mock__legend {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  justify-content: center;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-dot--green { background: var(--green); }
.legend-dot--blue  { background: var(--blue); }
