/* Premium multi-site theme — colors via :root variables (theme-vars.blade.php) */

body {
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
  font-family: 'Poppins', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

.page-content,
header,
footer {
  position: relative;
  z-index: 1;
}

.header-area,
.page-content,
footer,
.gaming-library,
.most-popular,
.game-details,
.other-games {
  background: transparent !important;
}

/* ----- Header ----- */
.header-area.header-sticky {
  background: rgba(11, 15, 25, 0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.main-nav .logo img {
  filter: drop-shadow(0 4px 14px var(--glow));
  max-height: 42px;
}

.main-nav .nav {
  gap: 0.25rem;
}

.main-nav .nav li a {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  padding: 0.65rem 1rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav .nav li a:hover,
.main-nav .nav li a.active {
  color: var(--text-primary) !important;
}

.main-nav .nav li a.active::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--glow);
}

.search-input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
}

.search-input input {
  color: var(--text-primary) !important;
  background: transparent !important;
}

/* ----- Text logo ----- */
.site-text-logo {
  display: inline-flex !important;
  align-items: baseline;
  text-decoration: none !important;
  line-height: 1;
  filter: drop-shadow(0 4px 16px var(--glow));
}

.site-logo-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary) !important;
}

.site-logo-tld {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary) !important;
  margin-left: 1px;
}

/* ----- Hero ----- */
.main-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem !important;
  border: 1px solid var(--border) !important;
  background-color: var(--bg-deep) !important;
  background-image:
    linear-gradient(105deg, rgba(11, 15, 25, 0.88) 0%, rgba(11, 15, 25, 0.55) 45%, rgba(11, 15, 25, 0.75) 100%),
    var(--hero-bg) !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  min-height: 380px !important;
  padding: 4rem 3rem !important;
}

.main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 50%, var(--glow), transparent 50%),
    linear-gradient(90deg, rgba(11, 15, 25, 0.92) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.main-banner .row {
  position: relative;
  z-index: 2;
}

.hero-sub {
  font-size: 1rem !important;
  max-width: 36rem;
}

.main-banner .header-text {
  position: relative;
  z-index: 2;
  background: rgba(11, 15, 25, 0.55) !important;
  border: 1px solid var(--border) !important;
  border-radius: 1rem !important;
  padding: 2rem !important;
  backdrop-filter: blur(8px);
}

.main-banner .header-text h6 {
  color: var(--secondary) !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-banner .header-text h4 {
  color: var(--text-primary) !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.main-banner .header-text h4 em {
  color: var(--primary) !important;
  font-style: normal;
}

/* ----- Buttons ----- */
.main-button a,
.btn-primary {
  background: var(--primary) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  box-shadow: 0 4px 20px var(--glow);
}

.main-button a:hover,
.btn-primary:hover {
  background: var(--secondary) !important;
  transform: scale(1.05);
  box-shadow: 0 8px 28px var(--glow);
}

/* ----- Game cards ----- */
.item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  overflow: hidden;
}

.item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(var(--primary-rgb), 0.5) !important;
  box-shadow: 0 16px 40px var(--glow) !important;
}

.item img {
  border-radius: 0.75rem 0.75rem 0 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.item h4,
.item h4 a {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  padding: 0.75rem 0.85rem 0.25rem !important;
}

.item h4 span {
  display: block;
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-top: 0.25rem;
}

.heading-section h4 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.heading-section h4 em {
  color: var(--primary) !important;
  font-style: normal;
}

/* ----- Category buttons ----- */
.gaming-library .item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gaming-library .item:hover {
  transform: none !important;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.category-pill:hover,
.category-pill:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px var(--glow);
  transform: translateY(-2px);
}

.category-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: var(--primary);
}

.category-pill:hover .category-icon {
  fill: #fff;
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem !important;
  margin-top: 3rem;
  background: rgba(11, 15, 25, 0.6) !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem !important;
}

.footer-legal a {
  color: var(--text-muted) !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary) !important;
}

footer .text-muted,
footer p.text-muted {
  color: var(--text-muted) !important;
  text-align: center;
  width: 100%;
  margin: 0;
}

/* ----- Play page & legal ----- */
.play-frame-wrap {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.play-frame-wrap iframe {
  border-radius: 12px;
}

.review-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.star-rating {
  color: #fbbf24;
}

.legal-page {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  line-height: 1.75;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-page h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 2rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page a {
  color: var(--primary);
}

.game-details h2,
.game-details h4 {
  color: var(--text-primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.contact-email-list li {
  margin-bottom: 0.35rem;
}

.contact-email-list a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-email-list a:hover {
  color: var(--primary);
}

.contact-info a[href^="tel:"]:hover {
  color: var(--primary);
}

/* ----- Blog ----- */
.blog-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-page-header h1 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 2.25rem;
}

.blog-page-header h1 em {
  color: var(--primary);
  font-style: normal;
}

.blog-page-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 12px 40px var(--glow);
}

.blog-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body time {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.35;
}

.blog-card-body h2 a {
  color: var(--text-primary) !important;
  text-decoration: none;
}

.blog-card-body h2 a:hover {
  color: var(--primary) !important;
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-read-more {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

.blog-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.blog-pagination .pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

.blog-pagination .pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.blog-empty {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-back-link {
  color: var(--primary) !important;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.blog-article-header time {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-article-header h1 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.blog-article-hero {
  height: 280px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.blog-article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.blog-article-body h2 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.blog-article-body h2:first-child {
  margin-top: 0;
}

.blog-article-body p {
  margin-bottom: 1rem;
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 1rem 0 1.25rem 1.25rem;
}

.blog-article-body li {
  margin-bottom: 0.5rem;
}

.blog-article-body strong {
  color: var(--text-primary);
}

.blog-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-related h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.blog-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-related li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-related li a {
  color: var(--text-primary) !important;
  font-weight: 500;
}

.blog-related li a:hover {
  color: var(--primary) !important;
}

.blog-related li span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----- Category icon modes ----- */
.category-letter {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.6rem;
  box-shadow: 0 0 10px var(--glow);
}

.category-mode-none .category-icon,
.category-mode-none .category-letter,
.category-mode-none .category-dot {
  display: none !important;
}

/* ----- Footer variants ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--primary) !important;
}

/* ----- Layout silo: Featured ----- */
.site-layout-wide-cards .featured-games-row > [class*='col-lg-3'] {
  flex: 0 0 50%;
  max-width: 50%;
}

.site-layout-wide-cards .item img {
  aspect-ratio: 16/10;
}

.site-layout-compact-grid .featured-games-row > [class*='col-lg-3'] {
  flex: 0 0 25%;
  max-width: 25%;
}

.site-layout-compact-grid .item h4 {
  font-size: 0.9rem !important;
}

.site-layout-mosaic .featured-games-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-layout-mosaic .featured-games-row > [class*='col-'] {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.site-layout-scroll-row .featured-games-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.site-layout-scroll-row .featured-games-row > [class*='col-'] {
  flex: 0 0 280px;
  max-width: 280px;
  scroll-snap-align: start;
}

.site-layout-overlay .item {
  position: relative;
}

.site-layout-overlay .item h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  margin: 0 !important;
  padding: 2rem 0.85rem 0.75rem !important;
}

.site-layout-row-featured .featured-games-row > [class*='col-lg-3'] {
  flex: 0 0 100%;
  max-width: 100%;
}

.site-layout-row-featured .item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.site-layout-row-featured .item img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 0.75rem 0 0 0.75rem;
  aspect-ratio: 4/3;
}

.site-layout-row-featured .item h4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-layout-sharp .item,
.site-layout-sharp .category-pill {
  border-radius: 4px !important;
}

.site-layout-sharp .main-banner {
  border-radius: 4px !important;
}

/* ----- Layout silo: Categories ----- */
.site-layout-list-cats .category-row {
  flex-direction: column;
}

.site-layout-list-cats .category-col {
  max-width: 100%;
  flex: 0 0 100%;
}

.site-layout-list-cats .category-pill {
  justify-content: flex-start;
  width: 100%;
}

.site-layout-wide-cards .category-pill {
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
}

.site-layout-scroll-row .category-row {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.site-layout-scroll-row .category-col {
  flex: 0 0 auto;
  max-width: none;
}

.site-layout-mosaic .category-pill {
  border-style: dashed;
}

.site-layout-sharp .footer-nav {
  gap: 0.25rem 2rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.site-layout-overlay .site-footer {
  background: linear-gradient(180deg, transparent, var(--bg-card));
}

.site-layout-classic .footer-legal a {
  margin: 0 0.75rem;
}

@media (max-width: 768px) {
  .site-layout-wide-cards .featured-games-row > [class*='col-lg-3'],
  .site-layout-compact-grid .featured-games-row > [class*='col-lg-3'] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .site-layout-row-featured .item {
    flex-direction: column;
  }

  .site-layout-row-featured .item img {
    width: 100%;
    border-radius: 0.75rem 0.75rem 0 0;
  }
}
