/* community.css · 365-day Universal Love calendar */

.community-body { padding-top: 60px; }
.topbar .topnav a.active { color: var(--gold-bright); }

/* Hero */
.cm-hero {
  padding: 80px 0 50px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(232, 181, 66, 0.18), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(168, 99, 58, 0.10), transparent 60%);
  border-bottom: 1px solid var(--rule);
}
.cm-eyebrow {
  font-size: 10px; letter-spacing: 0.32em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 22px; font-weight: 700;
}
.cm-title {
  font-family: var(--serif); font-size: clamp(48px, 8vw, 96px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
}
.cm-lede {
  font-family: var(--serif); font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-dim); line-height: 1.5;
  margin-top: 22px; max-width: 720px;
}
.cm-lede strong { color: var(--gold-bright); font-weight: 600; }
.cm-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Stats */
.cm-stats { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.cm-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.cm-stat { text-align: center; padding: 14px 8px; }
.cm-stat-num {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  color: var(--gold-bright); font-variant-numeric: tabular-nums; line-height: 1;
}
.cm-stat-num.cm-stat-glow { text-shadow: 0 0 20px rgba(232, 181, 66, 0.4); }
.cm-stat-lbl {
  font-size: 9px; letter-spacing: 0.22em; color: var(--ink-faint);
  text-transform: uppercase; margin-top: 4px;
}

/* Calendar */
.cm-calendar { padding: 40px 0 60px; }
.cm-cal-header { margin-bottom: 32px; }
.cm-cal-header .block-lede a { color: var(--gold-bright); border-bottom: 1px dashed var(--gold); }

.cm-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cm-month {
  background: var(--bg-elev); border: 1px solid var(--rule);
  padding: 16px;
}
.cm-month-name {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  color: var(--gold-bright); margin-bottom: 10px; letter-spacing: 0.02em;
}
.cm-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cm-dow {
  font-size: 8.5px; letter-spacing: 0.05em; color: var(--ink-faint);
  text-align: center; padding: 4px 0; text-transform: uppercase; font-weight: 700;
}
.cm-cell {
  width: 100%; aspect-ratio: 1; border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.012); color: var(--ink-dim);
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.cm-cell:hover { background: rgba(200, 156, 44, 0.10); border-color: var(--rule-strong); color: var(--ink); }
.cm-cell.cm-filled {
  background: rgba(232, 181, 66, 0.30);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.cm-cell.cm-filled:hover { background: var(--gold-bright); }
.cm-cell.cm-today {
  outline: 2px solid var(--gold-bright);
  outline-offset: -2px;
  box-shadow: 0 0 12px rgba(232, 181, 66, 0.4);
  animation: cm-pulse 2.4s ease-in-out infinite;
}
@keyframes cm-pulse {
  0%, 100% { outline-color: var(--gold-bright); }
  50%      { outline-color: var(--gold); }
}
.cm-cell.cm-empty {
  border: none; background: transparent; cursor: default;
}

/* Progress */
.cm-progress {
  margin-top: 32px; padding: 18px 22px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--gold-bright);
}
.cm-progress-row {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); margin-bottom: 12px;
}
.cm-progress-num {
  font-size: 32px; font-weight: 700; color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.cm-progress-of { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint); text-transform: uppercase; flex: 1; }
.cm-progress-pct { font-size: 16px; font-weight: 700; color: var(--gold); }
.cm-progress-bar {
  height: 6px; background: rgba(255, 255, 255, 0.06); position: relative;
}
.cm-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.4s ease;
}

/* Modal */
.cm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 32px;
}
.cm-modal-overlay.open { display: flex; }
.cm-modal {
  background: var(--bg-elev); border: 1px solid var(--rule-strong);
  width: 100%; max-width: 560px; padding: 36px 36px 28px;
  position: relative; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.cm-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; background: transparent;
  border: 1px solid var(--rule-strong); color: var(--gold);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.cm-modal-close:hover { background: var(--gold); color: var(--bg); }
.cm-modal-eyebrow {
  font-size: 9.5px; letter-spacing: 0.28em; color: var(--gold);
  text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
.cm-modal-date {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}
.cm-modal-hint { font-size: 12px; color: var(--ink-faint); margin-bottom: 18px; line-height: 1.5; }
.cm-modal-input {
  width: 100%; background: var(--bg);
  border: 1px solid var(--rule-strong); color: var(--ink);
  padding: 12px 14px; font-family: var(--serif); font-size: 16px;
  line-height: 1.5; resize: vertical; min-height: 100px;
}
.cm-modal-input:focus { outline: 1px solid var(--gold-bright); }
.cm-modal-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--gold); margin: 8px 0 18px;
}
.cm-modal-meta-dim { color: var(--ink-faint); text-transform: uppercase; }
.cm-modal-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.cm-modal-actions .btn { padding: 9px 16px; font-size: 10.5px; }

/* Universal Love block on home */
.ulove-block {
  background: radial-gradient(ellipse at 50% 30%, rgba(232, 181, 66, 0.10), transparent 60%);
}
.ulove-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 28px;
}
.ulove-card {
  background: var(--bg-elev); border: 1px solid var(--rule);
  padding: 26px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.ulove-card-feature {
  background: linear-gradient(135deg, rgba(232, 181, 66, 0.14), rgba(168, 99, 58, 0.04));
  border-color: var(--rule-strong); border-left: 3px solid var(--gold-bright);
}
.ulove-eyebrow {
  font-size: 9.5px; letter-spacing: 0.28em; color: var(--gold);
  text-transform: uppercase; font-weight: 700;
}
.ulove-title {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--gold-bright); line-height: 1.1;
}
.ulove-blurb {
  font-size: 13px; color: var(--ink-dim); line-height: 1.6; flex: 1;
}
.ulove-blurb strong { color: var(--gold-bright); }

@media (max-width: 760px) {
  .cm-stats-row { grid-template-columns: repeat(2, 1fr); }
}
