/* ===== NORMALIZE ===== */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

a {
  background-color: transparent;
  text-decoration: none;
}

b, strong {
  font-weight: bolder;
}

img {
  border-style: none;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #0c1628 0%, #060d18 100%);
  color: #e8f0ff;
  min-height: 100vh;
}

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 13, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
}

.sticky-cta-wrap {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.sticky-btn.accent {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.sticky-btn.accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.sticky-btn.light {
  background: #fff;
  color: #0c1628;
}

.sticky-btn.light:hover {
  background: #f0f0f0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 13, 24, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-nav {
  display: none;
  gap: 8px;
}

.header-nav a {
  padding: 10px 18px;
  color: #b8c8e8;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.header-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.lang-link {
  color: #8899bb;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-link:hover,
.lang-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-divider {
  color: #556688;
  font-size: 12px;
}

.header-btn {
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.header-btn.outline {
  color: #e8f0ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.header-btn.outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.header-btn.filled {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #000;
}

.header-btn.filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #e8f0ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-open .mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: rgba(12, 22, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  padding: 12px 16px;
  color: #e8f0ff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-btns .header-btn {
  flex: 1;
  text-align: center;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: -1;
}

.menu-open .mobile-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-toggle,
  .mobile-nav,
  .mobile-backdrop {
    display: none;
  }
}

/* ===== HERO BANNER ===== */
.hero-banner {
  padding: 12px 16px;
}

.hero-link {
  display: block;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-banner img {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }
}

/* ===== GAMES SECTION ===== */
.games-section {
  padding: 24px 16px;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(20, 35, 60, 0.6) 0%, rgba(10, 20, 40, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 20px;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: #7eb8ff;
  padding: 8px 16px;
  border: 1px solid rgba(126, 184, 255, 0.4);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  background: rgba(126, 184, 255, 0.15);
  border-color: rgba(126, 184, 255, 0.7);
  color: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1525;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-card:hover .game-thumb img {
  transform: scale(1.15);
}

.play-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.game-card:hover .play-icon {
  transform: scale(1);
}

.game-title {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #b8c8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }

  .section-heading {
    font-size: 20px;
  }
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 0 16px 100px;
}

.content-container {
  max-width: 1300px;
  margin: 0 auto;
}

.article-body {
  background: linear-gradient(180deg, rgba(15, 28, 50, 0.7) 0%, rgba(8, 16, 32, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 28px 22px;
}

.article-body h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 20px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #e8f0ff;
  margin: 24px 0 10px;
}

.article-body p {
  font-size: 14px;
  line-height: 1.75;
  color: #c0d0e8;
  margin-bottom: 16px;
}

.article-body strong {
  color: #fff;
}

@media (min-width: 768px) {
  .article-body {
    padding: 36px 32px;
  }

  .article-body h1 {
    font-size: 28px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body p {
    font-size: 15px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #060d18;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 80px;
}

.footer-main {
  padding: 40px 16px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-main .footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo img {
  height: 45px;
  margin-bottom: 16px;
}

.footer-about {
  font-size: 13px;
  line-height: 1.7;
  color: #8899bb;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7eb8ff;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  font-size: 13px;
  color: #a0b0c8;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .footer-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-limit {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #000;
}

.footer-legal p {
  font-size: 11px;
  line-height: 1.6;
  color: #667788;
  max-width: 600px;
}

.footer-copy {
  font-size: 12px;
  color: #556677;
}

@media (min-width: 768px) {
  .footer-main .footer-container {
    grid-template-columns: 1.5fr 2fr;
  }

  .footer-bottom .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    text-align: center;
    margin: 0 auto;
  }

  .footer-logo img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-legal {
    flex-direction: column;
  }
}