/**
 * Bouncy Ball - Main Stylesheet
 * File: css/theme-757a.css
 * Prefix: vaff-
 */

/* === CSS Variables === */
:root {
  --vaff-primary: #AD1457;
  --vaff-bg: #0F0F23;
  --vaff-text: #BAE1FF;
  --vaff-accent: #FFA500;
  --vaff-muted: #495057;
  --vaff-pink: #FFB6C1;
  --vaff-white: #ffffff;
  --vaff-radius: 0.8rem;
  --vaff-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --vaff-header-h: 5.6rem;
  --vaff-bnav-h: 6rem;
}

/* === Reset & Base === */
*, *::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, 'Helvetica Neue', Arial, sans-serif;
  background: var(--vaff-bg);
  color: var(--vaff-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vaff-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === Header === */
.vaff-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--vaff-header-h);
  background: linear-gradient(135deg, #0F0F23 0%, #1a1035 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(173,20,87,0.3);
  transition: box-shadow 0.3s ease;
}
.vaff-header-scrolled {
  box-shadow: 0 4px 20px rgba(173,20,87,0.25);
}
.vaff-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.vaff-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}
.vaff-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vaff-accent);
  letter-spacing: 0.5px;
}
.vaff-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vaff-btn-register {
  background: linear-gradient(135deg, var(--vaff-primary), #d81b60);
  color: var(--vaff-white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--vaff-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vaff-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(173,20,87,0.5);
}
.vaff-btn-login {
  background: transparent;
  color: var(--vaff-pink);
  border: 1.5px solid var(--vaff-pink);
  padding: 0.55rem 1.2rem;
  border-radius: var(--vaff-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.vaff-btn-login:hover {
  background: var(--vaff-pink);
  color: var(--vaff-bg);
}
.vaff-menu-toggle {
  background: none;
  border: none;
  color: var(--vaff-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.vaff-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.vaff-overlay-active {
  opacity: 1;
  pointer-events: all;
}
.vaff-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1a1035 0%, #0F0F23 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.vaff-menu-active {
  right: 0;
}
.vaff-menu-close {
  background: none;
  border: none;
  color: var(--vaff-text);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
  margin-bottom: 2rem;
}
.vaff-mobile-menu ul {
  clear: both;
}
.vaff-mobile-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vaff-mobile-menu a {
  display: block;
  padding: 1.2rem 0.5rem;
  color: var(--vaff-text);
  font-size: 1.4rem;
  transition: color 0.2s, padding-left 0.2s;
}
.vaff-mobile-menu a:hover {
  color: var(--vaff-accent);
  padding-left: 1rem;
}

/* === Main Content === */
.vaff-main {
  padding-top: calc(var(--vaff-header-h) + 0.5rem);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .vaff-main {
    padding-bottom: calc(var(--vaff-bnav-h) + 1rem);
  }
}

/* === Carousel === */
.vaff-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--vaff-radius);
  margin: 1rem;
  cursor: pointer;
}
.vaff-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.vaff-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.vaff-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.vaff-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.vaff-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.vaff-dot-active {
  background: var(--vaff-accent);
  width: 2rem;
  border-radius: 0.4rem;
}

/* === Sections === */
.vaff-section {
  padding: 2rem 1.2rem;
}
.vaff-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vaff-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vaff-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vaff-section-title i, .vaff-section-title span.material-icons-outlined {
  font-size: 2rem;
  color: var(--vaff-pink);
}

/* === Game Grid === */
.vaff-game-section {
  margin-bottom: 2rem;
}
.vaff-game-section h3 {
  font-size: 1.5rem;
  color: var(--vaff-pink);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--vaff-primary);
}
.vaff-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.vaff-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.vaff-game-item:hover {
  transform: scale(1.06);
}
.vaff-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  border: 1.5px solid rgba(173,20,87,0.2);
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.vaff-game-item span {
  font-size: 1rem;
  color: var(--vaff-text);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Cards === */
.vaff-card {
  background: linear-gradient(135deg, rgba(26,16,53,0.9), rgba(15,15,35,0.95));
  border: 1px solid rgba(173,20,87,0.15);
  border-radius: var(--vaff-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.vaff-card h3 {
  font-size: 1.5rem;
  color: var(--vaff-accent);
  margin-bottom: 0.8rem;
}
.vaff-card p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--vaff-text);
  margin-bottom: 0.8rem;
}

/* === CTA / Promo Link === */
.vaff-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vaff-primary), #d81b60);
  color: var(--vaff-white);
  padding: 1rem 2.4rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.vaff-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(173,20,87,0.5);
}
.vaff-promo-link {
  color: var(--vaff-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.vaff-promo-link:hover {
  color: var(--vaff-pink);
}

/* === Footer === */
.vaff-footer {
  background: linear-gradient(180deg, #1a1035, #0a0a1a);
  padding: 2.5rem 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(173,20,87,0.2);
}
.vaff-footer-desc {
  font-size: 1.2rem;
  color: rgba(186,225,255,0.7);
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}
.vaff-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.vaff-footer-links a {
  display: inline-block;
  background: rgba(173,20,87,0.15);
  color: var(--vaff-pink);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.vaff-footer-links a:hover {
  background: rgba(173,20,87,0.35);
}
.vaff-footer-copy {
  font-size: 1rem;
  color: rgba(186,225,255,0.4);
  margin-top: 1rem;
}
.vaff-partners {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.vaff-partners img {
  height: 2.4rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.vaff-partners img:hover {
  opacity: 1;
}

/* === Bottom Navigation === */
.vaff-bnav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--vaff-bnav-h);
  background: linear-gradient(180deg, #1a1035, #0a0a18);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(173,20,87,0.25);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
@media (min-width: 769px) {
  .vaff-bnav { display: none; }
}
.vaff-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  background: none;
  border: none;
  color: rgba(186,225,255,0.6);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  gap: 0.2rem;
}
.vaff-bnav-btn:active {
  transform: scale(0.92);
}
.vaff-bnav-btn i,
.vaff-bnav-btn .material-icons,
.vaff-bnav-btn ion-icon,
.vaff-bnav-btn bi {
  font-size: 2.2rem;
}
.vaff-bnav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.vaff-bnav-active {
  color: var(--vaff-accent) !important;
}
.vaff-bnav-active i,
.vaff-bnav-active .material-icons,
.vaff-bnav-active ion-icon {
  color: var(--vaff-accent);
}

/* === Winner / Testimonials === */
.vaff-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.vaff-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(173,20,87,0.08);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
}
.vaff-winner-avatar {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vaff-primary), var(--vaff-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--vaff-white);
  font-weight: 700;
}
.vaff-winner-info {
  flex: 1;
}
.vaff-winner-name {
  font-size: 1.2rem;
  color: var(--vaff-pink);
  font-weight: 600;
}
.vaff-winner-amount {
  font-size: 1.1rem;
  color: var(--vaff-accent);
  font-weight: 700;
}

/* === Payment Methods === */
.vaff-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.vaff-payment-item {
  background: rgba(186,225,255,0.06);
  border: 1px solid rgba(173,20,87,0.15);
  border-radius: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  color: var(--vaff-text);
  text-align: center;
}

/* === FAQ Accordion === */
.vaff-faq-item {
  border: 1px solid rgba(173,20,87,0.15);
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.vaff-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--vaff-pink);
  background: rgba(173,20,87,0.08);
  font-size: 1.3rem;
}
.vaff-faq-a {
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  line-height: 1.5rem;
  color: var(--vaff-text);
}

/* === Responsive Helpers === */
@media (max-width: 430px) {
  .vaff-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
}
@media (min-width: 431px) and (max-width: 768px) {
  .vaff-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === Utility === */
.vaff-text-center { text-align: center; }
.vaff-mt-1 { margin-top: 1rem; }
.vaff-mb-1 { margin-bottom: 1rem; }
.vaff-mb-2 { margin-bottom: 2rem; }
.vaff-hidden { display: none; }
