﻿@font-face {
    font-family: 'Inter';
    src: url('../../fonts/Inter-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../../fonts/Inter-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../../fonts/Inter-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../../fonts/Inter-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../../fonts/Inter-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
  --bg-app: #090a15;
  --bg-card: #15182b;
  --bg-card-hover: #1e223d;
  --primary-blue: #ff2ec9;
  --primary-blue-hover: #ff6bdb;
  --accent-purple: #9d4edd;
  --accent-orange: #f59e0b;
  --text-main: #ffffff;
  --text-muted: #8a91b8;
  --border-color: rgba(255, 255, 255, 0.05);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-glow: 0 8px 30px rgba(255, 46, 201, 0.4);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(78, 101, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 10, 21, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  gap: 20px;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-desktop a.active {
  color: var(--primary-blue);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 20px 0;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary-blue);
}

.breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 500;
}

/* Secondary Nav (Categories) */
.sub-nav {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav::-webkit-scrollbar {
  display: none;
}

.sub-nav a {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sub-nav a.active, .sub-nav a:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

/* Hero Section */
.hero {
  margin: 20px 0;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.hero-image-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #15182b 0%, rgba(21, 24, 43, 0.85) 25%, transparent 75%);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-title .icon {
  color: var(--accent-orange);
}

.view-all {
  font-size: 0.875rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 101, 255, 0.4);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.game-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.game-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 21, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.play-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 8px;
  transform: translateY(10px);
  transition: var(--transition);
}

.game-card:hover .play-text {
  transform: translateY(0);
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  background: var(--primary-blue);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(78, 101, 255, 0.4);
}

.game-card:hover .play-btn {
  transform: scale(1);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 10, 21, 0.8);
  backdrop-filter: blur(4px);
  color: var(--accent-orange);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-info {
  padding: 12px;
}

.game-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Quick Categories (Large Grid) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.category-card span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

/* SEO Content */
.prose-section {
  margin: 60px 0;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h1, .prose h2, .prose h3 {
  color: #fff;
  margin: 1.5em 0 0.75em;
  font-weight: 700;
}

.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25em;
  font-size: 1rem;
}

.prose ul {
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 1.25em;
  list-style-type: disc;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
}

/* Table */
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th, .prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.prose th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #060710;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-meta .brand img {
  height: 24px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-meta p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-col h4,
.footer-col .footer-heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--primary-blue);
}

.payments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.payments img {
  height: 20px;
  opacity: 0.5;
  transition: var(--transition);
}

.payments img:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { 
    flex-direction: column; 
    padding: 30px 20px; 
    align-items: flex-start;
  }
  .hero-content { 
    max-width: 100%; 
    z-index: 2; 
  }
  .hero-image-layer {
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
  }
  .hero-image-layer img {
    object-position: center 20%;
  }
  .hero-gradient-overlay {
    background: linear-gradient(to bottom, #15182b 0%, rgba(21, 24, 43, 0.8) 50%, transparent 100%);
  }
  .hero-title { font-size: 2rem; }
  .nav-desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-section { padding: 20px; }
}


/* Carousel Animations */
.carousel-container {
  overflow: hidden;
  width: 100%;
  padding-bottom: 20px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.carousel-track .game-card {
  width: 200px;
  flex-shrink: 0;
}
.track-right {
  animation: marquee-right 20s linear infinite;
}
.track-left {
  animation: marquee-left 20s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-right {
  0% { transform: translateX(calc(-50% - 8px)); }
  100% { transform: translateX(0); }
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

/* Mobile Fixes for Carousel */
@media (max-width: 768px) {
  .carousel-track {
    animation: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    gap: 12px !important;
    justify-items: center;
  }
  .carousel-track .game-card {
    width: 100% !important;
    max-width: none !important;
  }
  /* Hide duplicated items on mobile (only show the first 8) */
  .carousel-track .game-card:nth-child(n+9) {
    display: none !important;
  }
}


/* Mobile Header Fixes */
@media (max-width: 768px) {
  .site-header__inner {
    flex-wrap: nowrap !important;
    padding: 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .brand img {
    max-width: 100px !important;
    height: auto !important;
  }
  .header-actions {
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
  }
  .header-actions .btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
    min-width: unset !important;
    white-space: nowrap !important;
  }
  
  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
  }
  .burger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
    display: block;
  }
  .burger.active span:nth-child(1) { transform: rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg); }
  
  .nav-desktop.nav-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border-color);
  }
  .nav-desktop.nav-menu.active {
    left: 0;
  }
  .nav-desktop.nav-menu a {
    justify-content: flex-start;
    padding: 15px;
    font-size: 16px;
  }
}
@media (min-width: 769px) {
  .burger {
    display: none !important;
  }
}
