/* ==========================================================================
   Lich Am Pages — Lịch âm từng ngày
   ========================================================================== */

.la-main { min-height: calc(100vh - 200px); padding: 24px 0 48px; background: #f0fdf4; }
.la-container { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* Breadcrumb */
.la-breadcrumb { margin-bottom: 20px; font-size: 13px; color: #6b7280; }
.la-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.la-breadcrumb li { display: flex; align-items: center; }
.la-breadcrumb li + li::before { content: '›'; margin: 0 8px; color: #d1d5db; }
.la-breadcrumb a { color: #4b5563; text-decoration: none; }
.la-breadcrumb a:hover { color: #059669; text-decoration: underline; }
.la-breadcrumb [aria-current="page"] { color: #111827; font-weight: 500; }

/* Day page header */
.la-day { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; }

.la-day-header {
  display: flex; align-items: center; gap: 0;
  padding: 24px 28px; background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
}
.la-solar { text-align: center; min-width: 130px; }
.la-weekday { font-size: 14px; opacity: 0.85; margin-bottom: 4px; }
.la-day-num { font-size: 56px; font-weight: 800; line-height: 1; }
.la-month-year { font-size: 14px; opacity: 0.85; margin-top: 4px; }
.la-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.25); margin: 0 24px; }
.la-lunar { flex: 1; }
.la-lunar-date { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.la-lunar-year { font-size: 14px; opacity: 0.85; margin-bottom: 8px; }
.la-canchi { font-size: 14px; opacity: 0.9; }
.la-canchi strong { font-weight: 700; }

/* Day status */
.la-status {
  text-align: center; padding: 10px; font-size: 16px; font-weight: 700;
}
.la-status-tot { background: #dcfce7; color: #166534; }
.la-status-xau { background: #fee2e2; color: #991b1b; }
.la-status-binh { background: #fef9c3; color: #854d0e; }

/* Sections */
.la-sections { padding: 20px 28px; }
.la-section { margin-bottom: 24px; }
.la-section h2 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 12px; }

/* Giờ hoàng đạo grid */
.la-gio-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.la-gio-item {
  display: inline-block; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
}
.la-gio-tot { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Tags (việc nên/tránh) */
.la-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.la-tag {
  display: inline-block; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
}
.la-tag-nen { background: #dcfce7; color: #166534; }
.la-tag-tranh { background: #fee2e2; color: #991b1b; }

/* Events */
.la-event-list { list-style: none; padding: 0; margin: 0; }
.la-event-list li {
  padding: 8px 12px; margin-bottom: 4px;
  background: #f0fdf4; border-radius: 6px;
  font-size: 14px; color: #166534;
  border-left: 3px solid #34d399;
}

/* Prev/next nav */
.la-prev-next {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin: 20px 0;
}
.la-nav-prev, .la-nav-next, .la-nav-month {
  display: inline-block; padding: 10px 18px;
  background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  text-decoration: none; color: #374151; font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.la-nav-prev:hover, .la-nav-next:hover, .la-nav-month:hover {
  border-color: #059669; color: #059669; background: #f0fdf4;
}
.la-nav-placeholder { display: block; width: 80px; }

/* Month index */
.la-month-title {
  font-size: 32px; font-weight: 800; color: #111827;
  margin: 0 0 16px; font-family: Georgia, serif;
}
.la-month-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.la-month-nav a {
  padding: 8px 16px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px; text-decoration: none; color: #374151;
  font-size: 14px; font-weight: 500; transition: all 0.15s;
}
.la-month-nav a:hover { border-color: #059669; color: #059669; }

/* Calendar grid */
.la-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; font-weight: 700;
  color: #6b7280; margin-bottom: 4px; padding: 8px 0;
}
.la-sat { color: #0284c7; }
.la-sun { color: #dc2626; }

.la-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 16px;
}
.la-cal-empty { aspect-ratio: 1; }
.la-cal-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; background: #fff; border-radius: 8px;
  text-decoration: none; color: #111827; border: 1px solid #e5e7eb;
  position: relative; transition: all 0.15s; padding: 4px;
}
.la-cal-cell:hover { border-color: #059669; transform: scale(1.05); z-index: 2; box-shadow: 0 4px 12px rgba(5,150,105,0.15); }
.la-cal-solar { font-size: 16px; font-weight: 700; }
.la-cal-lunar { font-size: 10px; color: #6b7280; }
.la-cal-tot { background: #f0fdf4; border-color: #86efac; }
.la-cal-xau { background: #fef2f2; border-color: #fca5a5; }
.la-cal-holiday { position: absolute; top: 2px; right: 4px; font-size: 6px; color: #f59e0b; }

/* Legend */
.la-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: #6b7280; }
.la-legend-item { display: flex; align-items: center; gap: 4px; }
.la-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.la-dot-tot { background: #86efac; }
.la-dot-xau { background: #fca5a5; }
.la-dot-le { background: #f59e0b; }

/* Year index */
.la-year-title {
  font-size: 34px; font-weight: 800; color: #111827;
  margin: 0 0 12px; font-family: Georgia, serif;
}
.la-year-intro { font-size: 15px; line-height: 1.7; color: #4b5563; margin: 0 0 24px; }
.la-year-intro strong { color: #111827; }
.la-year-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.la-year-card {
  display: block; padding: 18px 16px; background: #fff; border-radius: 10px;
  text-decoration: none; color: inherit; border: 1px solid #e5e7eb; transition: all 0.15s;
}
.la-year-card:hover { border-color: #059669; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(5,150,105,0.1); }
.la-year-month { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.la-year-stats { display: flex; gap: 8px; font-size: 11px; }
.la-year-tot { color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.la-year-xau { color: #991b1b; background: #fee2e2; padding: 2px 8px; border-radius: 999px; }
.la-year-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.la-year-nav a {
  padding: 10px 20px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  text-decoration: none; color: #374151; font-size: 14px; transition: all 0.15s;
}
.la-year-nav a:hover { border-color: #059669; color: #059669; }

/* Super index */
.la-super-title { font-size: 36px; font-weight: 800; color: #111827; margin: 0 0 12px; font-family: Georgia, serif; }
.la-super-intro { font-size: 16px; line-height: 1.75; color: #4b5563; margin: 0 0 28px; }
.la-super-intro strong { color: #111827; }
.la-super-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.la-super-card {
  display: block; padding: 20px 28px; background: linear-gradient(135deg, #065f46, #047857);
  border-radius: 12px; text-decoration: none; color: #fff;
  font-size: 20px; font-weight: 700; transition: all 0.2s; flex: 1; min-width: 200px; text-align: center;
}
.la-super-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(5,150,105,0.2); }

/* Responsive */
@media (max-width: 640px) {
  .la-day-header { flex-direction: column; padding: 20px; gap: 16px; }
  .la-divider { width: 80%; height: 1px; margin: 0; }
  .la-solar { min-width: auto; }
  .la-day-num { font-size: 42px; }
  .la-sections { padding: 16px 18px; }
  .la-month-title, .la-year-title { font-size: 24px; }
  .la-super-title { font-size: 26px; }
  .la-year-grid { grid-template-columns: repeat(3, 1fr); }
  .la-prev-next { flex-wrap: wrap; justify-content: center; }
}

/* Dark mode */
body.theme-dark .la-main { background: #0f1f17; }
body.theme-dark .la-day { background: #1a2e23; }
body.theme-dark .la-sections { background: #1a2e23; }
body.theme-dark .la-section h2 { color: #f0fdf4; }
body.theme-dark .la-gio-tot { background: #064e3b; color: #6ee7b7; border-color: #065f46; }
body.theme-dark .la-tag-nen { background: #064e3b; color: #6ee7b7; }
body.theme-dark .la-tag-tranh { background: #450a0a; color: #fca5a5; }
body.theme-dark .la-event-list li { background: #064e3b; color: #a7f3d0; border-left-color: #34d399; }
body.theme-dark .la-cal-cell { background: #1a2e23; border-color: #2d4a3a; color: #f0fdf4; }
body.theme-dark .la-cal-tot { background: #064e3b; border-color: #059669; }
body.theme-dark .la-cal-xau { background: #450a0a; border-color: #dc2626; }
body.theme-dark .la-year-card, body.theme-dark .la-nav-prev, body.theme-dark .la-nav-next, body.theme-dark .la-nav-month, body.theme-dark .la-month-nav a, body.theme-dark .la-year-nav a { background: #1a2e23; border-color: #2d4a3a; color: #d1fae5; }
body.theme-dark .la-month-title, body.theme-dark .la-year-title, body.theme-dark .la-year-month, body.theme-dark .la-super-title { color: #f0fdf4; }
body.theme-dark .la-year-intro, body.theme-dark .la-super-intro { color: #a7f3d0; }

/* Summary — tóm tắt duy nhất */
.la-summary { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid #16a34a; line-height: 1.8; }
.la-summary h2 { font-size: 18px; font-weight: 700; color: #166534; margin: 0 0 10px; }
.la-summary p { font-size: 14px; color: #374151; margin: 0 0 8px; }
.la-summary p:last-child { margin-bottom: 0; }
.la-summary strong { color: #166534; }
body.theme-dark .la-summary { background: #1a2e23; border-left-color: #34d399; }
body.theme-dark .la-summary h2 { color: #34d399; }
body.theme-dark .la-summary p { color: #d1fae5; }
body.theme-dark .la-summary strong { color: #6ee7b7; }
