/* Home page: hero area and card polish. Scoped to .fora-* classes so the manuals are unaffected. */

.fora-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 2.5rem;
  padding: 2rem 2.2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #16305e 0%, #1f5f9e 55%, #20b2aa 100%);
  color: #ffffff;
}

.fora-hero__text {
  flex: 1 1 60%;
}

.md-typeset .fora-hero h1 {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}

.fora-hero__tagline {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.9;
}

.md-typeset .fora-hero p {
  color: rgba(255, 255, 255, 0.92);
}

.md-typeset .fora-hero .md-button {
  margin: 0.4rem 0.4rem 0 0;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.md-typeset .fora-hero .md-button--primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #16305e;
}

.md-typeset .fora-hero .md-button:hover {
  background-color: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

.fora-hero__logo {
  flex: 0 0 auto;
  width: 11rem;
  padding: 0.8rem;
  border-radius: 0.6rem;
  background: #ffffff;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.25);
}

.fora-hero__logo img {
  display: block;
  width: 100%;
}

.fora-badges {
  margin-top: 0.8rem;
}

.fora-badges span {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Feedback badge: bottom-right corner of the hero. */
.fora-hero__feedback-row {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

.md-typeset .fora-hero__feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.md-typeset .fora-hero__feedback svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.md-typeset .fora-hero__feedback:hover,
.md-typeset .fora-hero__feedback:focus {
  background: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

/* GitHub Sponsors badge: a pink heart, turning fully pink on hover. */
.md-typeset .fora-hero__sponsor svg {
  fill: #ff8fc8;
}
.md-typeset .fora-hero__sponsor:hover,
.md-typeset .fora-hero__sponsor:focus {
  background: #bf3989;
  border-color: #bf3989;
}
.md-typeset .fora-hero__sponsor:hover svg,
.md-typeset .fora-hero__sponsor:focus svg {
  fill: #ffffff;
}

/* The heart on the Support page's Sponsor button. */
.md-typeset .fora-heart {
  color: #ff8fc8;
}

/* Screenshot thumbnail inside a package card. */
/* A small preview floated beside the card text; the full screenshot is in the Console manual. */
.md-typeset .fora-card-shot {
  float: right;
  width: 6.5rem;
  margin: 0.15rem 0 0.4rem 0.8rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.3rem;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}

.md-typeset a:hover > .fora-card-shot {
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

@media screen and (max-width: 44.9375em) {
  .fora-hero {
    flex-direction: column-reverse;
    padding: 1.5rem;
  }
  .fora-hero__logo {
    width: 8rem;
  }
  .fora-hero__feedback-row {
    position: static;
    order: -1;
    align-self: flex-end;
  }
}
