/* style.css */
:root {
  --primary: #ab0102;
  --primary-dark: #5d0001;
  --accent-gold: #eaa80d;
  --bg: #000000;
  --bg-card: #151515;
  --text: #f5f5f5;
  --muted: #999999;
  --border-soft: #262626;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.65);
  --transition-fast: 0.2s ease-out;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px; /* ruang untuk navbar bawah */
}

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

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

main {
  width: 100%;
}

.page-wrapper {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px 24px;
}

/* HEADER */
header.site-header {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, #2a0000 0, #000 52%);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background-color: rgba(0, 0, 0, 0.9);
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-wrapper img {
  height: 56px;
  width: auto;
}

.logo-text {
  display: none;
  flex-direction: column;
}

.logo-text span:nth-child(1) {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #ffe082;
}

.logo-text span:nth-child(2) {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

/* RUNNING TEXT / MARQUEE */
.running-text-container {
  width: 100%;
  background: linear-gradient(90deg, #ff1d1d, #ab0102);
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  border-top: 2px solid #ff4a4a;
  border-bottom: 1px solid #8b0000;
  padding: 4px 0;
}

.running-text-container::before {
  content: "●";
  margin: 0 10px;
  color: #ffeb3b;
  font-size: 0.6rem;
}

.running-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* HERO */
.hero-section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr);
  gap: 18px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, #111 65%);
}

.hero-banner img.hero-mobile {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-banner img.hero-desktop {
  display: none;
}

.hero-content {
  padding: 14px 16px 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 215, 64, 0.6);
  color: #ffecb3;
  margin-bottom: 8px;
}

.hero-chip span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.9);
}

.hero-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #eeeeee;
}

.hero-note {
  font-size: 0.72rem;
  color: var(--muted);
}

/* MENU KATEGORI (MOBILE) */
.menu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  background: linear-gradient(180deg, #ab0102 0, #300000 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.menu-item {
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.menu-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(255, 255, 255, 0.12);
}

.menu-item img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}

.menu-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* CTA BUTTONS */
.button-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn-cta span.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffde7;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.btn-cta-primary {
  background: linear-gradient(135deg, #ff5252, #ff1744);
}

.btn-cta-secondary {
  background: linear-gradient(135deg, #40c4ff, #00b0ff);
}

.btn-cta-gold {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: #4a2c00;
  text-shadow: none;
}

.btn-cta-green {
  background: linear-gradient(135deg, #00c853, #00e676);
}

.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-22deg);
  opacity: 0;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.btn-cta:hover::after {
  opacity: 1;
  transform: translateX(260%) skewX(-22deg);
}

/* TABLE INFO */
.table-container {
  margin-top: 26px;
  background: radial-gradient(circle at top, #2b1b00 0, #090909 65%);
  border-radius: var(--radius-lg);
  padding: 16px 14px 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.table-header {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffecb3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

td {
  padding: 7px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  vertical-align: top;
}

td:first-child {
  width: 38%;
  font-weight: 500;
  color: #ffcc80;
}

tr:first-child td {
  border-top: none;
}

/* ARTIKEL SEO */
.article-section {
  margin-top: 26px;
  background: #050505;
  border-radius: var(--radius-lg);
  padding: 18px 14px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-section h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.article-section h3 {
  font-size: 0.9rem;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.article-section p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-section ul {
  margin: 4px 0 10px 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.article-section li {
  margin-bottom: 4px;
}

/* PROVIDER / GUIDELINES IMAGE */
.providers-section {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  box-shadow: var(--shadow-soft);
}

.providers-section img {
  width: 100%;
  height: auto;
}

.guidelines-banner {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* BOTTOM NAVBAR */
.my-navbar {
  height: 56px;
  padding: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.94) 100%);
  position: fixed;
  bottom: 0;
  left: 0;
  color: white;
  z-index: 1100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.navbar-item {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.navbar-item + .navbar-item::before {
  content: "";
  position: absolute;
  left: 0;
  height: 38%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.navbar-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-item-content img {
  width: 22px;
  height: 22px;
}

.navbar-item label {
  font-weight: 600;
}

.navbar-item:hover label {
  color: #ffeb3b;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 18px 12px 84px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  margin-top: 30px;
  background: #050505;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 30% 0%, #ffeb3b 0, #ff6f00 42%, #260000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
  color: #1b0000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  transform: translateY(8px);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 720px) {
  body {
    padding-bottom: 70px;
  }

  header.site-header {
    padding-inline: 32px;
  }

  .page-wrapper {
    padding-inline: 24px;
  }

  .logo-text {
    display: flex;
  }

  .hero-section {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    align-items: stretch;
  }

  .hero-banner img.hero-mobile {
    display: none;
  }

  .hero-banner img.hero-desktop {
    display: block;
  }

  .hero-content {
    padding: 16px 18px 18px;
  }

  .menu-container {
    max-width: 480px;
  }

  .button-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .table-container {
    padding-inline: 18px;
  }

  .article-section {
    padding-inline: 18px;
  }

  footer {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    padding-inline: 0;
  }
}
