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

body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #fff;
  line-height: 1.6;
}

h3 {
	margin: 1rem 0;	
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

section {
  margin: 30px 0;	
}

/* ===== LINKS ===== */
a {
  color: #7f22fe;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #fff;
}

.home-button {
  display: inline-block;
  margin-bottom: 30px;
  padding: 20px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}


/* ===== HOMEPAGE LAYOUT ===== */
.home-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* ===== SIDEBAR ===== */
.home-sidebar h2 {
  margin-bottom: 15px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.category-link {
  display: block;
  background: #1e293b;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #2d3748;
  transition: 0.2s ease;
}

.category-link:hover {
  background: #7f22fe;
  border-color: #7f22fe;
  transform: translateY(-2px);
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #000;
  transition: 0.25s ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card_overlay {
  position: absolute;
  inset: 0;
  background: rgba(127, 34, 254, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(80%);
  transition: 0.3s ease;
}

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

.game-card_title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 12px;
}

/* ===== ADS ===== */
.ad-container {
  margin: 25px 0;
  text-align: center;
}

/* ==========================
   FOOTER
========================== */
.site-footer {
  margin-top: 60px;
  padding: 50px 20px;
  background: linear-gradient(135deg, #111827, #1e293b);
  color: #aaa;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
}

.footer-column h4 {
  margin-bottom: 15px;
  color: #fff;
}

/* Categories auto 2 columns */
.footer-column.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.footer-column.categories a {
  font-size: 14px;
  color: #aaa;
}

.footer-column a:hover {
  color: #7f22fe;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.7;
}