/* =========================
   RESET & BASE
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.7;
}

/* =========================
   GLOBAL
========================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 12px;
}

p { margin-bottom: 16px; color: #cbd5f5; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   HEADER
========================= */
.site-header {
  background-color: #020617;
  border-bottom: 1px solid #1e293b;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo a {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
}
.logo span { color: #38bdf8; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
.main-nav a {
  color: #cbd5f5;
  font-weight: 500;
}
.main-nav a.active,
.main-nav a:hover { color: #38bdf8; }

/* =========================
   HERO
========================= */
.hero {
  padding: 72px 0;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.hero-content { max-width: 760px; }

.hero h1 { font-size: 34px; }
.hero p { font-size: 18px; }

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: .2s ease;
}

.btn-primary {
  background-color: #38bdf8;
  color: #020617;
}
.btn-primary:hover {
  background-color: #0ea5e9;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}
.btn-secondary:hover {
  background-color: #38bdf8;
  color: #020617;
  text-decoration: none;
}

/* =========================
   SECTIONS
========================= */
.community-intro,
.featured-platforms {
  padding: 56px 0;
}

.community-intro .container,
.featured-platforms .container {
  max-width: 900px; /* Fokus & premium */
}

/* =========================
   IMAGE / FIGURE
========================= */
figure {
  margin: 24px 0;
}

figure img {
  border-radius: 12px;
  border: 1px solid #1e293b;
  background-color: #020617;
}

/* =========================
   FEATURED / CONTENT
========================= */
.featured-platforms {
  background-color: #020617;
}

.featured-platforms h2 { font-size: 26px; }

/* =========================
   CTA
========================= */
.cta-wrapper {
  margin-top: 20px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #020617;
  border-top: 1px solid #1e293b;
  padding: 40px 0 24px;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
}
/* =========================
   GAMES PAGE – PLATFORM CARDS
========================= */

.platform-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.platform-card {
  background: linear-gradient(
    180deg,
    #020617 0%,
    #020617 100%
  );
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 10px;
  transition: all .25s ease;
  position: relative;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

/* Title */
.platform-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Description */
.platform-card p {
  font-size: 15px;
  color: #cbd5f5;
}

/* CTA */
.platform-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.platform-card a:hover {
  text-decoration: none;
  color: #0ea5e9;
}

/* Optional badge */
.platform-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #020617;
  border: 1px solid #1e293b;
  color: #38bdf8;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
/* =========================
   FOOTER – UI & SEO
========================= */

.site-footer {
  background-color: #020617;
  border-top: 1px solid #1e293b;
  margin-top: 64px;
  padding: 48px 0 24px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 12px;
}

.footer-col p {
  line-height: 1.6;
}

/* =========================
   MOBILE NAVIGATION
========================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #f8fafc;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    width: 100%;
    background-color: #020617;
    border-top: 1px solid #1e293b;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .main-nav.active {
    display: block;
  }
}


/* Footer navigation */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-nav a:hover {
  color: #38bdf8;
}

/* Footer note */
.footer-note {
  font-size: 13px;
  color: #64748b;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
/* =========================
   NAV BASE
========================= */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #38bdf8;
}

/* =========================
   SUBMENU
========================= */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 1000;
}

/* SHOW ON HOVER (DESKTOP) */
@media(min-width:769px) {
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  }
}

/* SUBMENU ITEMS */
.submenu li a {
  display: block;
  padding: 10px 16px;
  color: #e5e7eb;
  font-size: 14px;
  white-space: nowrap;
}

.submenu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #38bdf8;
}
/* =========================
   SUBMENU FIX TOTAL
========================= */

.main-nav ul.submenu {
  display: block !important;
  flex-direction: column !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 9999;
}

/* STACK KE BAWAH */
.main-nav ul.submenu li {
  display: block;
  width: 100%;
}

.main-nav ul.submenu li a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
}

/* HOVER SHOW */
.main-nav li.has-submenu:hover > ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
