/* =============================================
   SUKANGEGAME.ID — Netflix-style Design System
   ============================================= */

:root {
  --bg:           #0a0a0a;
  --bg-card:      #141414;
  --bg-card-h:    #1f1f1f;
  --accent:       #4f8eff;
  --accent-2:     #a855f7;
  --accent-cyan:  #22d3ee;
  --green:        #22c55e;
  --amber:        #f59e0b;
  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #475569;
  --border:       rgba(255,255,255,0.07);
  --nav-h:        64px;
  --radius:       8px;
  --tr:           0.22s ease;
  --font-h:       'Outfit', sans-serif;
  --font-b:       'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #333 var(--bg);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===================== NAV ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, transparent 100%);
  transition: background var(--tr);
}
.navbar.solid { background: rgba(10,10,10,0.98); }

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  padding: 5px;
  background: rgba(79,142,255,0.12);
  border-radius: 8px;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--tr);
}
.nav-links a:hover { color: var(--text-1); }

.btn-support {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: opacity var(--tr);
  flex-shrink: 0;
}
.btn-support:hover { opacity: 0.85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0 8% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.55;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.98) 30%, rgba(10,10,10,0.55) 75%, rgba(10,10,10,0.85) 100%),
    linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, transparent 25%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 60%, #4f8eff0d 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-cyan) 60%, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
  transition: opacity var(--tr), transform var(--tr);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text-1);
  font-family: var(--font-h);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: background var(--tr);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ===================== SEARCH ===================== */
.catalog-search {
  padding: 40px 4% 0;
  max-width: 680px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  width: 18px; height: 18px;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 0.95rem;
  padding: 13px 16px 13px 46px;
  outline: none;
  transition: border-color var(--tr), background var(--tr);
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus {
  border-color: var(--accent);
  background: rgba(79,142,255,0.06);
}
.search-count {
  position: absolute;
  right: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
  pointer-events: none;
}

/* ===================== CATALOG ===================== */
.catalog {
  padding: 0 0 80px;
  min-height: 300px;
}
.catalog-inner { max-width: 100%; }

/* ---- ROW ---- */
.catalog-row {
  margin-bottom: 56px;
  padding: 0 4%;
}
.row-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.catalog-row:first-child .row-header { border-top: none; padding-top: 32px; }
.row-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}
.row-count {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ---- VERTICAL GRID ---- */
.row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ---- CARD ---- */
.game-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.game-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  z-index: 2;
}
.game-card:hover .card-cta {
  color: var(--accent-cyan);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a2e;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .card-img { transform: scale(1.06); }
.card-img-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
}
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #111827, #1e1b4b);
  color: var(--text-3);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.card-body { padding: 14px 16px 16px; }
.card-title {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  transition: color var(--tr);
}
.card-cta:hover { color: var(--accent-cyan); }

/* ---- LOADING ---- */
.grid-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 80px 0;
}
.loading-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: ldot 1.2s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; background: var(--accent-2); }
.loading-dot:nth-child(3) { animation-delay: 0.4s; background: var(--accent-cyan); }
@keyframes ldot {
  0%,80%,100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===================== ABOUT ===================== */
.about-section {
  padding: 80px 4%;
  border-top: 1px solid var(--border);
}
.container { max-width: 1200px; margin: 0 auto; }
.about-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-avatar-ring {
  width: 190px; height: 190px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.about-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a2e;
}
.about-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, #4f8eff18, transparent 70%);
  border-radius: 50%;
}
.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.about-title {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.about-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.about-desc strong { color: var(--text-1); }
.about-quote {
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  font-style: italic;
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 20px 0 24px;
  background: rgba(79,142,255,0.05);
  border-radius: 0 6px 6px 0;
}
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== BOTTOM BAR ===================== */
.bottom-bar {
  border-top: 1px solid var(--border);
  padding: 20px 4%;
}
.bottom-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bottom-link {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--tr);
  flex-shrink: 0;
  margin-left: auto;
}
.bottom-link:hover { color: var(--text-1); }

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links, .btn-support { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 0 5% 60px; min-height: 85vh; align-items: flex-end; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }

  .catalog-row { padding: 0 4%; }
  .game-card { flex: 0 0 220px; }

  .about-wrap { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .about-visual { justify-content: center; }
  .about-actions { justify-content: center; }

  .bottom-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
  .bottom-link { margin-left: 0; }
}
