/* My Bethany Prayer Wall Styles — mybethany.com classic branding */
/* Colors sourced directly from the Bethany Church olive tree logo */

:root {
  --bpw-navy: #6a7c1c;        /* dark olive-green — primary brand */
  --bpw-navy-dark: #4e5c14;   /* deeper olive */
  --bpw-olive: #8ca525;       /* leaf green from logo */
  --bpw-olive-light: #a8c030; /* lighter leaf green */
  --bpw-cream: #f8f8f4;       /* warm off-white */
  --bpw-warm-white: #ffffff;  /* white */
  --bpw-gold: #b89000;        /* amber for answered prayers */
  --bpw-charcoal: #2D2000;    /* dark brown from logo script text */
  --bpw-text-light: #6B6B6B;  /* secondary text */
}

.mbpw-wrap {
  max-width: 100%;
  margin: 0;
}

/* ============ SUBMISSION FORM ============ */
.mbpw-form-card {
  background: var(--bpw-warm-white);
  border-radius: 12px;
  padding: 28px 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.mbpw-form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bpw-olive);
  margin: 0 0 8px;
}

.mbpw-form-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-style: italic;
  color: var(--bpw-navy);
  line-height: 1;
  margin: 0 0 12px;
  font-weight: 400;
}

.mbpw-form-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bpw-text-light);
  margin: 0 0 22px;
}

.mbpw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mbpw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mbpw-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bpw-charcoal);
}

.mbpw-required { color: #c62828; }
.mbpw-optional {
  font-weight: 400;
  color: var(--bpw-text-light);
  font-size: 12px;
}

.mbpw-field input,
.mbpw-field textarea {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bpw-cream);
  color: var(--bpw-charcoal);
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
}

.mbpw-field textarea {
  resize: vertical;
  min-height: 100px;
}

.mbpw-field input:focus,
.mbpw-field textarea:focus {
  outline: none;
  border-color: var(--bpw-navy);
  background: var(--bpw-warm-white);
}

/* Honeypot - hide from real users */
.mbpw-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mbpw-submit-btn {
  background: var(--bpw-navy);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.mbpw-submit-btn:active {
  background: var(--bpw-navy-dark);
}

.mbpw-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mbpw-error {
  color: #c62828;
  font-size: 14px;
  margin: 8px 0 0;
}

.mbpw-success {
  background: var(--bpw-olive);
  color: white;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.5;
}

/* ============ WALL HEADER ============ */
.mbpw-wall-header {
  text-align: center;
  margin: 32px 0 20px;
}

.mbpw-wall-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bpw-olive);
  margin: 0 0 8px;
}

.mbpw-wall-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--bpw-navy);
  line-height: 1;
  margin: 0 0 12px;
  font-weight: 400;
}

.mbpw-wall-intro {
  font-size: 14px;
  color: var(--bpw-text-light);
  margin: 0;
}

.mbpw-wall-icon {
  display: inline-block;
}

/* ============ REQUEST WALL ============ */
.mbpw-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mbpw-empty {
  background: var(--bpw-warm-white);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  color: var(--bpw-text-light);
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.mbpw-card {
  background: var(--bpw-warm-white);
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--bpw-olive);
  position: relative;
}

.mbpw-card.is-answered {
  border-left-color: var(--bpw-gold);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.05) 0%, var(--bpw-warm-white) 100%);
}

.mbpw-answered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bpw-gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.mbpw-answered-badge .mbpw-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mbpw-card-meta {
  font-size: 12px;
  color: var(--bpw-text-light);
  margin-bottom: 10px;
}

.mbpw-card-name {
  font-weight: 700;
  color: var(--bpw-navy);
}

.mbpw-card-dot {
  margin: 0 6px;
  opacity: 0.5;
}

.mbpw-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bpw-charcoal);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.mbpw-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Shared icon sizing inside buttons */
.mbpw-pray-btn .mbpw-icon,
.mbpw-praise-btn .mbpw-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Praying button */
.mbpw-pray-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bpw-cream);
  border: 1px solid rgba(90, 122, 58, 0.2);
  border-radius: 999px;
  color: var(--bpw-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mbpw-pray-btn:not(:disabled):active {
  transform: scale(0.96);
}

.mbpw-pray-btn.is-praying {
  background: var(--bpw-olive);
  color: white;
  border-color: var(--bpw-olive);
}

/* Disabled state for "Prayed" on answered prayers */
.mbpw-pray-btn.is-disabled,
.mbpw-pray-btn:disabled {
  background: transparent;
  color: var(--bpw-text-light);
  border-color: rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  opacity: 0.7;
}

.mbpw-pray-count {
  opacity: 0.75;
  font-weight: 600;
}

.mbpw-pray-btn.is-praying .mbpw-pray-count {
  opacity: 0.9;
}

/* Praise button (gold, shown on answered prayers) */
.mbpw-praise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bpw-cream);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  color: var(--bpw-gold);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mbpw-praise-btn:not(:disabled):active {
  transform: scale(0.96);
}

.mbpw-praise-btn.is-praising {
  background: var(--bpw-gold);
  color: white;
  border-color: var(--bpw-gold);
}

.mbpw-praise-count {
  opacity: 0.85;
  font-weight: 600;
}

/* ============ LOAD MORE ============ */
.mbpw-load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.mbpw-load-more {
  background: transparent;
  color: var(--bpw-navy);
  border: 1.5px solid var(--bpw-navy);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.mbpw-load-more:active {
  background: var(--bpw-navy);
  color: white;
}

.mbpw-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .mbpw-form-title {
    font-size: 52px;
  }
  .mbpw-wall-title {
    font-size: 64px;
  }
  .mbpw-list {
    gap: 16px;
  }
}
