/**
 * jilli58 - Theme Stylesheet
 * Prefix: vef8-
 * All classes and variables use the vef8- prefix for namespace isolation.
 * Mobile-first design, max-width 430px.
 */

/* ===== CSS Variables ===== */
:root {
  --vef8-primary: #FF9800;
  --vef8-bg: #1A1A1A;
  --vef8-accent: #E65100;
  --vef8-highlight: #9932CC;
  --vef8-gold: #FFBF00;
  --vef8-text: #FFFFFF;
  --vef8-light-bg: #2A2A2A;
  --vef8-dark-bg: #111111;
  --vef8-border: #444444;
  --vef8-radius: 8px;
  --vef8-radius-lg: 12px;
  --vef8-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --vef8-header-h: 56px;
  --vef8-bottom-h: 60px;
  --vef8-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vef8-font);
  background-color: var(--vef8-bg);
  color: var(--vef8-text);
  font-size: 1.4rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--vef8-gold);
}

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

ul, ol {
  list-style: none;
}

/* ===== Container ===== */
.vef8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vef8-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* ===== Header ===== */
.vef8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--vef8-dark-bg);
  border-bottom: 1px solid var(--vef8-border);
  height: var(--vef8-header-h);
}

.vef8-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}

.vef8-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.vef8-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.vef8-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vef8-primary);
  white-space: nowrap;
}

.vef8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vef8-btn-register {
  background: var(--vef8-primary);
  color: var(--vef8-dark-bg);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--vef8-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.vef8-btn-register:hover {
  background: var(--vef8-gold);
  color: var(--vef8-dark-bg);
}

.vef8-btn-login {
  background: transparent;
  color: var(--vef8-primary);
  border: 1px solid var(--vef8-primary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--vef8-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.vef8-btn-login:hover {
  background: var(--vef8-primary);
  color: var(--vef8-dark-bg);
}

.vef8-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.vef8-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vef8-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Mobile Menu ===== */
.vef8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.vef8-overlay-active {
  opacity: 1;
  visibility: visible;
}

.vef8-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--vef8-dark-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.vef8-menu-active {
  right: 0;
}

.vef8-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--vef8-text);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

.vef8-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vef8-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vef8-border);
}

.vef8-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vef8-menu-list a {
  display: block;
  padding: 1rem;
  color: var(--vef8-text);
  font-size: 1.4rem;
  border-radius: var(--vef8-radius);
  transition: background 0.2s;
}

.vef8-menu-list a:hover {
  background: var(--vef8-light-bg);
  color: var(--vef8-primary);
}

/* ===== Carousel ===== */
.vef8-carousel {
  position: relative;
  overflow: hidden;
  margin-top: var(--vef8-header-h);
  border-radius: 0 0 var(--vef8-radius-lg) var(--vef8-radius-lg);
}

.vef8-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.vef8-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.vef8-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vef8-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.vef8-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.vef8-dot-active {
  background: var(--vef8-primary);
  width: 20px;
  border-radius: 4px;
}

/* ===== Main Content ===== */
.vef8-main {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .vef8-main {
    padding-bottom: 80px;
  }
}

/* ===== Section ===== */
.vef8-section {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: var(--vef8-light-bg);
  border-radius: var(--vef8-radius-lg);
}

.vef8-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vef8-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vef8-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vef8-section-title i,
.vef8-section-title .material-icons {
  font-size: 2rem;
  color: var(--vef8-gold);
}

/* ===== Game Grid ===== */
.vef8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vef8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.vef8-game-item:hover {
  transform: scale(1.05);
}

.vef8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--vef8-radius);
  object-fit: cover;
  border: 2px solid var(--vef8-border);
  transition: border-color 0.2s;
}

.vef8-game-item:hover img {
  border-color: var(--vef8-primary);
}

.vef8-game-name {
  font-size: 1.1rem;
  color: var(--vef8-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== Cards ===== */
.vef8-card {
  background: var(--vef8-light-bg);
  border-radius: var(--vef8-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--vef8-border);
}

.vef8-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vef8-primary);
  margin-bottom: 0.8rem;
}

.vef8-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #cccccc;
}

/* ===== Promo Buttons ===== */
.vef8-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vef8-primary), var(--vef8-accent));
  color: var(--vef8-dark-bg);
  padding: 1rem 2.4rem;
  border-radius: var(--vef8-radius-lg);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.vef8-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  color: var(--vef8-dark-bg);
}

.vef8-promo-link {
  color: var(--vef8-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.vef8-promo-link:hover {
  color: var(--vef8-primary);
}

/* ===== Footer ===== */
.vef8-footer {
  background: var(--vef8-dark-bg);
  border-top: 1px solid var(--vef8-border);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.vef8-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.vef8-footer-brand p {
  font-size: 1.2rem;
  color: #999;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.vef8-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.vef8-footer-links a {
  font-size: 1.2rem;
  color: var(--vef8-primary);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--vef8-border);
  border-radius: var(--vef8-radius);
  transition: all 0.2s;
}

.vef8-footer-links a:hover {
  background: var(--vef8-primary);
  color: var(--vef8-dark-bg);
}

.vef8-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.vef8-footer-promo button {
  background: linear-gradient(135deg, var(--vef8-primary), var(--vef8-accent));
  color: var(--vef8-dark-bg);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--vef8-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.vef8-footer-promo button:hover {
  transform: scale(1.05);
}

.vef8-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vef8-border);
}

/* ===== Bottom Navigation ===== */
.vef8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--vef8-dark-bg);
  border-top: 2px solid var(--vef8-primary);
  height: var(--vef8-bottom-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.vef8-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: all 0.2s;
  text-decoration: none;
  gap: 2px;
}

.vef8-bottom-btn:hover,
.vef8-bottom-btn:active {
  color: var(--vef8-primary);
  transform: scale(1.1);
}

.vef8-bottom-btn i,
.vef8-bottom-btn .material-icons,
.vef8-bottom-btn ion-icon,
.vef8-bottom-btn bi {
  font-size: 22px;
}

.vef8-bottom-btn span,
.vef8-bottom-btn .vef8-nav-label {
  font-size: 1rem;
  color: inherit;
  font-weight: 500;
}

.vef8-bottom-btn.vef8-active {
  color: var(--vef8-primary);
}

.vef8-bottom-btn.vef8-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vef8-primary);
  border-radius: 2px;
  margin-top: 1px;
}

/* ===== Responsive: Hide bottom nav on desktop ===== */
@media (min-width: 769px) {
  .vef8-bottom-nav {
    display: none;
  }
}

/* ===== Utility Classes ===== */
.vef8-text-center { text-align: center; }
.vef8-text-gold { color: var(--vef8-gold); }
.vef8-text-primary { color: var(--vef8-primary); }
.vef8-text-highlight { color: var(--vef8-highlight); }
.vef8-mt-1 { margin-top: 1rem; }
.vef8-mb-1 { margin-bottom: 1rem; }
.vef8-mt-2 { margin-top: 2rem; }
.vef8-mb-2 { margin-bottom: 2rem; }

/* ===== Winner Badge ===== */
.vef8-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--vef8-highlight);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Payment Icons ===== */
.vef8-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.vef8-payment-icon {
  background: var(--vef8-light-bg);
  border: 1px solid var(--vef8-border);
  border-radius: var(--vef8-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--vef8-text);
}

/* ===== Testimonial ===== */
.vef8-testimonial {
  background: var(--vef8-light-bg);
  border-left: 3px solid var(--vef8-primary);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 0 var(--vef8-radius) var(--vef8-radius) 0;
}

.vef8-testimonial p {
  font-size: 1.2rem;
  color: #ccc;
  font-style: italic;
}

.vef8-testimonial-author {
  font-size: 1.1rem;
  color: var(--vef8-gold);
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 600;
}

/* ===== H1 Title ===== */
.vef8-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vef8-primary);
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.3;
}

/* ===== RTP Table ===== */
.vef8-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.vef8-rtp-table th {
  background: var(--vef8-accent);
  color: #fff;
  padding: 0.6rem;
  text-align: left;
  font-size: 1.1rem;
}

.vef8-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--vef8-border);
  color: #ccc;
}

.vef8-rtp-table tr:hover td {
  background: var(--vef8-light-bg);
}

/* ===== Category Label ===== */
.vef8-cat-label {
  display: inline-block;
  background: var(--vef8-accent);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ===== Achievement Item ===== */
.vef8-achievement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--vef8-border);
}

.vef8-achievement i {
  color: var(--vef8-gold);
  font-size: 2rem;
}

.vef8-achievement-text {
  font-size: 1.2rem;
  color: #ccc;
}

/* ===== Internal Link ===== */
.vef8-internal-link {
  color: var(--vef8-highlight);
  text-decoration: underline;
  font-weight: 500;
}

.vef8-internal-link:hover {
  color: var(--vef8-gold);
}
