/**
 * Legendlink PH - Theme Stylesheet
 * All classes use ve77- prefix for namespace isolation
 * Color palette: #FFCC02 | #FFEFD5 | #FFD700 | #FDF5E6 | #141414
 * Mobile-first design, max-width: 430px
 */

/* === CSS Variables === */
:root {
  --ve77-primary: #FFCC02;
  --ve77-secondary: #FFD700;
  --ve77-accent: #FFEFD5;
  --ve77-light: #FDF5E6;
  --ve77-dark: #141414;
  --ve77-text: #FFEFD5;
  --ve77-bg: #141414;
  --ve77-card-bg: #1a1a1a;
  --ve77-border: #333333;
  --ve77-success: #4CAF50;
  --ve77-danger: #e74c3c;
  --ve77-radius: 8px;
  --ve77-radius-lg: 12px;
  --ve77-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --ve77-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --ve77-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ve77-dark);
  color: var(--ve77-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ve77-primary); text-decoration: none; transition: var(--ve77-transition); }
a:hover { color: var(--ve77-secondary); }

/* === Header === */
.ve77-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-bottom: 1px solid var(--ve77-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.ve77-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ve77-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.ve77-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ve77-primary);
  letter-spacing: 0.5px;
}

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

.ve77-btn-register {
  background: linear-gradient(135deg, var(--ve77-primary), var(--ve77-secondary));
  color: var(--ve77-dark);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--ve77-transition);
}

.ve77-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 204, 2, 0.4);
}

.ve77-btn-login {
  background: transparent;
  color: var(--ve77-primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.0rem;
  border-radius: 20px;
  border: 1.5px solid var(--ve77-primary);
  cursor: pointer;
  transition: var(--ve77-transition);
}

.ve77-btn-login:hover {
  background: rgba(255, 204, 2, 0.1);
}

.ve77-menu-toggle {
  background: none;
  border: none;
  color: var(--ve77-primary);
  font-size: 2.0rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.ve77-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.ve77-mobile-menu nav a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--ve77-text);
  border-bottom: 1px solid var(--ve77-border);
  transition: var(--ve77-transition);
}

.ve77-mobile-menu nav a:hover {
  color: var(--ve77-primary);
  padding-left: 0.8rem;
}

.ve77-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ve77-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* === Main Content === */
main {
  padding-top: 56px;
  padding-bottom: 0;
}

.ve77-container {
  width: 100%;
  padding: 0 1.2rem;
}

/* === Carousel === */
.ve77-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--ve77-radius);
  margin: 1rem 0;
}

.ve77-carousel-slide {
  display: none;
  cursor: pointer;
  border-radius: var(--ve77-radius);
}

.ve77-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--ve77-radius);
}

.ve77-slide-active { display: block; }

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

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

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

/* === Section Headings === */
.ve77-section {
  padding: 1.5rem 0;
}

.ve77-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ve77-primary);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ve77-primary);
}

.ve77-section-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ve77-secondary);
  margin: 1.2rem 0 0.8rem;
}

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

.ve77-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--ve77-transition);
  border-radius: var(--ve77-radius);
  padding: 0.4rem;
}

.ve77-game-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 204, 2, 0.05);
}

.ve77-game-card img {
  width: 72px;
  height: 72px;
  border-radius: var(--ve77-radius);
  border: 1px solid var(--ve77-border);
  object-fit: cover;
}

.ve77-game-card span {
  font-size: 1.0rem;
  color: var(--ve77-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Content Modules === */
.ve77-content-block {
  background: var(--ve77-card-bg);
  border-radius: var(--ve77-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--ve77-border);
}

.ve77-content-block p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--ve77-text);
  margin-bottom: 0.8rem;
}

.ve77-content-block h3 {
  font-size: 1.5rem;
  color: var(--ve77-primary);
  margin-bottom: 0.6rem;
}

.ve77-highlight {
  color: var(--ve77-primary);
  font-weight: 600;
}

.ve77-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ve77-primary), var(--ve77-secondary));
  color: var(--ve77-dark);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.4rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--ve77-transition);
  text-align: center;
  margin: 1rem 0;
  border: none;
}

.ve77-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 2, 0.4);
}

/* === Footer === */
.ve77-footer {
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--ve77-border);
  margin-top: 2rem;
}

.ve77-footer-desc {
  font-size: 1.2rem;
  color: #999;
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.ve77-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ve77-footer-links a {
  background: var(--ve77-card-bg);
  color: var(--ve77-text);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  border: 1px solid var(--ve77-border);
  transition: var(--ve77-transition);
}

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

.ve77-footer-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.ve77-footer-partners img {
  height: 28px;
  opacity: 0.6;
  transition: var(--ve77-transition);
}

.ve77-footer-partners img:hover {
  opacity: 1;
}

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

/* === Bottom Navigation === */
.ve77-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-top: 1px solid var(--ve77-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.ve77-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: var(--ve77-transition);
  padding: 0.4rem;
  border-radius: 8px;
}

.ve77-nav-btn:hover,
.ve77-nav-btn:active {
  color: var(--ve77-primary);
  background: rgba(255, 204, 2, 0.08);
}

.ve77-nav-btn .ve77-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.ve77-nav-btn .ve77-nav-label {
  font-size: 1.0rem;
  white-space: nowrap;
}

.ve77-nav-btn-active {
  color: var(--ve77-primary) !important;
}

.ve77-nav-btn-active .ve77-nav-icon {
  transform: scale(1.1);
}

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

/* === Testimonials === */
.ve77-testimonial {
  background: var(--ve77-card-bg);
  border-radius: var(--ve77-radius);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--ve77-primary);
}

.ve77-testimonial p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--ve77-text);
  font-style: italic;
}

.ve77-testimonial .ve77-author {
  font-size: 1.1rem;
  color: var(--ve77-primary);
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
}

/* === Payment Methods === */
.ve77-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

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

/* === Winners Showcase === */
.ve77-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ve77-border);
}

.ve77-winner-name {
  font-size: 1.2rem;
  color: var(--ve77-text);
}

.ve77-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ve77-primary);
}

/* === FAQ Accordion === */
.ve77-faq-item {
  background: var(--ve77-card-bg);
  border-radius: var(--ve77-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--ve77-border);
}

.ve77-faq-question {
  padding: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ve77-primary);
  cursor: pointer;
}

.ve77-faq-answer {
  padding: 0 1.2rem 1.2rem;
  font-size: 1.2rem;
  color: var(--ve77-text);
  line-height: 1.6rem;
}

/* === Responsive: Desktop hides bottom nav === */
@media (min-width: 769px) {
  .ve77-bottom-nav { display: none; }
  main { padding-bottom: 0; }
}

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

/* === Internal link styling === */
.ve77-internal-link {
  color: var(--ve77-primary);
  text-decoration: underline;
  font-weight: 500;
}

.ve77-internal-link:hover {
  color: var(--ve77-secondary);
}
