/* ==================================================
   STEAM THEME – FINAL (SAFE FOR BOOTSTRAP)
   ================================================== */

:root {
  --steam-bg-main: #1b2838;
  --steam-bg-dark: #171a21;
  --steam-bg-card: #2a475e;
  --steam-bg-light: #f5f7fa;

  --steam-accent: #66c0f4;
  --steam-accent-hover: #9fd6ff;

  --steam-text-main: #c7d5e0;
  --steam-text-muted: #8f98a0;

  --steam-success: #5cb85c;
  --steam-danger: #d9534f;
}

/* ================= GLOBAL ================= */

body.steam-body {
  background: linear-gradient(180deg, #16202d 0%, #1b2838 100%);
  color: #c7d5e0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: var(--steam-accent);
  text-decoration: none;
}
a:hover {
  color: var(--steam-accent-hover);
}

/* ================= NAVBAR ================= */

.steam-navbar {
  background: linear-gradient(180deg, #2a475e, #1b2838);
}

.steam-navbar .nav-link,
.steam-navbar .navbar-brand {
  color: var(--steam-text-main) !important;
}

.steam-navbar .nav-link:hover {
  color: var(--steam-accent) !important;
}

/* ================= HERO ================= */

.steam-hero {
  padding: 5rem 1rem;
  background:
    linear-gradient(rgba(23, 26, 33, 0.9), rgba(23, 26, 33, 0.95)),
    url('/img/store_home_share.jpg')
      center / cover no-repeat;
}

/* ================= SECTIONS ================= */

.steam-section {
  padding: 4rem 1rem;
}

.steam-section.light {
  background: var(--steam-bg-light);
  color: #212529;
}

.steam-section.dark {
  background: var(--steam-bg-dark);
}

/* ================= CARD ================= */

.steam-card {
  background: var(--steam-bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.steam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.steam-card h4,
.steam-card h5 {
  color: #ffffff;
}

.steam-card p {
  color: var(--steam-text-muted);
}

/* ================= TABLE ================= */

.steam-table {
  background: #1f2f3f;
  color: #c7d5e0;
}

.steam-table th {
  background: #223b4f;
  color: #ffffff;
  border-bottom: 1px solid #2a475e;
}

.steam-table td {
  background: #1f2f3f;
  border-bottom: 1px solid #2a475e;
  color: white;
}

.steam-table tbody tr:hover {
  background: #2a475e;
}


/* ================= BADGE ================= */

.steam-badge {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

.steam-badge.success {
  background: var(--steam-success);
  color: #ffffff;
}

.steam-badge.danger {
  background: var(--steam-danger);
  color: #ffffff;
}

/* ================= FOOTER ================= */

.steam-footer {
  background: var(--steam-bg-dark);
  color: var(--steam-text-muted);
  padding: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

/* ================= UTIL ================= */

.text-steam {
  color: var(--steam-accent);
}

.bg-steam-dark {
  background: var(--steam-bg-dark);
}

/* ===============================
   SUIR RESULT GRID – FULL BUTTON
   =============================== */

.steam-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom konsisten */
  gap: 14px;
}

/* Mobile: 1 kolom */
@media (max-width: 768px) {
  .steam-result-grid {
    grid-template-columns: 1fr;
  }
}

.steam-result-item {
  width: 100%;
  background: #1f2f3f;
  border-radius: 8px;
  padding: 18px 16px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease, transform 0.15s ease;
}

.steam-result-item:hover {
  background: #2a475e;
  transform: translateY(-2px);
}

.steam-result-item span {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;

  /* Handle teks panjang */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.steam-result-item:focus-visible {
  outline: 2px solid var(--steam-accent);
}

/* ===============================
   STEAM MODAL
   =============================== */

.steam-modal {
  background: #1b2838;
  color: #e4eef6;
  border-radius: 10px;
}

.steam-modal .modal-header {
  border-bottom: 1px solid #2a475e;
}

.steam-modal .modal-title {
  font-weight: 600;
}

.steam-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .steam-detail-grid {
    grid-template-columns: 1fr;
  }
}

.steam-detail-item {
  background: #223b4f;
  padding: 10px 12px;
  border-radius: 6px;
}

.steam-detail-label {
  font-size: 0.8rem;
  color: #9fbcd3;
  margin-bottom: 2px;
}

.steam-detail-value {
  font-weight: 600;
  word-break: break-word;
}

.steam-detail-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--steam-accent);
}

.steam-kronologi {
  background: #223b4f;
  padding: 14px;
  border-radius: 6px;
  margin-top: 10px;
  white-space: pre-line;
}

.steam-bukti {
  margin-top: 16px;
}

.steam-bukti a {
  display: inline-block;
  padding: 8px 12px;
  background: var(--steam-accent);
  color: #000;
  border-radius: 6px;
  font-weight: 600;
}

/* Hover row Steam-style */
.steam-table tbody tr:hover {
  background-color: #223b4f;
}

/* ===============================
   FAQ ACCORDION (STEAM STYLE)
   =============================== */

.faq-item {
  padding: 0;
}

.faq-question {
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  border-bottom: 1px solid #2a475e;
}

.faq-question i {
  transition: transform 0.2s ease;
}

.faq-question.open i {
  transform: rotate(180deg);
}

.faq-question.small {
  font-size: 0.95rem;
  padding-left: 28px;
  background: #223b4f;
}

.faq-answer {
  display: none;
  padding: 16px 18px;
  background: #1f2f3f;
}

.faq-answer.show {
  display: block;
}

.faq-sub {
  margin-top: 12px;
  border-left: 2px solid #2a475e;
}

.steam-card {
    border-radius: 8px;
    transition: all 0.3s;
}

.steam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.steam-card img {
    object-fit: cover;
}

