/**
 * Página inicial — publisher / MMORPG (alinhado a /news)
 */

.home-page {
  margin: 0;
}

/* —— Hero cinematográfico sobre o vídeo de fundo —— */
.home-hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__backdrop .carousel,
.home-hero__backdrop .carousel-inner,
.home-hero__backdrop .carousel-item,
.home-hero__backdrop .carousel-item img {
  height: 100%;
  min-height: clamp(320px, 52vh, 520px);
}

.home-hero__backdrop .carousel-item img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(3, 6, 23, 0.35) 0%,
    rgba(3, 6, 23, 0.55) 45%,
    rgba(3, 6, 23, 0.92) 100%
  );
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 1rem 2.75rem;
}

.home-hero__copy {
  max-width: 640px;
}

.home-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a4c;
  margin: 0 0 0.65rem;
}

.home-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.home-hero__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.35rem;
  max-width: 52ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero__actions .btn-danger {
  background: #dc3545;
  border-color: #dc3545;
  font-weight: 600;
}

.home-hero__actions .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.home-hero__actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* —— Painel principal (tema claro como /news) —— */
.home-page-panel {
  padding: 0;
  background: #f0f2f5;
}

.home-publisher__text {
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 62ch;
}

.home-block__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #212529;
}

.home-block__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
}

.home-block__title .bi {
  color: #c44a00;
  margin-right: 0.15rem;
}

/* —— Grid de jogos —— */
.home-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .home-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .home-games-grid {
    grid-template-columns: 1fr;
  }
}

.home-game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dee2e6;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-game-card:hover {
  border-color: #ced4da;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.home-game-card--soon {
  opacity: 0.92;
}

.home-game-card--soon:hover {
  transform: none;
}

.home-game-card__media {
  display: block;
  overflow: hidden;
  position: relative;
  background: #1a1d21;
  text-decoration: none;
}

.home-game-card__media--static {
  cursor: default;
}

.home-game-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 0.35rem;
  background: linear-gradient(180deg, #2a3038 0%, #1a1d21 100%);
}

.home-game-card__img-wrap img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-game-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.home-game-card:hover .home-game-card__overlay {
  opacity: 1;
}

.home-game-card__overlay-logo {
  width: auto;
  /* max-width: 78%; */
  /* max-height: 52%;*/
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.home-game-card__soon-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(33, 37, 41, 0.88);
  color: #fff;
}

.home-game-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: #212529;
  color: #fff;
}

.home-game-card__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.home-game-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.home-game-card__flag {
  border-radius: 2px;
}

/* —— Notícias na home (teaser compacto) —— */
.home-news-feed {
  max-width: 100%;
  margin: 0;
  border: 1px solid #dee2e6;
  background: #fff;
}

.home-news-feed .news-feed-item--home {
  border-bottom: 1px solid #e9ecef;
}

.home-news-feed .news-feed-item--home:last-child {
  border-bottom: none;
}

.home-news-feed .news-feed-item--home .news-feed-item__link {
  min-height: 0;
}

.home-news-feed .news-feed-item--home .news-feed-item__media {
  flex: 0 0 108px;
  max-width: 108px;
}

.home-news-feed .news-feed-item--home .news-feed-item__img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.home-news-feed .news-feed-item--home .news-feed-item__logo {
  display: none;
}

.home-news-feed .news-feed-item--home .news-feed-item__body {
  padding: 0.65rem 0.85rem;
}

.home-news-feed .news-feed-item--home .news-feed-item__meta {
  margin-bottom: 0.25rem;
  gap: 0.35rem 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.home-news-feed .news-feed-item--home .news-feed-item__category {
  font-size: 0.62rem;
  padding: 0.2em 0.45em;
  flex-shrink: 0;
}

.home-news-feed .news-feed-item--home .news-feed-item__meta-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}

.home-news-feed .news-feed-item--home .news-feed-item__date {
  margin-left: 0;
  font-size: 0.75rem;
  white-space: nowrap;
}

.home-news-feed .news-feed-item--home .news-feed-item__game-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.home-news-feed .news-feed-item--home .news-feed-item__game-logo img {
  display: block;
  width: auto;
  max-width: 76px;
  max-height: 22px;
  height: auto;
  object-fit: contain;
}

.home-news-feed .news-feed-item--home .news-feed-item__meta-end .news-feed-item__game {
  font-size: 0.7rem;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-feed .news-feed-item--home .news-feed-item__title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .home-news-feed .news-feed-item--home .news-feed-item__media {
    flex: 0 0 88px;
    max-width: 88px;
  }

  .home-news-feed .news-feed-item--home .news-feed-item__body {
    padding: 0.55rem 0.7rem;
  }

  .home-news-feed .news-feed-item--home .news-feed-item__title {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
}

/* —— Launcher + CTA —— */
.home-launcher__label {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: #212529;
}

.home-cta-banner {
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-cta-banner:hover {
  border-color: #ced4da;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.home-cta-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Home: texto claro no hero; conteúdo abaixo segue tema inner */
body.joyple-home .home-page-panel,
body.joyple-home .home-page-panel .card {
  color: #212529;
}

body.joyple-home .home-page-panel a:not(.btn) {
  color: #FFFFFF;
}

body.joyple-home .home-page-panel a:not(.btn):hover {
  color: #ffee00;
}
