/* Mood news: homepage strip, /news list, article.
   Legacy casino.css is no longer loaded, so these rules must live here. */

#homeNewsWidgetGuest,
#homeNewsWidgetLobby {
  margin-bottom: var(--space-6);
}

.home-news-home-widget {
  margin: 8px 0 12px;
  padding-top: 0;
  border-top: 0;
}

.home-games-strip--news {
  align-items: stretch;
}

.home-games-strip--news .home-news-strip-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(320px, 78vw);
  width: min(320px, 78vw);
  max-width: 320px;
  min-width: 240px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface-1, #12151c);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-games-strip--news .home-news-strip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(68, 235, 213, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.home-news-strip-card__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex: 0 0 auto;
  background: #07080c;
  overflow: hidden;
}

.home-news-strip-card__visual--placeholder {
  background: linear-gradient(135deg, #1a2228 0%, #101418 100%);
}

.home-news-strip-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-news-strip-card__scrim,
.home-news-strip-card__overlay {
  display: none;
}

.home-news-strip-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #102126;
  background: linear-gradient(105deg, #44ebd5 0%, #7ab8c0 48%, #f3536b 100%);
}

.home-news-strip-card__bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  background: var(--surface-2, #171b22);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.home-news-strip-card__headline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-news-strip-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-news-strip-card__meta-label {
  display: none;
}

.home-news-strip-card__meta-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-news-strip-card__cta {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.home-news-strip-card:hover .home-news-strip-card__cta {
  background: linear-gradient(105deg, #44ebd5 0%, #7ab8c0 48%, #f3536b 100%);
  color: #102126;
  border-color: transparent;
}

.home-news-home-widget.is-single .home-strip-nav {
  display: none;
}

/* ---- /news ---- */

#pageNews {
  padding-bottom: var(--space-7);
}

.news-page-head {
  margin: 0 0 20px;
}

.news-page-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.news-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.news-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.news-tag-chip:hover {
  border-color: rgba(68, 235, 213, 0.4);
  color: var(--text);
}

.news-tag-chip--active {
  background: rgba(68, 235, 213, 0.14);
  border-color: #44ebd5;
  color: #44ebd5;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.news-hero:hover {
  border-color: rgba(68, 235, 213, 0.35);
}

.news-hero-img {
  background: #07080c;
  min-height: 220px;
  overflow: hidden;
}

.news-hero-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-hero-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.news-hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(105deg, #44ebd5 0%, #7ab8c0 48%, #f3536b 100%);
  color: #102126;
  width: fit-content;
}

.news-hero-title {
  font-family: var(--font-display, inherit);
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.news-hero-preview {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.news-hero-date {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.news-card:hover {
  border-color: rgba(68, 235, 213, 0.3);
  transform: translateY(-2px);
}

.news-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #07080c;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.news-card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.news-card-preview {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.news-card-tag {
  font-size: 0.7rem;
  color: #44ebd5;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
}

.news-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.news-page-btn:hover {
  color: var(--text);
  border-color: rgba(68, 235, 213, 0.4);
}

.news-page-btn--active {
  background: linear-gradient(105deg, #44ebd5 0%, #7ab8c0 48%, #f3536b 100%);
  border-color: transparent;
  color: #102126;
  font-weight: 700;
}

.news-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #44ebd5;
  text-decoration: none;
  margin-bottom: 18px;
}

.news-article-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #07080c;
}

.news-article-banner img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
  background: #07080c;
}

.news-article-head {
  margin-bottom: 24px;
}

.news-article-date {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-article-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.news-article-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 32px;
}

.news-article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.news-article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}

.news-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
}

.news-article-body a {
  color: #44ebd5;
}

.news-related {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 32px;
}

.news-related-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.news-related-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.news-related-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: #07080c;
  flex-shrink: 0;
}

.news-related-card-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 4px 0 0;
}

@media (max-width: 720px) {
  .news-hero {
    grid-template-columns: 1fr;
  }

  .news-hero-img {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .news-hero-img img {
    max-height: none;
  }

  .news-hero-body {
    padding: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .home-games-strip--news .home-news-strip-card {
    flex-basis: min(280px, 82vw);
    width: min(280px, 82vw);
  }
}

[data-theme="light"] .home-games-strip--news .home-news-strip-card,
[data-theme="light"] .news-hero,
[data-theme="light"] .news-card,
[data-theme="light"] .news-related-card {
  background: var(--surface-1);
}

[data-theme="light"] .home-news-strip-card__visual,
[data-theme="light"] .news-hero-img,
[data-theme="light"] .news-card-img,
[data-theme="light"] .news-article-banner {
  background: #e8eaee;
}
