/* =========================================================
   FROSTFIRE COMMUNITY V2
   Visual community / social / grow gallery
   ========================================================= */

.community-page {
  --community-bg: #02060d;
  --community-panel: #071421;
  --community-panel-soft: #0a1826;
  --community-ice: #8ccde9;
  --community-text: #eef5f8;
  --community-copy: #b7c6ce;
  --community-muted: #7f97a4;
  --community-rule: rgba(155, 207, 229, 0.14);
  --community-rule-strong: rgba(162, 216, 239, 0.25);
  background: var(--community-bg);
  color: var(--community-text);
}

.community-page .site-header {
  background: rgba(2, 6, 13, 0.95);
  border-bottom: 1px solid rgba(147, 198, 219, 0.12);
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.community-page main {
  overflow: clip;
  background:
    radial-gradient(circle at 84% 4%, rgba(68, 145, 178, .07), transparent 30rem),
    linear-gradient(180deg, #02060d 0%, #020812 100%);
}

.community-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* Hero */

.community-hero {
  padding: clamp(8.4rem, 11vw, 9.7rem) 0 clamp(3.55rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--community-rule);
}

.community-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: end;
  gap: 60px;
}

.community-kicker,
.community-section-heading > p,
.community-section-heading > div > p {
  color: var(--community-ice);
  font-family: "Source Sans 3", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.community-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.community-kicker span {
  width: 31px;
  height: 1px;
  background: var(--community-ice);
}

.community-hero h1 {
  margin: 0;
  color: #f4f8fa;
  font-family: "Cinzel", serif;
  font-size: clamp(3.3rem, 6.5vw, 6.25rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.community-hero__intro {
  margin: 0 0 5px;
  max-width: 460px;
  color: var(--community-copy);
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

/* Shared headings */

.community-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--community-rule-strong);
}

.community-section-heading p {
  margin: 0 0 10px;
}

.community-section-heading h2 {
  margin: 0;
  color: #f3f7f9;
  font-family: "Cinzel", serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.community-section-heading .community-section-heading__note {
  max-width: 430px;
  margin: 0;
  color: var(--community-muted);
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

/* Connect */

.community-connect {
  padding: clamp(3.75rem, 6vw, 5rem) 0 clamp(4rem, 6vw, 5.25rem);
}

.community-destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.community-destination {
  position: relative;
  height: 240px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 16px;
  overflow: hidden;
  border: 1px solid var(--community-rule);
  background:
    radial-gradient(circle at 82% 10%, rgba(111, 188, 219, .08), transparent 11rem),
    linear-gradient(145deg, rgba(8, 25, 40, .96), rgba(3, 10, 18, .99));
}

.community-destination::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64%;
  height: 2px;
  background: linear-gradient(90deg, rgba(151, 218, 246, .78), rgba(117, 190, 221, .15), transparent);
}

.community-destination__icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin-bottom: 10px;
  color: var(--community-ice);
  filter: drop-shadow(0 0 12px rgba(112, 203, 240, .16));
}

.community-destination__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.community-destination__type {
  margin: 0 0 3px;
  color: var(--community-muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.community-destination h3 {
  margin: 0;
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: clamp(1.55rem, 2.25vw, 2.15rem);
  font-weight: 500;
}

.community-destination__handle {
  margin: 4px 0 0;
  color: #a9bbc5;
  font-family: "Source Sans 3", sans-serif;
  font-size: .95rem;
}

.community-destination > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--community-rule);
  color: #bce7f8;
  font-family: "Source Sans 3", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.community-destination > a span {
  display: inline-block;
  transition: transform .18s ease;
}

.community-destination > a:hover span,
.community-destination > a:focus-visible span {
  transform: translateX(4px);
}

/* Grow gallery */

.community-grows {
  padding: clamp(3.8rem, 6vw, 5rem) 0 clamp(4.8rem, 7vw, 6rem);
  border-top: 1px solid var(--community-rule);
  background: linear-gradient(180deg, rgba(7, 20, 33, .48), rgba(3, 9, 17, .2));
}

.community-grow-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 26px;
}

.community-grow {
  grid-column: span 6;
  min-height: 0;
  display: flex;
  align-self: start;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--community-rule);
  background: #06111c;
}

.community-grow--feature {
  grid-column: 1 / -1;
}

.community-grow--wide {
  grid-column: 1 / -1;
}

.community-grow__media {
  position: relative;
  display: block;
  min-height: 310px;
  overflow: hidden;
  background: #07131f;
}

.community-grow--feature .community-grow__media {
  min-height: 460px;
}

.community-grow--wide .community-grow__media {
  min-height: 360px;
}

.community-grow__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.community-grow__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1,5,10,0) 32%, rgba(1,5,10,.18) 55%, rgba(1,5,10,.94) 100%),
    linear-gradient(90deg, rgba(1,5,10,.28), transparent 58%);
}

.community-grow__media-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(22px, 3vw, 34px);
}

.community-grow__media-copy p,
.community-grow__media-copy span {
  margin: 0;
  color: var(--community-ice);
  font-family: "Source Sans 3", sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.45;
  text-transform: uppercase;
}

.community-grow__media-copy h3 {
  max-width: 780px;
  margin: 7px 0 8px;
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .65);
}

.community-grow:hover .community-grow__media img,
.community-grow:focus-within .community-grow__media img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.community-grow__content {
  padding: 16px 20px 18px;
}

.community-grow__source {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.community-grow__source p,
.community-grow__source span {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
}

.community-grow__source span {
  flex: 0 0 auto;
  color: var(--community-ice);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.community-grow__source p {
  max-width: 72%;
  color: var(--community-muted);
  font-size: .78rem;
  line-height: 1.4;
  text-align: right;
}

.community-grow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--community-rule);
}

.community-grow__actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: #b8ddea;
  font-family: "Source Sans 3", sans-serif;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.community-grow__actions a span {
  display: inline-block;
  transition: transform .18s ease;
}

.community-grow__actions a:hover,
.community-grow__actions a:focus-visible {
  color: #fff;
}

.community-grow__actions a:hover span,
.community-grow__actions a:focus-visible span {
  transform: translateX(4px);
}

/* Closing */

.community-closing {
  padding: clamp(4rem, 7vw, 5.4rem) 0;
}

.community-closing__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.community-closing h2 {
  margin: 0;
  color: #f2f6f8;
  font-family: "Cinzel", serif;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  font-weight: 500;
  text-transform: uppercase;
}

.community-closing a {
  color: #bde6f7;
  font-family: "Source Sans 3", sans-serif;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Tablet */

@media (max-width: 980px) {
  .community-shell {
    width: min(100% - 44px, 1180px);
  }

  .community-hero__inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .community-hero__intro {
    max-width: 600px;
  }

  .community-destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-destination:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .community-grow {
    grid-column: span 6;
  }

  .community-grow--feature,
  .community-grow--wide {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .community-shell {
    width: calc(100% - 36px);
  }

  .community-hero {
    padding-top: 6.95rem;
    padding-bottom: 3rem;
  }

  .community-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .community-connect {
    padding: 3.8rem 0 4.4rem;
  }

  .community-section-heading,
  .community-section-heading--grows {
    display: block;
  }

  .community-section-heading .community-section-heading__note {
    margin-top: 15px;
  }

  .community-destinations {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 22px;
  }

  .community-destination,
  .community-destination:last-child {
    grid-column: auto;
    height: auto;
    min-height: 220px;
    padding: 20px 22px 18px;
  }

  .community-destination__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .community-grows {
    padding: 3.5rem 0 4.6rem;
  }

  .community-grow-grid {
    display: block;
    margin-top: 22px;
  }

  .community-grow {
    min-height: 0;
    margin-bottom: 14px;
  }

  .community-grow__media,
  .community-grow--feature .community-grow__media,
  .community-grow--wide .community-grow__media {
    min-height: 270px;
  }

  .community-grow__content {
    padding: 15px 18px 17px;
  }

  .community-grow__source {
    display: block;
  }

  .community-grow__source p {
    max-width: none;
    margin-top: 5px;
    text-align: left;
  }

  .community-grow__media-copy {
    padding: 20px;
  }

  .community-grow__media-copy h3 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .community-closing {
    padding: 3.6rem 0 4rem;
  }

  .community-closing__inner {
    display: block;
  }

  .community-closing a {
    display: inline-block;
    margin-top: 22px;
  }
}

@media (max-width: 380px) {
  .community-shell {
    width: calc(100% - 30px);
  }

  .community-grow__media,
  .community-grow--feature .community-grow__media,
  .community-grow--wide .community-grow__media {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-grow__media img,
  .community-destination > a span {
    transition: none;
  }
}
