/**
 * lucky88 Website - Main Stylesheet
 * All classes use v12f prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --v12f-primary: #FFEB3B;
  --v12f-secondary: #FF69B4;
  --v12f-accent: #FFCCCB;
  --v12f-highlight: #FFB3FF;
  --v12f-dark: #1C2833;
  --v12f-darker: #0a0f14;
  --v12f-light: #ffffff;
  --v12f-gray: #666666;
  --v12f-border: #2a3a4a;
  --v12f-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v12f-light);
  background-color: var(--v12f-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

body.v12f-loaded * {
  transition: opacity 0.3s ease;
}

/* Container */
.v12f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.v12f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v12f-darker) 0%, var(--v12f-dark) 100%);
  box-shadow: 0 2px 10px var(--v12f-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.v12f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v12f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v12f-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.v12f-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.v12f-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.v12f-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.v12f-btn-primary {
  background: linear-gradient(135deg, var(--v12f-secondary) 0%, #ff1493 100%);
  color: var(--v12f-light);
}

.v12f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.v12f-btn-secondary {
  background: linear-gradient(135deg, var(--v12f-primary) 0%, #ffc107 100%);
  color: var(--v12f-dark);
}

.v12f-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
}

.v12f-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v12f-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Desktop Navigation */
.v12f-nav-desktop {
  display: none;
}

@media (min-width: 769px) {
  .v12f-nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .v12f-nav-desktop a {
    color: var(--v12f-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .v12f-nav-desktop a:hover {
    color: var(--v12f-primary);
  }

  .v12f-menu-toggle {
    display: none !important;
  }
}

/* Mobile Menu */
.v12f-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--v12f-darker) 0%, var(--v12f-dark) 100%);
  box-shadow: -5px 0 20px var(--v12f-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.v12f-mobile-menu.v12f-menu-open {
  right: 0;
}

.v12f-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v12f-mobile-menu a {
  color: var(--v12f-light);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

.v12f-mobile-menu a:hover {
  background: var(--v12f-border);
  padding-left: 1.5rem;
}

.v12f-mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--v12f-light);
  font-size: 2.4rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .v12f-mobile-menu {
    display: none;
  }
}

/* Main Content */
.v12f-main {
  margin-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .v12f-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.v12f-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--v12f-shadow);
}

.v12f-carousel-slides {
  position: relative;
  height: 200px;
}

.v12f-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v12f-carousel-slide.v12f-active {
  opacity: 1;
  z-index: 1;
}

.v12f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v12f-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.v12f-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v12f-carousel-indicator.v12f-active,
.v12f-carousel-indicator:hover {
  background: var(--v12f-primary);
  transform: scale(1.2);
}

/* Section */
.v12f-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 12px;
  border: 1px solid var(--v12f-border);
}

.v12f-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--v12f-primary);
  text-align: center;
}

.v12f-section-title-secondary {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v12f-secondary);
}

/* Game Grid */
.v12f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v12f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v12f-game-item:hover {
  transform: scale(1.05);
}

.v12f-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--v12f-shadow);
}

.v12f-game-name {
  font-size: 1.1rem;
  color: var(--v12f-light);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.v12f-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--v12f-border);
  transition: transform 0.3s ease;
}

.v12f-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--v12f-shadow);
}

.v12f-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v12f-primary);
}

.v12f-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Link */
.v12f-link {
  color: var(--v12f-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.v12f-link:hover {
  color: var(--v12f-primary);
  text-decoration: underline;
}

/* List */
.v12f-list {
  list-style: none;
  padding: 0;
}

.v12f-list-item {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--v12f-secondary);
  font-size: 1.5rem;
  line-height: 1.6;
}

/* FAQ */
.v12f-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--v12f-border);
  border-radius: 8px;
  overflow: hidden;
}

.v12f-faq-question {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  font-weight: 600;
  color: var(--v12f-primary);
  cursor: pointer;
  user-select: none;
}

.v12f-faq-answer {
  padding: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.v12f-footer {
  background: linear-gradient(135deg, var(--v12f-darker) 0%, var(--v12f-dark) 100%);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--v12f-border);
}

.v12f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v12f-footer-link {
  color: var(--v12f-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v12f-footer-link:hover {
  background: var(--v12f-border);
  color: var(--v12f-primary);
}

.v12f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v12f-partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v12f-partner-logo:hover {
  opacity: 1;
}

.v12f-copyright {
  text-align: center;
  color: var(--v12f-gray);
  font-size: 1.3rem;
  padding: 1rem;
}

/* Bottom Navigation */
.v12f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v12f-darker) 0%, var(--v12f-dark) 100%);
  border-top: 2px solid var(--v12f-border);
  box-shadow: 0 -2px 10px var(--v12f-shadow);
  z-index: 1000;
  padding: 0.5rem 0;
}

.v12f-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v12f-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  color: var(--v12f-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.v12f-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.v12f-nav-item.v12f-nav-active {
  color: var(--v12f-primary);
}

.v12f-nav-icon {
  font-size: 24px;
  display: block;
}

.v12f-nav-text {
  font-size: 11px;
  font-weight: 500;
  display: block;
}

@media (min-width: 769px) {
  .v12f-bottom-nav {
    display: none;
  }
}

/* Utility */
.v12f-text-center {
  text-align: center;
}

.v12f-mb-1 { margin-bottom: 1rem; }
.v12f-mb-2 { margin-bottom: 2rem; }
.v12f-mb-3 { margin-bottom: 3rem; }

.v12f-mt-1 { margin-top: 1rem; }
.v12f-mt-2 { margin-top: 2rem; }
.v12f-mt-3 { margin-top: 3rem; }

.v12f-p-1 { padding: 1rem; }
.v12f-p-2 { padding: 2rem; }

.v12f-highlight {
  color: var(--v12f-primary);
  font-weight: 600;
}

.v12f-secondary-text {
  color: var(--v12f-secondary);
  font-weight: 600;
}

/* Promotional Banner */
.v12f-promo-banner {
  background: linear-gradient(135deg, var(--v12f-secondary) 0%, #ff1493 100%);
  color: var(--v12f-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
}

.v12f-promo-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.v12f-promo-banner p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
