/**
 * RLCC Core — homepage shortcode components.
 * Divi owns section placement / negative offsets; these styles are the inner cards only.
 *
 * Typography matches design reference (globals.css):
 * - Body / UI: theme “Satoshi Regular”
 * - Headings: theme “Montserrat” (bold)
 * Fonts are loaded by Divi/theme — not bundled here.
 */

/*
 * Scoped fallbacks (match child theme tokens.css). When rlcc-divi-child loads,
 * :root already defines these; local copies keep shortcodes styled if theme swaps.
 */
.rlcc-homepage-message,
.rlcc-sunday-live-banner,
.rlcc-related-listen {
  --rlcc-green: #365233;
  --rlcc-green-dark: #082900;
  --rlcc-surface: #f9f9f9;
  --rlcc-cream: #fbfdf8;
  --rlcc-text-main: #1d221d;
  --rlcc-text-muted: #5d675d;
  --rlcc-font-body: "Satoshi Regular", "Satoshi-Regular", Satoshi, sans-serif;
  --rlcc-font-heading: Montserrat, "Montserrat", sans-serif;
  --rlcc-radius-sm: 0.25rem; /* Tailwind v4 rounded-sm — PrimaryButton */
  --rlcc-radius-md: 0.375rem; /* rounded-md */
  --rlcc-radius-lg: 0.5rem; /* rounded-lg */
  box-sizing: border-box;
  font-family: var(--rlcc-font-body);
  color: var(--rlcc-text-main);
  -webkit-font-smoothing: antialiased;
}

.rlcc-homepage-message *,
.rlcc-sunday-live-banner *,
.rlcc-related-listen *,
.rlcc-btn {
  box-sizing: border-box;
}

.rlcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rlcc-radius-sm);
  padding: 0.75rem 1.5rem; /* py-3 px-6 */
  font-family: var(--rlcc-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rlcc-btn--primary {
  background: var(--rlcc-green);
  color: #fff !important;
  border: 1px solid var(--rlcc-green);
}

.rlcc-btn--primary:hover,
.rlcc-btn--primary:focus {
  background: var(--rlcc-green-dark);
  border-color: var(--rlcc-green-dark);
  color: #fff !important;
}

.rlcc-btn--outline {
  background: transparent;
  color: var(--rlcc-green) !important;
  border: 1px solid var(--rlcc-green);
}

.rlcc-btn--outline:hover,
.rlcc-btn--outline:focus {
  background: var(--rlcc-green);
  color: #fff !important;
}

/* —— Start with a Message (featured row) —— */
.rlcc-homepage-message {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .rlcc-homepage-message {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
}

.rlcc-homepage-message__media {
  display: block;
  overflow: hidden;
  border-radius: var(--rlcc-radius-lg); /* rounded-lg = 0.5rem */
  box-shadow: var(--rlcc-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
  aspect-ratio: var(--rlcc-aspect-video, 16 / 9);
}

@media (min-width: 1024px) {
  .rlcc-homepage-message__media {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }
}

.rlcc-homepage-message__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.rlcc-homepage-message__media:hover img {
  transform: scale(1.02);
}

.rlcc-homepage-message__eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rlcc-green);
}

.rlcc-homepage-message__title {
  margin: 0.5rem 0 0;
  font-family: var(--rlcc-font-heading) !important;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 700 !important;
  line-height: 1.25;
}

.rlcc-homepage-message__title a {
  color: var(--rlcc-text-main);
  text-decoration: none;
}

.rlcc-homepage-message__title a:hover {
  color: var(--rlcc-green);
}

.rlcc-homepage-message__meta {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--rlcc-text-muted);
}

.rlcc-homepage-message__description {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--rlcc-text-muted);
}

.rlcc-homepage-message__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .rlcc-homepage-message__actions {
    flex-direction: row;
  }
}

/* —— Sunday Live Stream inner card (SundaySection.js) ——
 * Outer card placement / negative offset = Divi. Inner grid + type + controls = us.
 */
.rlcc-sunday-live-banner {
  display: grid;
  gap: 1.5rem; /* gap-6 */
  padding: 1.25rem; /* p-5 */
  background: #fff;
  border-radius: var(--rlcc-radius-lg); /* rounded-lg = 0.5rem */
  box-shadow: 0 20px 25px -5px rgba(8, 41, 0, 0.1), 0 8px 10px -6px rgba(8, 41, 0, 0.1);
}

@media (min-width: 640px) {
  .rlcc-sunday-live-banner {
    padding: 1.75rem; /* sm:p-7 */
  }
}

@media (min-width: 1024px) {
  .rlcc-sunday-live-banner {
    grid-template-columns: 1.1fr 2fr 1fr;
    align-items: center;
  }
}

.rlcc-sunday-live-banner__media {
  overflow: hidden;
  border-radius: var(--rlcc-radius-sm);
  line-height: 0;
}

.rlcc-sunday-live-banner__media img {
  display: block;
  width: 100%;
  height: 9rem; /* h-36 */
  object-fit: cover;
  border-radius: var(--rlcc-radius-sm);
}

.rlcc-sunday-live-banner__copy {
  min-width: 0;
}

.rlcc-sunday-live-banner__heading {
  margin: 0;
  font-family: var(--rlcc-font-heading) !important;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700 !important;
  color: var(--rlcc-green-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rlcc-sunday-live-banner__text {
  margin: 0.5rem 0 0; /* mt-2 */
  font-family: var(--rlcc-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5rem; /* leading-6 */
  color: var(--rlcc-text-muted);
}

.rlcc-sunday-live-banner__times {
  margin: 0.5rem 0 0; /* mt-2 */
  font-family: var(--rlcc-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--rlcc-text-main);
}

.rlcc-sunday-live-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* gap-2 */
}

.rlcc-sunday-live-banner__actions .rlcc-btn {
  width: 100%;
  border-radius: var(--rlcc-radius-sm);
}

/* Beat Divi link / button resets inside the shortcode */
.rlcc-sunday-live-banner a.rlcc-btn {
  border-radius: var(--rlcc-radius-sm) !important;
  font-family: var(--rlcc-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 0.75rem 1.5rem !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.rlcc-sunday-live-banner a.rlcc-btn--primary {
  background-color: var(--rlcc-green) !important;
  border-color: var(--rlcc-green) !important;
  color: #fff !important;
}

.rlcc-sunday-live-banner a.rlcc-btn--outline {
  background-color: transparent !important;
  border: 1px solid var(--rlcc-green) !important;
  color: var(--rlcc-green) !important;
}

.rlcc-sunday-live-banner a.rlcc-btn--outline:hover,
.rlcc-sunday-live-banner a.rlcc-btn--outline:focus {
  background-color: var(--rlcc-green) !important;
  color: #fff !important;
}

/* Go deeper through the week — Watch Message single */
.rlcc-related-listen {
  margin: 2.5rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rlcc-related-listen__eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rlcc-green);
}

.rlcc-related-listen__heading {
  margin: 0.75rem 0 0;
  font-family: var(--rlcc-font-heading) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--rlcc-green-dark);
}

@media (min-width: 640px) {
  .rlcc-related-listen__heading {
    font-size: 1.875rem;
  }
}

.rlcc-related-listen__intro {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--rlcc-text-muted);
}

.rlcc-related-listen__actions {
  margin-top: 1.25rem;
}

.rlcc-related-listen__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rlcc-related-listen__list li + li {
  margin-top: 0.5rem;
}

.rlcc-related-listen__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
}

.rlcc-related-listen__ep-title {
  font-weight: 500;
  color: var(--rlcc-text-main);
}

.rlcc-related-listen__link:hover .rlcc-related-listen__ep-title {
  color: var(--rlcc-green);
}

.rlcc-related-listen__ep-date {
  color: var(--rlcc-text-muted);
}
