/*
  Front Office Pros brand overrides
  ---------------------------------
  Kept separate from the generated stylesheet so production builds preserve
  the Gilroy font and the site's custom visual adjustments.
*/

/* Fix tag feature images on the custom tags page. */
.custom-tags-page img.tag-img {
  width: 5rem !important;
  height: 5rem !important;
  min-width: 5rem !important;
  min-height: 5rem !important;
  max-width: 5rem !important;
  max-height: 5rem !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

@media (min-width: 768px) {
  .custom-tags-page img.tag-img {
    width: 6rem !important;
    height: 6rem !important;
    min-width: 6rem !important;
    min-height: 6rem !important;
    max-width: 6rem !important;
    max-height: 6rem !important;
  }
}

/* Gilroy custom font. */
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Keep Gilroy active even when Ghost typography settings are present. */
:root {
  --font-body: "Gilroy", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Gilroy", ui-sans-serif, system-ui, sans-serif;
}

html,
body {
  font-family: "Gilroy", ui-sans-serif, system-ui, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gilroy", ui-sans-serif, system-ui, sans-serif !important;
}

p,
a,
span,
li,
button,
input,
textarea,
blockquote {
  font-family: "Gilroy", ui-sans-serif, system-ui, sans-serif;
}

.hero-title {
  font-weight: 600 !important;
}

.hero-action button[type="submit"] {
  min-width: 10rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Keep the desktop homepage hero compact enough to reveal the next section. */
.hero--background .hero-image {
  background-position: center;
}

@media (min-width: 768px) {
  .hero--background {
    height: clamp(30rem, 60vh, 38rem);
  }

  .hero--background .hero-content {
    padding-top: clamp(5rem, 10vh, 7rem);
    padding-bottom: clamp(5rem, 10vh, 7rem);
  }

  .fop-content-hero {
    height: clamp(30rem, 60vh, 38rem) !important;
  }
}

/* Keep featured-post artwork visually above the card copy. */
.fop-featured-card {
  background: #111;
}

.fop-featured-card-image img {
  transform: translateY(-16%);
}

.fop-featured-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 46%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.92) 78%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

.fop-featured-card-content {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 28%,
    rgba(0, 0, 0, 0.78) 54%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

/* Homepage podcast section. */
.fop-podcast-intro {
  margin-top: 1rem;
}

.fop-podcast-shows {
  display: grid;
  gap: 1rem;
}

.fop-podcast-show {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--color-stroke);
  border-left: 4px solid var(--color-accent);
  border-radius: 1rem;
  background: var(--color-page-alt);
}

.fop-podcast-show h4 {
  margin: 0 0 0.45rem;
  color: var(--color-content-alt);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.fop-podcast-show p {
  margin: 0;
  color: var(--color-content-muted);
  line-height: 1.6;
}

.fop-podcast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.fop-podcast-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-stroke);
  border-radius: 9999px;
  background: var(--color-page);
  color: var(--color-content-alt);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.fop-podcast-links a:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.fop-podcast-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(39, 178, 83, 0.6);
  border-radius: 9999px;
  background: #27b253;
  box-shadow: 0 0 18px 4px rgba(39, 178, 83, 0.45),
    0 0 40px 8px rgba(39, 178, 83, 0.2);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fop-podcast-youtube:hover {
  box-shadow: 0 0 28px 8px rgba(39, 178, 83, 0.6),
    0 0 60px 16px rgba(39, 178, 83, 0.25);
  transform: translateY(-2px);
}

.fop-podcast-visual {
  overflow: hidden;
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-global);
  background: var(--color-page-alt);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.fop-podcast-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 832;
  object-fit: cover;
}

/* Responsive platform overview video. */
.fop-platform-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-global);
  background: #0b0f14;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.fop-platform-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Homepage Discord community callout. */
.fop-discord-section {
  padding: 1rem 0;
}

.fop-discord-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(39, 178, 83, 0.48);
  border-radius: var(--radius-global);
  background:
    radial-gradient(circle at 88% 18%, rgba(88, 101, 242, 0.24), transparent 30%),
    linear-gradient(120deg, rgba(39, 178, 83, 0.18), transparent 42%),
    #10151c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.fop-discord-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  bottom: -12rem;
  border: 2px solid rgba(39, 178, 83, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.75rem rgba(39, 178, 83, 0.04),
    0 0 0 5.5rem rgba(88, 101, 242, 0.035);
}

.fop-discord-main {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

.fop-discord-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border: 1px solid rgba(127, 139, 255, 0.6);
  border-radius: 1.35rem;
  background: #5865f2;
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.3);
}

.fop-discord-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fop-discord-copy {
  min-width: 0;
}

.fop-discord-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fop-discord-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.fop-discord-copy p {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  color: #b9c2ce;
  font-size: 1.05rem;
  line-height: 1.6;
}

.fop-discord-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(74, 222, 128, 0.65);
  border-radius: 9999px;
  background: #27b253;
  box-shadow: 0 10px 28px rgba(39, 178, 83, 0.28);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fop-discord-cta:hover {
  background: #2ac25a;
  box-shadow: 0 16px 36px rgba(39, 178, 83, 0.38);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .fop-podcast-show {
    padding: 1rem;
  }

  .fop-podcast-youtube {
    width: 100%;
  }

  .fop-discord-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fop-discord-main {
    align-items: flex-start;
  }

  .fop-discord-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
  }

  .fop-discord-icon img {
    width: 100%;
    height: 100%;
  }

  .fop-discord-cta {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .fop-discord-main {
    flex-direction: column;
  }
}

/* Post access labels derived from Ghost's native Post access setting. */
.post-access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 1.75rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--color-stroke);
  border-radius: 9999px;
  background: var(--color-page-alt);
  color: var(--color-content-alt);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-access-pill--meta {
  margin-left: 1rem;
}

.post-access-pill--card {
  margin-left: auto;
}
