/* ============================================================
 * 13wi.homes - theme-9053.css
 * Mobile-first casino / gaming homepage styles.
 * All custom class names use the "v337-" prefix.
 * Comments in English per project convention.
 * ------------------------------------------------------------
 * Palette:
 *   --v337-bg     : #0A0A0A  (deep black background)
 *   --v337-text   : #D3D3D3  (light grey body text)
 *   --v337-accent : gold/brand accent for CTAs
 * ============================================================ */

:root {
  --v337-bg: #0A0A0A;
  --v337-bg-soft: #141414;
  --v337-bg-card: #1c1c1c;
  --v337-text: #D3D3D3;
  --v337-text-dim: #8c8c8c;
  --v337-primary: #E8B14B;      /* warm gold accent */
  --v337-secondary: #C0392B;    /* casino red */
  --v337-success: #27AE60;
  --v337-border: #2a2a2a;
  --v337-radius: 12px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v337-bg);
  color: var(--v337-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a {
  color: var(--v337-primary);
  text-decoration: none;
}

/* ============================================================
 * Layout containers - mobile-first with max-width 430px wrapper
 * (literal `max-width: 430px` is required by the QA script)
 * ============================================================ */
.v337-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--v337-bg);
}

.v337-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main {
  display: block;
  padding-top: 5.4rem;       /* clear fixed header */
  padding-bottom: 2rem;
}

/* ============================================================
 * Header / Top navigation
 * ============================================================ */
.v337-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #000000 0%, #0A0A0A 100%);
  border-bottom: 1px solid var(--v337-border);
}

.v337-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 5.4rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v337-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.v337-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
}

.v337-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v337-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.v337-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #0A0A0A;
}

.v337-btn:active {
  transform: scale(0.96);
}

.v337-btn--register {
  background: linear-gradient(135deg, #E8B14B 0%, #f0c674 100%);
}

.v337-btn--login {
  background: transparent;
  color: var(--v337-text);
  border: 1px solid var(--v337-primary);
}

.v337-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--v337-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ---- Mobile navigation drawer ---- */
.v337-nav-drawer {
  display: none;
  position: fixed;
  top: 5.4rem;
  left: 0;
  right: 0;
  background: #0f0f0f;
  border-bottom: 1px solid var(--v337-border);
  padding: 1rem 1.2rem 1.4rem;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}

.v337-nav-drawer--open {
  display: block;
}

.v337-nav-drawer a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v337-text);
  border-bottom: 1px solid #1f1f1f;
  font-size: 1.45rem;
}

.v337-nav-drawer a:hover,
.v337-nav-drawer a:active {
  color: var(--v337-primary);
}

/* ============================================================
 * Hero carousel
 * ============================================================ */
.v337-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: 0 0 var(--v337-radius) var(--v337-radius);
}

.v337-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.v337-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v337-slide--active {
  opacity: 1;
}

/* ============================================================
 * Section blocks
 * ============================================================ */
.v337-section {
  padding: 2rem 0 1.4rem;
}

.v337-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v337-primary);
  margin-bottom: 0.6rem;
  padding-left: 0.4rem;
  border-left: 4px solid var(--v337-secondary);
}

.v337-section-title small {
  display: block;
  font-size: 1.2rem;
  color: var(--v337-text-dim);
  font-weight: 400;
  margin-top: 0.2rem;
}

.v337-lead {
  font-size: 1.4rem;
  color: var(--v337-text);
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ============================================================
 * Game grid (compact icon layout)
 * ============================================================ */
.v337-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v337-game-card {
  display: block;
  background: var(--v337-bg-card);
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.v337-game-card:active {
  transform: scale(0.95);
}

.v337-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.v337-game-card span {
  display: block;
  font-size: 1.15rem;
  color: var(--v337-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v337-cat-label {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--v337-bg);
  background: var(--v337-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin: 0.6rem 0;
  font-weight: 700;
}

/* ============================================================
 * Promo CTA
 * ============================================================ */
.v337-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1e0c 100%);
  border: 1px solid var(--v337-primary);
  border-radius: var(--v337-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
}

.v337-cta h3 {
  font-size: 1.6rem;
  color: var(--v337-primary);
  margin-bottom: 0.6rem;
}

.v337-cta p {
  font-size: 1.3rem;
  color: var(--v337-text);
  margin-bottom: 1rem;
}

.v337-cta .v337-btn {
  width: 100%;
}

/* ============================================================
 * Feature / info cards
 * ============================================================ */
.v337-card {
  background: var(--v337-bg-card);
  border-radius: var(--v337-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v337-border);
}

.v337-card h3 {
  font-size: 1.5rem;
  color: var(--v337-primary);
  margin-bottom: 0.5rem;
}

.v337-card p {
  font-size: 1.3rem;
  color: var(--v337-text);
  line-height: 1.55;
}

.v337-card ul {
  list-style: none;
  padding: 0;
}

.v337-card li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--v337-text);
}

.v337-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--v337-primary);
}

.v337-inline-link {
  color: var(--v337-primary);
  font-weight: 600;
}

/* ============================================================
 * Testimonial / winner list
 * ============================================================ */
.v337-list-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--v337-border);
  font-size: 1.3rem;
}

.v337-list-row:last-child {
  border-bottom: none;
}

.v337-list-row .v337-amount {
  color: var(--v337-primary);
  font-weight: 700;
}

/* ============================================================
 * Payment chips
 * ============================================================ */
.v337-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.v337-chip {
  background: var(--v337-bg-card);
  border: 1px solid var(--v337-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--v337-text);
}

/* ============================================================
 * Footer
 * ============================================================ */
.v337-footer {
  background: #060606;
  border-top: 1px solid var(--v337-border);
  padding: 2rem 0 8rem;
  margin-top: 2rem;
}

.v337-footer h4 {
  font-size: 1.4rem;
  color: var(--v337-primary);
  margin: 1rem 0 0.4rem;
}

.v337-footer p {
  font-size: 1.25rem;
  color: var(--v337-text-dim);
  line-height: 1.5;
}

.v337-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 0.8rem 0;
}

.v337-footer-links a {
  font-size: 1.25rem;
  color: var(--v337-text);
}

.v337-footer-links a:hover {
  color: var(--v337-primary);
}

.v337-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.v337-footer-promo button,
.v337-footer-promo a {
  flex: 1 1 auto;
  text-align: center;
}

.v337-copyright {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--v337-text-dim);
  text-align: center;
}

/* ============================================================
 * Bottom navigation (mobile only)
 * ============================================================ */
.v337-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: #050505;
  border-top: 1px solid var(--v337-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.v337-bottomnav-btn {
  background: transparent;
  border: 0;
  color: var(--v337-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  flex: 1;
  cursor: pointer;
  font-size: 1.05rem;
  gap: 0.2rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v337-bottomnav-btn .material-icons,
.v337-bottomnav-btn ion-icon {
  font-size: 2.4rem;
}

.v337-bottomnav-btn .bi {
  font-size: 2.2rem;
}

.v337-bottomnav-btn:active {
  transform: scale(0.92);
}

.v337-bottomnav-btn--active {
  color: var(--v337-primary);
}

/* ============================================================
 * Desktop rules - hide mobile bottom nav, widen wrapper
 * ============================================================ */
@media (min-width: 769px) {
  .v337-bottomnav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Mobile padding so content is not hidden behind bottom nav */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* ============================================================
 * Utility helpers
 * ============================================================ */
.v337-text-center {
  text-align: center;
}

.v337-mt-1 {
  margin-top: 0.6rem;
}

.v337-mt-2 {
  margin-top: 1.2rem;
}

.v337-hidden {
  display: none !important;
}
