/*
 Theme Name: GRL Podcast Base
 Description: Golden Rule Live Podcast Framework built on Astra.
 Author: Golden Rule Live
 Template: astra
 Version: 1.0.0
*/

/* ================================
   Custom Font
================================ */

body {
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alt-font {
	font-family: faustina, sans-serif;
	font-weight: 300;
}

.alt-font-header {
	line-height: 0.65;
	font-family: faustina, sans-serif;
	font-weight: 300;
}


/* ================================
   Episode Layout
================================ */

/* Full-bleed section */
.single-post .entry-content .bleed-section{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  padding-left: 20px;
  padding-right: 20px;
}

/* Centered inner content */
.single-post .entry-content .bleed-section .bleed-inner{
  max-width: 1200px;  /* match your site container if you want */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ---------------------------------------------
   GRL Episode: Single Post Hook
--------------------------------------------- */

.grl-episode-hook {
  display: block;
  width: 100%;
  max-width: none;
  margin: 12px 0 32px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.45;
  text-align: left;
}

/* ---------------------------------------------
   YouTube: Pending Episode Message
--------------------------------------------- */

.grl-yt-block--pending {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: #1cbbc7;
  color: #1c285a;
  font-size: 24px;
  line-height: 1.35;
}

.grl-yt-block__available-label {
  white-space: nowrap;
}

.grl-yt-block__available-date {
  color: #1c285a;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .grl-yt-block--pending {
    display: block;
    padding: 16px 18px;
    font-size: 20px;
    line-height: 1.35;
  }

  .grl-yt-block__available-label,
  .grl-yt-block__available-date {
    display: block;
  }

  .grl-yt-block__available-date {
    margin-top: 4px;
  }
}

/* ======================================================
   EPISODE META SHORTCODES
====================================================== */

.grl-episode-number,
.grl-episode-guest {
  display: block;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Guest details section */
.grl-episode-guest-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Guest row: 33.33% image / 66.66% details */
.grl-episode-guest-details__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

/* Image column */
.grl-episode-guest-details__image-wrap {
  width: 100%;
}

.grl-episode-guest-details__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(24px);
  animation: grlGuestImageFadeUp 700ms ease-out forwards;
}

/* Details column */
.grl-episode-guest-details__content {
  width: 100%;
}

.grl-episode-guest-details__name {
  margin: 0 0 10px;
}

.grl-episode-guest-details__role {
  margin: 0 0 14px;
}

/* Links / icons */
.grl-episode-guest-details__links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.grl-episode-guest-details__icon-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.25s ease;
}

.grl-episode-guest-details__icon-link:hover {
  color: #D4AF37;
}

.grl-episode-guest-details__icon-link svg {
  fill: currentColor;
}

/* Bio / blurb */
.grl-episode-guest-details__description {
  margin: 0;
}

/* Fade-up image animation */
@keyframes grlGuestImageFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .grl-episode-guest-details__image {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .grl-episode-guest-details__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grl-episode-guest-details__image {
    max-width: 360px;
  }
}

/*.grl-episode-number {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grl-episode-guest {
  font-size: 22px;
  font-weight: 600;
}*/

/* ======================================================
   BUTTONS
====================================================== */

.grl-button {
    display: inline-block;
    padding: 6px 14px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #111;
    transition: all 0.2s ease;
}

.grl-button:hover {
    background-color: #1cc799;
    color: #000;
    border-color: #1cc799;
}

/* ================================
   Episode Tags - as buttons
================================ */

.episode-tags a {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px 6px 4px 0;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #111;
    transition: all 0.2s ease;
}

.episode-tags a:hover {
    background-color: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}



/* ================================
   Share Buttons
================================ */

/* Wrapper */
.episode-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Baseline pill style (intentionally slightly different from tags) */
.episode-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 14px;
  margin: 4px 6px 4px 0;

  font-size: 15px;
  font-weight: 600;

  text-decoration: none !important;
  border-radius: 50px;

  border: 1px solid rgba(25, 71, 143, 0.25);
  background-color: #19478f;
  transition: all 0.2s ease;
  cursor: pointer;
  color: inherit;

  appearance: none;
  -webkit-appearance: none;
}

/* Hover style (share can diverge later) */
.episode-share__btn:hover {
  background-color: #f5f5f5;
  color: #1c285a !important;
  border-color: #111;
}

/* Icon alignment */
.share-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Toast */
.episode-share__toast {
  font-size: 13px;
  opacity: 0.8;
  margin-left: 6px;
}

/* ================================
   Platform Icons (icon-only)
================================ */

.episode-platform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.25rem;
}

.episode-platform__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  text-decoration: none !important;
  border-radius: 0px;
  transition: all 0.2s ease;
}

.episode-platform__icon {
  width: 50px;
  height: 50px;
  display: block;
}

.episode-platform__btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}


/* ======================================================
   IMAGE MASK UTILITIES
   Base + Two Mask Variants + Square Frame
====================================================== */

/* Base mask behavior (apply to the WRAPPER element) */
.grl-mask {
  display: block;
  overflow: hidden;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

/* Mask SVG: Portrait/Tall (available for later use) */
.grl-mask--tta-portrait {
  -webkit-mask-image: url('/wp-content/themes/grl-podcast-base/assets/masks/talking-ta-mask.svg');
  mask-image: url('/wp-content/themes/grl-podcast-base/assets/masks/talking-ta-mask.svg');
}

/* Mask SVG: Square (current featured choice) */
.grl-mask--tta-square {
  -webkit-mask-image: url('/wp-content/themes/grl-podcast-base/assets/masks/talking-ta-alt-mask.svg');
  mask-image: url('/wp-content/themes/grl-podcast-base/assets/masks/talking-ta-alt-mask.svg');
}

/* Frame ratio: Square */
.grl-frame--square {
  aspect-ratio: 1 / 1;
}

/* Frame ratio: Portrait/Tall (matches talking-ta-mask.svg viewBox ratio) */
.grl-frame--portrait {
  aspect-ratio: 115.6 / 155.6;
}


/* Make inner image fill the frame cleanly */
.grl-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ======================================================
   TAG ARCHIVE FEATURED THUMB SIZE FIX
====================================================== */

.grl-tag-featured__thumbwrap {
  width: 100%;
  max-width: 420px; /* adjust up/down to taste will change temp*/
}

.grl-tag-featured__card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.grl-tag-episodes__thumb {
  width: 140px; /* adjust will change temp*/
  flex: 0 0 140px;
}


@media (max-width: 768px) {
  .grl-tag-featured__card {
    flex-direction: column;
    gap: 16px;
  }

  .grl-tag-featured__thumbwrap {
    max-width: 100%;
  }
}

/* ======================================================
   EPISODES PAGE
====================================================== */

/* Episodes page full shell gradient */
body:has(.grl-episodes-page) {
  background: linear-gradient(180deg, #1c285a 0%, #1b84c6 100%);
}

body:has(.grl-episodes-page) #page,
body:has(.grl-episodes-page) .site,
body:has(.grl-episodes-page) .site-header,
body:has(.grl-episodes-page) #masthead,
body:has(.grl-episodes-page) .main-header-bar,
body:has(.grl-episodes-page) .ast-primary-header-bar,
body:has(.grl-episodes-page) .ast-mobile-header-wrap,
body:has(.grl-episodes-page) .ast-builder-grid-row,
body:has(.grl-episodes-page) .site-content,
body:has(.grl-episodes-page) .ast-container,
body:has(.grl-episodes-page) #primary,
body:has(.grl-episodes-page) .grl-episodes-page {
  background: transparent;
}

.grl-episodes-page {
  color: #fff;
}

/* Shared section spacing */
.grl-episodes-hero,
.grl-episodes-list {
  padding: 50px 0;
}

.grl-episodes-hero__inner,
.grl-episodes-list__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 700px) {
  .grl-episodes-list__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grl-episodes-sort {
    width: 100%;
    justify-content: space-between;
  }

  .grl-episodes-sort__select {
    min-width: 180px;
  }
}


/* ======================================================
   HERO SECTION
====================================================== */

.grl-episodes-hero__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.grl-episodes-hero__title {
  margin: 0 0 32px;
}

.grl-episodes-hero__title a {
  color: inherit;
  text-decoration: none;
}

.grl-episodes-hero__thumb {
  display: block;
  width: 100%;
  margin: 0 0 28px;
}

.grl-episodes-hero__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.grl-episodes-hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.grl-episodes-hero__meta {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grl-episodes-hero__description {
  max-width: none;
  width: 100%;
  line-height: 1.6;
  margin: 0;
}

/* ======================================================
   Mobile adjust
====================================================== */

.grl-episodes-hero__title {
   font-size: clamp(2.25rem, 11vw, 4rem);
   line-height: 0.99;
   letter-spacing: -0.04em;
   max-width: 100%;
   
}

@media (max-width: 767px) {

  .grl-episode-card__content {
    position: relative;
    margin-top: -80px;
    z-index: 2;
  }

}

/* ======================================================
   EPISODE STACK / CARDS
====================================================== */

.grl-episode-stack {
  margin-top: 0;
  padding-top: 0;
}

.grl-episode-stack > .grl-episode-card:first-child {
  margin-top: 0;
  padding-top: 0;
}

.grl-episode-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.grl-episode-card__thumb {
  flex: 0 0 220px;
}

.grl-episode-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grl-episode-card__content {
  flex: 1;
  align-self: flex-start;
}

.grl-episode-card__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.grl-episode-card__title {
  margin: 0 0 12px;
}

.grl-episode-card__title a {
  color: inherit;
  text-decoration: none;
}

.grl-episode-card__guest {
  /*font-weight: 500;*/
  margin-bottom: 14px;
}

.grl-episode-card__description {
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 20px;
}


/* ======================================================
   MORE EPISODES HEADER / CONTROLS
====================================================== */

.grl-episodes-list__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.grl-episodes-list__header h2 {
  margin: 0;
}

.grl-episodes-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.grl-episodes-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grl-episodes-sort__label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.grl-episodes-sort__select {
  width: auto;
  min-width: 180px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: #1cc799;
  color: #111111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border-radius: 50px;
}

.grl-episodes-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  background: #1cc799;
  color: #111111;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
}


/* ======================================================
   EPISODES LAYOUT / SIDEBAR
====================================================== */

.grl-episodes-list__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.grl-episodes-list__main {
  min-width: 0;
}

.grl-episodes-sidebar {
  min-height: 0;
  align-self: start;
}

.grl-episodes-sidebar__inner {
  position: sticky;
  top: 120px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.grl-episodes-sidebar__header,
.grl-episodes-sidebar__title {
  margin-top: 0;
}

.grl-episodes-sidebar__title {
  margin-bottom: 20px;
}

.grl-episodes-sidebar__placeholder > *:first-child {
  margin-top: 0;
}

.grl-episodes-filter-panel {
  display: block;
}


/* ======================================================
   VIEW MORE
====================================================== */

.grl-episodes-view-more {
  display: flex;
  justify-content: center;
  margin: 48px 0 0;
}

.grl-episodes-view-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 50px;
  background: #1c285a;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
  transition: opacity 0.25s ease;
}

.grl-episodes-view-more__button:hover {
  background: #1cc799;
  color: #111111;
}

.grl-episodes-view-more__button:disabled {
  cursor: wait;
  opacity: 0.65;
}


/* ======================================================
   TABLET / MOBILE FILTER LAYOUT
====================================================== */

@media (max-width: 900px) {
  .grl-episodes-list__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grl-episodes-sidebar {
    display: block;
    order: -1;
  }

  .grl-episodes-sidebar__inner {
    position: static;
  }

  .grl-episodes-filter-toggle {
    display: inline-flex;
  }

  .grl-episodes-filter-panel {
    display: none;
    margin-top: 24px;
  }

  .grl-episodes-filter-panel.is-open {
    display: block;
  }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {
  .grl-episodes-hero,
  .grl-episodes-list {
    padding: 20px 0;
  }

  .grl-episodes-hero__thumb {
    max-width: 100%;
  }

  .grl-episode-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
  }

  .grl-episode-card__thumb {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .grl-episodes-list__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grl-episodes-controls {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .grl-episodes-sort {
    flex: 1;
  }

  .grl-episodes-sort__label {
    display: none;
  }

  .grl-episodes-sort__select {
    width: 100%;
    min-width: 0;
  }

  .grl-episodes-filter-toggle {
    flex: 0 0 auto;
    padding: 0 22px;
  }
}


/*.grl-episode-hook {
  max-width: 900px;
  font-size: 24px;
  line-height: 1.6;
}*/

/* ======================================================
   HOMEPAGE RECENT EPISODES
====================================================== */

.grl-home-episodes {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.grl-home-episodes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 60px;
}

.grl-home-episode-card__thumb {
  display: block;
  margin-bottom: 24px;
}

.grl-home-episode-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grl-home-episode-card__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.grl-home-episode-card__title {
  margin: 0 0 10px;
}

.grl-home-episode-card__title a {
  color: inherit;
  text-decoration: none;
}

.grl-home-episode-card__description {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.grl-home-episodes__view-all {
  margin-top: 48px;
}

/* ======================================================
   HOMEPAGE RECENT EPISODE CARD ALIGNMENT
====================================================== */

.grl-home-episode-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grl-home-episode-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.grl-home-episode-card__description {
  margin: 0 0 18px;
}

.grl-home-episode-card__read-more {
  color: #1cbbc7;
  font-weight: 700;
  text-decoration: none !important;
  margin-left: 4px;
}


.grl-home-episode-card .grl-button {
  margin-top: auto;
  align-self: flex-start;
}

/* ======================================================
   HOMEPAGE VIEW ALL
====================================================== */

.grl-home-episodes__view-all {
  margin-top: 48px;
  text-align: center;
}

.grl-home-episodes__view-all a {
  color: #ffffff;
  text-decoration: none !important;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.grl-home-episodes__view-all a:hover {
  opacity: 0.7;
}

/*.grl-home-episodes__view-all .grl-button {
  background-color: #D4AF37;
  border-color: #D4AF37;
  color: #000;
}

.grl-home-episodes__view-all .grl-button:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000;
}*/


/* ======================================================
   HOMEPAGE CARD LINKS
====================================================== */

.grl-home-episode-card__title a,
.grl-home-episode-card__title a:visited,
.grl-home-episode-card__title a:hover,
.grl-home-episode-card__title a:focus {
  color: inherit;
  text-decoration: none !important;
}


/* ======================================================
   HOMEPAGE RECENT EPISODES MOBILE
====================================================== */

@media (max-width: 900px) {
  .grl-home-episodes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 36px;
  }
}

@media (max-width: 600px) {
  .grl-home-episodes__grid {
    grid-template-columns: 1fr;
  }
}


/* ======================================================
   PLATFORM ICONS
====================================================== */

.icon-container {
  text-align: center;
}

.icon-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-container svg {
  width: 50px;
  height: 50px;
  display: block;
  fill: currentColor;
}

.icon-container svg path {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.icon-container a:hover svg path {
  fill: #1cc799;
}

/* ======================================================
   AMAZON MUSIC ICON OPTICAL SIZE FIX
====================================================== */

.icon-container svg[viewBox="0 0 50 50"] {
  width: 65px;
  height: 65px;
}

@media (max-width: 768px) {

  .icon-container svg[viewBox="0 0 50 50"] {
    transform: translateY(-10px);
  }

}

/* ======================================================
   CUSTOM BOTTOM DIVIDER
====================================================== */
.tta-divider-bottom {
  position: relative;
  overflow: hidden;
}

.tta-divider-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  background: #1c285a;

  clip-path: polygon(
    0 0,
    calc(100% - 120px) 0,
    100% 100%,
    0 100%
  );

  pointer-events: none;
}

/* ======================================================
   MOBILE ADJUSTMENT
====================================================== */

@media (max-width: 768px) {

  .tta-divider-bottom::after {
    height: 60px;

    clip-path: polygon(
      0 0,
      calc(100% - 60px) 0,
      100% 100%,
      0 100%
    );
  }

}


