/* ═══════════════════════════════════════════════════════════════════
   AURALIS · Diary Hub — layout template (ВЪЛНА 3.1 Task Г)
   ───────────────────────────────────────────────────────────────────
   Structure only. Content filled by ВЪЛНА 3.2.
   ═══════════════════════════════════════════════════════════════════ */

.dh-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dh-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dh-section {
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="light"] .dh-section, :root:not([data-theme]) .dh-section {
  background: var(--surface);
  box-shadow: var(--shadow-card-sm);
}
[data-theme="dark"] .dh-section {
  background: hsl(220 25% 6% / 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
}

.dh-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.dh-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.dh-btn {
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.dh-btn--primary {
  background: linear-gradient(135deg, hsl(var(--hue1) 70% 55%), hsl(var(--hue2) 65% 55%));
  color: white;
}
.dh-btn--glass {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-color);
}
[data-theme="light"] .dh-btn--glass, :root:not([data-theme]) .dh-btn--glass {
  background: var(--surface);
  box-shadow: var(--shadow-card-sm);
}

/* ═══ Header row (title + StreakBadge) ═══ */
.dh-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ═══ Action cards (3 large tiles) ═══ */
.dh-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dh-action-card {
  position: relative;
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px 16px 14px;
  padding-right: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease);
}
.dh-action-card > * { position: relative; z-index: 5; }
.dh-action-card:active { transform: scale(0.97); }

.dh-action-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--accent);
}
[data-theme="light"] .dh-action-icon,
:root:not([data-theme]) .dh-action-icon {
  background: hsl(var(--hue2) 55% 92%);
  color: hsl(var(--hue2) 60% 38%);
}
[data-theme="dark"] .dh-action-icon {
  background: hsl(var(--hue1) 40% 14% / 0.6);
  color: hsl(var(--hue3) 70% 70%);
}
.dh-action-icon svg { width: 26px; height: 26px; stroke-width: 2.1; }

.dh-action-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dh-action-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.dh-action-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.dh-action-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
}
.dh-action-arrow svg { width: 18px; height: 18px; }
.dh-action-card:hover .dh-action-arrow { color: var(--accent); }

/* ═══ Streak + Progress slots ═══ */
.dh-streak-slot {
  display: flex;
  align-items: center;
}
.dh-progress-slot {
  margin: 4px 0;
}

/* ═══ Progress sheet (phone test functional fix) ═══ */
.dh-progress-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.dh-prog-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  background: hsl(220 25% 12% / 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
[data-theme="light"] .dh-prog-stat,
:root:not([data-theme]) .dh-prog-stat {
  background: hsl(220 30% 96%);
  border-color: hsl(220 30% 88%);
}
.dh-prog-stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: hsl(var(--hue1) 55% 65%);
}
[data-theme="light"] .dh-prog-stat-num,
:root:not([data-theme]) .dh-prog-stat-num {
  color: hsl(var(--hue1) 55% 45%);
}
.dh-prog-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  flex: 1;
  margin-left: 16px;
}
