/* ============================================================
   MPO222 - Landing Page Template
   File : assets/template.css
   Used : LP---MPO222 2026  Pusat Akses, Game Favorit & Info Terbaru.html
   Layer: 1) tokens  2) base  3) utilities  4) responsive
          5) mpo-* components
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #04091c;
  --panel: #0a1330;
  --line: rgba(34, 211, 238, 0.28);
  --cyan: #22d3ee;
  --cyan-soft: #a5f3fc;
  --blue: #1e40af;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6, p, figure {
  margin: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

section[id],
footer[id] { scroll-margin-top: 5rem; }

/* Base theme class hasil build (Next.js) */
.__className_e8ce0c {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

/* ---------- 3. UTILITIES ---------- */

/* layout */
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* flex sizing */
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

/* position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }

/* grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }

/* spacing - padding */
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }

/* spacing - margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-2 { margin-left: .5rem; }
.mr-1 { margin-right: .25rem; }
.mr-4 { margin-right: 1rem; }

/* gap */
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-3 > * + * { margin-left: .75rem; }

/* sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* overflow / object */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* typography */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* color - text */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-yellow-400 { color: #facc15; }

/* color - background */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, #2563eb, #0b1a4d);
}

/* border */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }

/* radius */
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }

/* shadow */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }

/* transition */
.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }
.transition-all {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform, filter;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 35px -10px rgba(15, 23, 42, .22); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* ---------- 4. RESPONSIVE ---------- */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .lg\:hidden { display: none; }
}

/* ---------- 5. KOMPONEN MPO ---------- */

/* navigasi */
.mpo-nav {
  background-color: rgba(4, 9, 28, .94);
  background-image: linear-gradient(180deg, rgba(10, 19, 48, .96), rgba(4, 9, 28, .96));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mpo-nav .flex.justify-between { gap: 1rem; }

/* judul brand di nav: judul panjang tidak bikin nav meluber */
.mpo-nav a[href="/"] > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpo-navlinks {
  display: none;
  align-items: center;
  gap: .3rem;
}

.mpo-navbtn {
  display: inline-block;
  white-space: nowrap;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #dbeafe;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.mpo-navbtn:hover,
.mpo-navbtn:focus-visible {
  color: #04121a;
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.mpo-hover-cyan { transition: color .2s ease; }
.mpo-hover-cyan:hover { color: var(--cyan); }

/* menu mobile (dibuat oleh script di bawah body) */
.mpo-mobilenav {
  position: absolute;
  top: 4.25rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  padding: .4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #0a1330;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.mpo-mobilenav.hidden { display: none; }

.mpo-mobilelink {
  display: block;
  padding: .55rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}

.mpo-mobilelink:hover { background: rgba(34, 211, 238, .14); color: var(--cyan-soft); }

@media (min-width: 1024px) {
  .mpo-navlinks { display: flex; }
}

/* hero */
.mpo-hero {
  background-color: #050b22;
  background-image:
    radial-gradient(1000px 420px at 10% -12%, rgba(34, 211, 238, .22), transparent 62%),
    radial-gradient(760px 380px at 88% -6%, rgba(168, 85, 247, .20), transparent 64%),
    linear-gradient(180deg, #060d29 0%, #04091c 100%);
  border-bottom: 1px solid var(--line);
}

.mpo-sub {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--cyan-soft);
  line-height: 1.6;
}

/* form pencarian */
input.mpo-ring,
select.mpo-ring {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  background-color: #fff;
  color: #111827;
  font-size: .95rem;
}

input.mpo-ring::placeholder { color: #9ca3af; }

.mpo-ring:focus,
.mpo-ring:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .28);
}

/* tombol utama */
.mpo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background-image: linear-gradient(180deg, #2563eb 0%, #1e40af 60%, #0b1a4d 100%);
  background-color: #1e40af;
  color: #fff;
  border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.mpo-btn:hover,
.mpo-btn:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 211, 238, .28);
}

.mpo-btn:active { transform: translateY(0); }

/* topik populer */
.mpo-topic {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .7);
  background-image: linear-gradient(180deg, #a5f3fc, #67e8f9);
  color: #0f2b46;
  font-size: .8rem;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mpo-topic:hover,
.mpo-topic:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(34, 211, 238, .35);
}

/* badge kartu */
.mpo-badge {
  background-image: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #3b2400;
  letter-spacing: .3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

/* tag (chip + avatar) */
.mpo-tag {
  color: #0b3b52;
  background-image: linear-gradient(180deg, #e0f7ff, #bae6fd);
  border: 1px solid rgba(34, 211, 238, .55);
  font-weight: 600;
}

/* inisial reviewer */
.mpo-price {
  font-size: 1.25rem;
  font-weight: 800;
  background-image: linear-gradient(180deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* kartu promo */
.mpo-card-blue {
  background-image: linear-gradient(135deg, #2563eb 0%, #1e40af 55%, #0b1a4d 100%);
}

.mpo-card-green {
  background-image: linear-gradient(135deg, #10b981 0%, #047857 55%, #022c22 100%);
}

.mpo-card-purple {
  background-image: linear-gradient(135deg, #a855f7 0%, #7e22ce 55%, #2e1065 100%);
}

.mpo-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mpo-offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
}

.mpo-offer-ico {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45));
}

.mpo-offer-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.mpo-btn-light-blue,
.mpo-btn-light-green,
.mpo-btn-light-purple {
  display: inline-block;
  padding: .6rem 1.25rem;
  border-radius: .375rem;
  background-color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .3px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
  transition: transform .2s ease, filter .2s ease;
}

.mpo-btn-light-blue { color: #1d4ed8; }
.mpo-btn-light-green { color: #047857; }
.mpo-btn-light-purple { color: #7e22ce; }

.mpo-btn-light-blue:hover,
.mpo-btn-light-green:hover,
.mpo-btn-light-purple:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

/* footer */
.mpo-footer {
  background-color: #0b1220;
  background-image: linear-gradient(180deg, #0c1530 0%, #04091c 100%);
  border-top: 1px solid var(--line);
}

.mpo-creditlink {
  color: var(--cyan);
  font-weight: 700;
}

.mpo-creditlink:hover { text-decoration: underline; }

.mpo-socials {
  display: flex;
  gap: .6rem;
}

.mpo-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: rgba(34, 211, 238, .12);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.mpo-social:hover,
.mpo-social:focus-visible {
  background-color: var(--cyan);
  color: #04091c;
  transform: translateY(-2px);
}

.mpo-footlinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}