/*
 * Heart of Hope — Shared Components
 */

/* =========================
   Soft card system (global)
   ========================= */

.hoh-card {
  background: var(--hoh-white-bg);
  border-radius: var(--hoh-radius-xl);
  padding: 32px 36px;
  margin: 28px auto;
  box-shadow: var(--hoh-shadow-soft);
  max-width: var(--hoh-max-width-card);
}

/* Hero card (often homepage) */
.hoh-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4efff 100%);
  border-radius: var(--hoh-radius-hero);
  padding: 48px 40px;
  margin: 32px auto;
  box-shadow: var(--hoh-shadow-soft);
  text-align: center;
  max-width: var(--hoh-max-width-card);
}

.hoh-hero-title {
  font-size: clamp(1.6rem, 4vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 0 auto 1rem;
  color: var(--hoh-purple);
}

.hoh-hero-tagline {
  font-size: 22px;
  opacity: 0.85;
  margin: 0;
  color: #4a3d80;
}

/* Hero card fade-in */
.hoh-hero-card {
  opacity: 0;
  transform: translateY(10px);
  animation: hohHeroFade 0.8s ease forwards;
}

@keyframes hohHeroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scripture / content card text alignment */
.hoh-scripture-card {
  text-align: center;
}

.hoh-front-content-card {
  line-height: 1.7;
  font-size: 18px;
  color: var(--hoh-text-main);
}

/* =========================
   Notice card
   ========================= */

.hoh-notices-card {
  background: linear-gradient(180deg, #f9f6ff 0%, #e8ddff 100%);
  border-radius: var(--hoh-radius-xl);
  padding: 28px 32px;
  margin: 28px auto;
  box-shadow: var(--hoh-shadow-soft);
  max-width: var(--hoh-max-width-card);
}

.hoh-notices-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 26px;
  color: var(--hoh-text-main);
  text-align: center;
}

.hoh-notices-content {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hoh-text-main);
  text-align: center;
}

.hoh-icon-info {
  font-size: 22px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
}

.hoh-notice-urgent {
  background: #fff0f0;
  border-left: 6px solid #dd3333;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #aa0000;
}

.hoh-notices-list {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  margin: 0 auto;
  max-width: 800px;
}

.hoh-notices-list li {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.6;
}

.hoh-notices-date {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 12px;
  text-align: center;
}

/* =========================
   GLOBAL HOH BUTTON SYSTEM
   Sanctuary‑Soft, Unified, Future‑Proof
   ========================= */

.hoh-button,
button.hoh-button,
a.hoh-button,
input[type=submit].hoh-button,
input[type=button].hoh-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  /* Sanctuary-soft purple */
  background: var(--hoh-purple);
  color: #ffffff;

  /* Padding + shape */
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;

 /* Softer typography */ 
 font-family: var(--hoh-font-sans); 
 font-size: 1rem; /* was 1.1rem */ 
 font-weight: 500; /* was 600 */

  /* Feel */
  box-shadow: var(--hoh-shadow-soft);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;

  /* Layout */
  margin: 1.5rem auto;
  text-align: center;
}

/* Hover */
.hoh-button:hover,
button.hoh-button:hover,
a.hoh-button:hover,
input[type=submit].hoh-button:hover,
input[type=button].hoh-button:hover {
  background: var(--hoh-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Active press */
.hoh-button:active,
button.hoh-button:active,
a.hoh-button:active,
input[type=submit].hoh-button:active,
input[type=button].hoh-button:active {
  transform: scale(0.96);
}

/* Optional color variants */
.hoh-button.green {
  background-color: #4CAF50;
  color: white;
}

.hoh-button.red {
  background-color: #f44336;
  color: white;
}

/* Wrapper + icon */
.hoh-button-wrapper {
  text-align: center;
}

.hoh-heart-accent {
  width: 32px;
  margin: 0 auto 0.75rem;
  display: block;
  opacity: 0.9;
}


/* =========================
   Scripture Rotator (global)
   ========================= */

.hoh-scripture-rotator {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 120px;
  margin: 3rem 0;
}

.hoh-verse {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  font-family: var(--hoh-font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: #3a2a6a;
  text-align: center;
  line-height: 1.5;
  padding: 1.5rem 2rem;
}

.hoh-verse.active {
  opacity: 1;
  transform: translateY(0);
}

.hoh-verse span {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  opacity: 0.8;
}

/* Optional halo */
.hoh-scripture-rotator::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle at center,
    rgba(90, 62, 166, 0.08),
    rgba(90, 62, 166, 0) 70%
  );
  border-radius: 20px;
  z-index: -1;
}

/* =========================
   Latest Posts Grid
   ========================= */

.wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 20px 0;
}

.wp-block-latest-posts__list li {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: var(--hoh-shadow-deep);
  border: 1px solid var(--hoh-border-soft);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-latest-posts__list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.wp-block-latest-posts__list li::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(
    circle at center,
    rgba(90, 62, 166, 0.12),
    rgba(90, 62, 166, 0) 70%
  );
  border-radius: 24px;
  z-index: -1;
}

.wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wp-block-latest-posts__post-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--hoh-text-main);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.wp-block-latest-posts__post-date {
  font-size: 14px;
  color: #777777;
  display: block;
  margin-bottom: 12px;
}

.wp-block-latest-posts__post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.wp-block-latest-posts__read-more {
  color: var(--hoh-purple);
  font-weight: 600;
  text-decoration: none;
}

/* Title wrap fix */
@media (max-width: 900px) {
  .wp-block-latest-posts__post-title {
    font-size: 17px;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .wp-block-latest-posts.is-grid {
    gap: 20px;
    grid-template-columns: 1fr !important;
  }

  .wp-block-latest-posts__list li {
    padding: 18px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .wp-block-latest-posts__featured-image img {
    margin-bottom: 12px;
  }

  .wp-block-latest-posts__post-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .wp-block-latest-posts__post-date {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .wp-block-latest-posts__post-excerpt,
  .wp-block-latest-posts__read-more {
    font-size: 15px;
  }
}

/* =========================
   Responsive Embeds (Global)
   ========================= */

.hoh-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hoh-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

/* SoundCloud override */
.hoh-embed.soundcloud {
  aspect-ratio: unset;
  height: auto;
}

.hoh-embed.soundcloud iframe {
  height: 140px !important;
}

/* =========================
   GLOBAL HOH BANNER TITLE — Whisper Edition
   ========================= */

.hoh-banner-title {
  font-family: var(--hoh-font-serif);
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem);

  /* Whisper-soft weight */
  font-weight: 400;

  /* Gentle tone */
  color: var(--hoh-purple);
  opacity: 0.85;

  text-align: center;
  letter-spacing: 0.3px;

  /* Soft spacing */
  margin: 2rem auto 1.5rem;

  /* Whisper fade-in */
  opacity: 0;
  transform: translateY(6px);
  animation: hohBannerWhisper 0.9s ease forwards;
}

@keyframes hohBannerWhisper {
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

/* =========================
   Prayer Wall (Page‑Scoped)
   ========================= */

.page-prayer-wall .hoh-prayer-wall-list {
  position: relative;
  padding: 4rem 0;
}

/* Scripture watermark */
.page-prayer-wall .hoh-prayer-wall-list::before {
  content: "“The prayer of a righteous person is powerful and effective.” — James 5:16";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;

  font-family: var(--hoh-font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.4;
  text-align: center;

  color: rgba(128, 90, 160, 0.12);

  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Prayer cards above watermark */
.page-prayer-wall .hoh-prayer-item {
  position: relative;
  z-index: 2;
}
