/* site-addon.css — class เพิ่มเติมที่ไม่มีใน theme.css ของ th23.club
   ใช้กับเว็บ th239.online เท่านั้น ต้องโหลดหลังจาก theme.css
   ธีม: พื้นหลังมืด #0d0d0f / #151519, accent ทอง #f5b301
*/

/* ---------- page shell ---------- */
.page-home,
.page-auth,
.page-category,
.page-game,
.page-legal,
.page-static {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(245, 179, 1, 0.10), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(245, 179, 1, 0.06), transparent 60%),
    #0d0d0f;
}

/* ---------- hero ---------- */
.portal-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 78% 12%, rgba(245, 179, 1, 0.16), transparent 62%),
    radial-gradient(600px 380px at 12% 92%, rgba(13, 110, 253, 0.10), transparent 60%);
  pointer-events: none;
}

.portal-hero > .container-xl {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f5b301;
  margin-bottom: 0.75rem;
}

.hero-title {
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
}

.hero-figure {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151519;
  margin: 0;
}

.hero-figure img {
  display: block;
}

.hero-checks {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
}

/* ---------- generic section ---------- */
.portal-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  max-width: 760px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f5b301;
  margin-bottom: 0.5rem;
}

.section-title {
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- game card ---------- */
.game-card {
  display: flex;
  flex-direction: column;
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 179, 1, 0.45);
}

.game-card-media {
  margin: 0;
  background: #0d0d0f;
}

.game-card-media img {
  display: block;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.15rem 1.25rem 1.35rem;
}

.game-card-title {
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ---------- feature / trust cards ---------- */
.feature-card,
.trust-card {
  height: 100%;
  padding: 1.5rem 1.35rem;
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.feature-card h3,
.trust-card h3 {
  color: #fff;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #f5b301;
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.28);
  border-radius: 0.9rem;
}

/* ---------- step guide ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 1.75rem 1.35rem 1.35rem;
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0d0d0f;
  background: #f5b301;
  border-radius: 999px;
}

.step-item h3 {
  color: #fff;
}

/* ---------- CTA strip ---------- */
.portal-cta-strip {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background:
    linear-gradient(135deg, rgba(245, 179, 1, 0.14), rgba(245, 179, 1, 0.04)),
    #151519;
  border-top: 1px solid rgba(245, 179, 1, 0.25);
}

.portal-cta-strip h2 {
  color: #fff;
}

/* ---------- glossary ---------- */
.glossary-item {
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #f5b301;
  border-radius: 0.75rem;
}

.glossary-item h3 {
  color: #f5b301;
}

/* ---------- tables inside portal sections ---------- */
.portal-section .table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

.portal-section .table thead th {
  background: rgba(245, 179, 1, 0.12);
  color: #f5b301;
  font-weight: 700;
  white-space: nowrap;
}

.portal-section .table > :not(caption) > * > * {
  padding: 0.85rem 1rem;
}

.portal-section .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- FAQ ---------- */
.portal-section .accordion-item {
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem !important;
  overflow: hidden;
}

.portal-section .accordion-item + .accordion-item {
  margin-top: 0.75rem;
}

.portal-section .accordion-button {
  background: #151519;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.portal-section .accordion-button:not(.collapsed) {
  background: rgba(245, 179, 1, 0.12);
  color: #f5b301;
}

.portal-section .accordion-button::after {
  filter: invert(1);
}

.portal-section .accordion-body {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* ---------- inner hero (หน้าภายใน) ---------- */
.inner-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(700px 380px at 80% 0%, rgba(245, 179, 1, 0.14), transparent 60%),
    #0d0d0f;
}

.inner-hero-title {
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.inner-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #f5b301;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- media figure ---------- */
.media-figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #151519;
}

.media-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.media-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- article body typography ---------- */
.article-copy {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.article-copy h2 {
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.article-copy h3 {
  color: #f5b301;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.1875rem;
  font-weight: 700;
}

.article-copy p {
  margin-bottom: 1.15rem;
}

.article-copy ul,
.article-copy ol {
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
}

.article-copy li {
  margin-bottom: 0.5rem;
}

.article-copy a:not(.btn) {
  color: #f5b301;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-copy table {
  width: 100%;
  margin: 1.5rem 0;
  border-color: rgba(255, 255, 255, 0.12);
}

.article-copy table th {
  background: rgba(245, 179, 1, 0.12);
  color: #f5b301;
}

/* ---------- auth card (สมัคร/เข้าสู่ระบบ) ---------- */
.auth-card {
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-card .form-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.auth-card .form-control {
  background: #0d0d0f;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.7rem 0.9rem;
}

.auth-card .form-control:focus {
  border-color: #f5b301;
  box-shadow: 0 0 0 0.2rem rgba(245, 179, 1, 0.2);
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
  .hero-lead,
  .inner-hero-lead {
    font-size: 1rem;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }
}
