/* Community Prayer Board */
.prayer.prayer-hub {
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(5, 28, 44, .98), rgba(8, 44, 70, .98) 36%, #f4ede2 36%, #f4ede2 100%);
  color: var(--ink);
  overflow: hidden;
}

.prayer-hub .prayer-visual {
  height: 430px;
  background:
    radial-gradient(circle at 78% 35%, rgba(215, 173, 101, .2), transparent 30%),
    linear-gradient(110deg, rgba(5, 25, 39, .98), rgba(9, 54, 82, .95));
}

.prayer-hub .prayer-glow {
  width: 580px;
  height: 580px;
  right: -60px;
  top: -180px;
  background: radial-gradient(circle, rgba(244, 207, 142, .36), rgba(190, 135, 72, .11) 34%, transparent 66%);
}

.prayer-hub .praying-hands {
  right: 11%;
  top: 70px;
  font-size: 160px;
  color: rgba(250, 224, 184, .2);
}

.prayer-hub-shell {
  position: relative;
  z-index: 2;
  padding: 76px 0 86px;
}

.prayer-hero-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 66px;
}

.prayer-hub .prayer-copy {
  color: #fff;
  padding-top: 18px;
}

.prayer-hub .prayer-copy h2 {
  margin: 8px 0 18px;
  max-width: 650px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.prayer-hub .prayer-copy p {
  color: #d7e3e9;
  max-width: 620px;
  line-height: 1.7;
  font-size: 16px;
}

.prayer-board-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.prayer-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #eef7fb;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
}

.prayer-stat strong { color: #f0c985; }

.prayer-hub .prayer-form {
  margin: 0;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(1, 16, 27, .3);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.prayer-form-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.prayer-form-title h3 { margin: 0; font-size: 23px; }
.prayer-form-title span { font-size: 12px; color: #6d7f89; text-align: right; }

.prayer-hub .prayer-form label {
  display: block;
  margin-bottom: 14px;
  color: #344f60;
  font-size: 13px;
  font-weight: 700;
}

.prayer-hub .prayer-form input,
.prayer-hub .prayer-form textarea,
.prayer-hub .prayer-form select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d6e1e7;
  background: #f9fbfc;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.prayer-hub .prayer-form textarea { min-height: 126px; resize: vertical; }

.prayer-hub .prayer-form input:focus,
.prayer-hub .prayer-form textarea:focus,
.prayer-hub .prayer-form select:focus {
  border-color: #a87b3f;
  box-shadow: 0 0 0 3px rgba(215, 173, 101, .18);
}

.prayer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prayer-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 5px 0 14px;
}

.prayer-choice label {
  margin: 0 !important;
  border: 1px solid #d9e4e9;
  border-radius: 13px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  font-weight: 600 !important;
}

.prayer-choice input { width: auto !important; margin: 0 7px 0 0 !important; }
.prayer-choice small { display: block; margin: 5px 0 0 22px; color: #6d7f89; font-weight: 400; line-height: 1.4; }

.prayer-anonymous {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  font-weight: 600 !important;
}

.prayer-anonymous input { width: auto !important; margin: 0 !important; }

.prayer-hub .prayer-form .btn { width: 100%; justify-content: center; }
.prayer-hub .prayer-form .btn[disabled] { opacity: .62; cursor: wait; }
.prayer-hub .form-success { margin: 12px 0 0; color: #41606f; line-height: 1.5; font-size: 13px; }
.prayer-hub .form-success.is-error { color: #9a3e39; }

.prayer-board-section {
  position: relative;
  padding-top: 10px;
}

.prayer-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.prayer-board-heading .section-label { color: #956c35; }
.prayer-board-heading h2 { margin: 4px 0 8px; font-size: clamp(34px, 4vw, 48px); }
.prayer-board-heading p { margin: 0; max-width: 630px; color: #63727b; line-height: 1.6; }

.prayer-board-filter {
  min-width: 170px;
  border: 1px solid #d8cabb;
  background: rgba(255,255,255,.8);
  color: #394d58;
  border-radius: 12px;
  padding: 11px 13px;
}

.prayer-board-frame {
  position: relative;
  min-height: 380px;
  padding: 38px;
  border: 14px solid #7e4b2c;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(74,34,12,.07) 0 1px, transparent 2px),
    linear-gradient(135deg, #b47444, #a56538 48%, #bd7c4c);
  background-size: 12px 12px, 15px 15px, auto;
  box-shadow: inset 0 0 55px rgba(63, 30, 12, .25), 0 22px 54px rgba(69, 47, 30, .17);
}

.prayer-board-frame::before {
  content: "COMMUNITY PRAYER BOARD";
  position: absolute;
  left: 50%;
  top: -31px;
  transform: translateX(-50%);
  background: #f7efe4;
  border: 1px solid #d7c4af;
  box-shadow: 0 4px 12px rgba(50, 29, 16, .12);
  color: #765035;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 10px;
  padding: 8px 13px;
  border-radius: 6px;
  white-space: nowrap;
}

.prayer-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.prayer-note {
  --note: #fff5bd;
  --tilt: -1deg;
  position: relative;
  min-height: 235px;
  padding: 32px 23px 20px;
  background: var(--note);
  color: #443d31;
  box-shadow: 0 14px 25px rgba(50, 28, 10, .18);
  transform: rotate(var(--tilt));
  transition: transform .2s ease, box-shadow .2s ease;
}

.prayer-note:nth-child(4n + 2) { --note: #e9f1ff; }
.prayer-note:nth-child(4n + 3) { --note: #f9e6ec; }
.prayer-note:nth-child(4n + 4) { --note: #e8f4df; }
.prayer-note:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 18px 31px rgba(50, 28, 10, .25); }

.prayer-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #a9483e;
  box-shadow: inset -2px -3px 3px rgba(85, 17, 13, .32), 0 4px 5px rgba(75, 31, 21, .27);
}

.prayer-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #756d5e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.prayer-note-category { font-weight: 900; color: var(--accent); }
.prayer-note blockquote { margin: 19px 0 18px; font-family: Georgia, serif; font-size: 17px; line-height: 1.62; }
.prayer-note-author { margin: 0 0 17px; color: #6a6257; font-size: 12px; }

.prayer-note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(71, 57, 36, .14);
  padding-top: 13px;
}

.prayer-count { font-size: 12px; color: #625b50; }

.prayer-action {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #594a36;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.prayer-action:hover { background: rgba(255,255,255,.9); }
.prayer-action[disabled] { cursor: default; opacity: .7; }

.prayer-answered {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #286847;
  color: white;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.prayer-board-empty,
.prayer-board-loading {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.82);
  border: 1px dashed rgba(81, 49, 26, .25);
  border-radius: 14px;
  padding: 38px 22px;
  text-align: center;
  color: #624b3c;
}

.prayer-board-empty strong,
.prayer-board-loading strong { display: block; font-size: 20px; margin-bottom: 6px; }

.prayer-board-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .prayer.prayer-hub { background: linear-gradient(180deg, #082c46 0 41%, #f4ede2 41%); }
  .prayer-hero-row { grid-template-columns: 1fr; gap: 30px; }
  .prayer-hub .prayer-copy { padding-top: 0; }
  .prayer-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prayer-board-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .prayer.prayer-hub { background: linear-gradient(180deg, #082c46 0 43%, #f4ede2 43%); }
  .prayer-hub-shell { padding: 58px 0 68px; }
  .prayer-hub .prayer-copy h2 { font-size: 42px; }
  .prayer-form-grid, .prayer-choice { grid-template-columns: 1fr; }
  .prayer-board-frame { border-width: 9px; padding: 26px 16px; }
  .prayer-board-grid { grid-template-columns: 1fr; gap: 20px; }
  .prayer-note { min-height: 0; transform: none; }
  .prayer-note:hover { transform: translateY(-3px); }
  .prayer-board-filter { width: 100%; }
}
