/**
 * Taya365OriginalAPK - Main Theme Stylesheet
 * All classes use veb3- prefix for namespace isolation
 * Color Palette: #90EE90 | #2C3E50 | #FFC0CB | #20B2AA | #2E8B57
 * File: css/theme.css
 */

/* === CSS Variables === */
:root {
  --veb3-primary: #2E8B57;
  --veb3-primary-light: #90EE90;
  --veb3-primary-dark: #1a6b3c;
  --veb3-secondary: #20B2AA;
  --veb3-accent: #FFC0CB;
  --veb3-bg: #2C3E50;
  --veb3-bg-dark: #1a252f;
  --veb3-bg-card: #34495e;
  --veb3-bg-card-hover: #3d566e;
  --veb3-text: #ecf0f1;
  --veb3-text-muted: #bdc3c7;
  --veb3-text-accent: #90EE90;
  --veb3-border: #4a6274;
  --veb3-white: #ffffff;
  --veb3-gold: #ffd700;
  --veb3-danger: #e74c3c;
  --veb3-success: #2ecc71;
  --veb3-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --veb3-radius: 8px;
  --veb3-radius-lg: 12px;
  --veb3-header-h: 56px;
  --veb3-bottom-nav-h: 62px;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--veb3-bg);
  color: var(--veb3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--veb3-text-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* === Header === */
.veb3-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--veb3-header-h);
  background: linear-gradient(135deg, var(--veb3-bg-dark), var(--veb3-bg));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--veb3-primary);
  box-shadow: var(--veb3-shadow);
}

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

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

.veb3-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--veb3-text-accent);
  white-space: nowrap;
}

.veb3-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.veb3-btn-register,
.veb3-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.veb3-btn-register {
  background: linear-gradient(135deg, var(--veb3-primary), var(--veb3-success));
  color: var(--veb3-white);
  box-shadow: 0 2px 6px rgba(46,139,87,0.4);
}

.veb3-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(46,139,87,0.6);
}

.veb3-btn-login {
  background: transparent;
  color: var(--veb3-text-accent);
  border: 1.5px solid var(--veb3-primary);
}

.veb3-btn-login:hover {
  background: var(--veb3-primary);
  color: var(--veb3-white);
}

.veb3-menu-toggle {
  background: none;
  border: none;
  color: var(--veb3-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

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

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

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

.veb3-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.veb3-overlay-active {
  display: block;
}

.veb3-menu-links {
  list-style: none;
  margin-top: 2rem;
}

.veb3-menu-links li {
  border-bottom: 1px solid var(--veb3-border);
}

.veb3-menu-links a {
  display: block;
  padding: 1.2rem 0.5rem;
  color: var(--veb3-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.veb3-menu-links a:hover {
  color: var(--veb3-text-accent);
  text-decoration: none;
}

/* === Main Content === */
.veb3-main {
  padding-top: calc(var(--veb3-header-h) + 0.5rem);
  min-height: 100vh;
}

/* === Slider === */
.veb3-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--veb3-radius) var(--veb3-radius);
}

.veb3-slide {
  display: none;
  cursor: pointer;
}

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

.veb3-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

.veb3-dot-active {
  background: var(--veb3-primary-light);
  transform: scale(1.2);
}

/* === Section Styles === */
.veb3-section {
  padding: 1.5rem 1rem;
}

.veb3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--veb3-text-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--veb3-primary);
}

.veb3-section-title i {
  margin-right: 0.5rem;
}

/* === Game Grid === */
.veb3-game-category {
  margin-bottom: 2rem;
}

.veb3-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--veb3-secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.veb3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.veb3-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--veb3-radius);
  padding: 0.5rem;
  background: var(--veb3-bg-card);
}

.veb3-game-item:hover {
  transform: scale(1.05);
  background: var(--veb3-bg-card-hover);
}

.veb3-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.veb3-game-name {
  font-size: 1rem;
  color: var(--veb3-text-muted);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Cards === */
.veb3-card {
  background: var(--veb3-bg-card);
  border-radius: var(--veb3-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--veb3-shadow);
  border: 1px solid var(--veb3-border);
}

.veb3-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--veb3-text-accent);
  margin-bottom: 0.8rem;
}

/* === Promo Buttons === */
.veb3-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--veb3-primary), var(--veb3-success));
  color: var(--veb3-white);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.veb3-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(46,139,87,0.5);
  text-decoration: none;
}

.veb3-promo-text {
  color: var(--veb3-text-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.veb3-promo-text:hover {
  color: var(--veb3-primary-light);
}

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

.veb3-footer-brand {
  font-size: 1.3rem;
  color: var(--veb3-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

.veb3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.veb3-footer-links a {
  color: var(--veb3-text-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--veb3-border);
  border-radius: 4px;
  transition: all 0.2s;
}

.veb3-footer-links a:hover {
  color: var(--veb3-text-accent);
  border-color: var(--veb3-primary);
  text-decoration: none;
}

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

/* === Bottom Navigation === */
.veb3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--veb3-bottom-nav-h);
  background: linear-gradient(180deg, var(--veb3-bg), var(--veb3-bg-dark));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--veb3-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.veb3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--veb3-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: 8px;
}

.veb3-bottom-nav-item i,
.veb3-bottom-nav-item .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.veb3-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.veb3-bottom-nav-item:hover,
.veb3-bottom-nav-item:active {
  color: var(--veb3-text-accent);
  background: rgba(144,238,144,0.1);
}

.veb3-nav-active {
  color: var(--veb3-primary-light) !important;
}

.veb3-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--veb3-primary-light);
  margin: 2px auto 0;
  border-radius: 1px;
}

/* === Utility Classes === */
.veb3-text-center { text-align: center; }
.veb3-mt-1 { margin-top: 0.5rem; }
.veb3-mt-2 { margin-top: 1rem; }
.veb3-mt-3 { margin-top: 1.5rem; }
.veb3-mb-1 { margin-bottom: 0.5rem; }
.veb3-mb-2 { margin-bottom: 1rem; }
.veb3-p-1 { padding: 0.5rem; }
.veb3-p-2 { padding: 1rem; }

.veb3-highlight {
  color: var(--veb3-primary-light);
  font-weight: 700;
}

.veb3-badge {
  display: inline-block;
  background: var(--veb3-gold);
  color: var(--veb3-bg-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

/* === Winner Ticker === */
.veb3-winner-list {
  list-style: none;
}

.veb3-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}

.veb3-winner-name {
  color: var(--veb3-text);
  font-weight: 600;
}

.veb3-winner-amount {
  color: var(--veb3-gold);
  font-weight: 700;
}

.veb3-winner-game {
  color: var(--veb3-text-muted);
  font-size: 1.1rem;
}

/* === Testimonials === */
.veb3-testimonial {
  background: var(--veb3-bg-card);
  border-radius: var(--veb3-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--veb3-primary);
}

.veb3-testimonial-author {
  font-weight: 700;
  color: var(--veb3-text-accent);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

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

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

.veb3-payment-item {
  background: var(--veb3-bg-card);
  border: 1px solid var(--veb3-border);
  border-radius: var(--veb3-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--veb3-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === CTA Section === */
.veb3-cta-section {
  background: linear-gradient(135deg, var(--veb3-primary), var(--veb3-secondary));
  border-radius: var(--veb3-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.veb3-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--veb3-white);
  margin-bottom: 0.5rem;
}

.veb3-cta-text {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}

/* === Back to Top === */
#veb3-back-top {
  display: none;
  position: fixed;
  bottom: 75px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--veb3-primary);
  color: var(--veb3-white);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  box-shadow: var(--veb3-shadow);
}

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

@media (max-width: 768px) {
  .veb3-main {
    padding-bottom: calc(var(--veb3-bottom-nav-h) + 10px);
  }
}
