/**
 * Lucky Play Casino - Theme Styles
 * All classes use g856 prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --g856-primary: #228B22;
  --g856-secondary: #DCDCDC;
  --g856-bg-dark: #2C2C2C;
  --g856-bg-medium: #3C3C3C;
  --g856-text-light: #F5F5F5;
  --g856-text-gray: #DCDCDC;
  --g856-border: #444;
  --g856-shadow: rgba(0, 0, 0, 0.3);
  --g856-gradient: linear-gradient(135deg, #228B22 0%, #1a6b1a 100%);
}

/* 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(--g856-text-light);
  background-color: var(--g856-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--g856-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2eb82e;
}

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

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

/* Header */
.g856-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--g856-bg-medium);
  border-bottom: 1px solid var(--g856-border);
  transition: all 0.3s ease;
}

.g856-header-scrolled {
  box-shadow: 0 2px 10px var(--g856-shadow);
}

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

.g856-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g856-text-light);
}

.g856-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.g856-header-actions {
  display: flex;
  gap: 1rem;
}

.g856-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g856-text-light);
  background-color: var(--g856-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

.g856-btn:hover {
  background-color: #2eb82e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--g856-shadow);
}

.g856-btn-secondary {
  background-color: transparent;
  border: 2px solid var(--g856-primary);
}

.g856-btn-secondary:hover {
  background-color: var(--g856-primary);
}

/* Mobile Menu Toggle */
.g856-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 10001;
}

.g856-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--g856-text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g856-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--g856-bg-medium);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
  box-shadow: 2px 0 10px var(--g856-shadow);
}

.g856-menu-open {
  left: 0;
}

.g856-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g856-menu-open + .g856-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.g856-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g856-menu-item {
  border-bottom: 1px solid var(--g856-border);
}

.g856-menu-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--g856-text-light);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.g856-menu-link:hover {
  background-color: var(--g856-primary);
  padding-left: 2.5rem;
}

/* Main Content */
.g856-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.g856-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.g856-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g856-slide-active {
  opacity: 1;
}

.g856-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g856-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.g856-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g856-indicator-active {
  background-color: var(--g856-primary);
  transform: scale(1.2);
}

/* Section */
.g856-section {
  margin-bottom: 2.5rem;
}

.g856-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g856-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g856-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background-color: var(--g856-primary);
  border-radius: 2px;
}

/* Game Grid */
.g856-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g856-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--g856-bg-medium);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g856-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--g856-shadow);
}

.g856-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g856-game-name {
  padding: 0.6rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--g856-text-light);
  background-color: var(--g856-bg-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card */
.g856-card {
  background-color: var(--g856-bg-medium);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--g856-shadow);
}

.g856-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--g856-primary);
}

.g856-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--g856-text-gray);
}

/* List */
.g856-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g856-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--g856-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.g856-list-item:last-child {
  border-bottom: none;
}

.g856-list-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--g856-primary);
  margin-top: 2px;
}

.g856-list-content {
  flex: 1;
}

/* FAQ */
.g856-faq-item {
  background-color: var(--g856-bg-medium);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.g856-faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--g856-text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.g856-faq-question:hover {
  background-color: rgba(34, 139, 34, 0.1);
}

.g856-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--g856-text-gray);
  line-height: 1.6;
}

/* Promo Link */
.g856-promo-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g856-text-light);
  background: var(--g856-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px var(--g856-shadow);
}

.g856-promo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--g856-shadow);
}

/* Footer */
.g856-footer {
  background-color: var(--g856-bg-medium);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--g856-border);
}

.g856-footer-section {
  margin-bottom: 2rem;
}

.g856-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--g856-primary);
}

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

.g856-footer-link {
  font-size: 1.4rem;
  color: var(--g856-text-gray);
  transition: color 0.3s ease;
}

.g856-footer-link:hover {
  color: var(--g856-primary);
}

.g856-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g856-partner-logo {
  width: 100%;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g856-partner-logo:hover {
  opacity: 1;
}

.g856-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g856-text-gray);
  padding-top: 2rem;
  border-top: 1px solid var(--g856-border);
}

/* Bottom Navigation (Mobile) */
.g856-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  background-color: var(--g856-bg-medium);
  border-top: 2px solid var(--g856-primary);
  box-shadow: 0 -2px 10px var(--g856-shadow);
}

.g856-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  color: var(--g856-text-gray);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}

.g856-bottom-nav-item:hover {
  color: var(--g856-primary);
  transform: scale(1.1);
}

.g856-bottom-nav-item.g856-nav-active {
  color: var(--g856-primary);
}

.g856-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.g856-bottom-nav-text {
  font-size: 10px;
  font-weight: 600;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .g856-bottom-nav {
    display: none;
  }

  .g856-main {
    padding-bottom: 2rem;
  }

  .g856-menu-toggle {
    display: none;
  }

  .g856-desktop-nav {
    display: flex;
    gap: 2rem;
  }

  .g856-desktop-nav-link {
    color: var(--g856-text-light);
    font-size: 1.4rem;
    transition: color 0.3s ease;
  }

  .g856-desktop-nav-link:hover {
    color: var(--g856-primary);
  }
}

@media (max-width: 768px) {
  .g856-desktop-nav {
    display: none;
  }

  .g856-main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.g856-text-center {
  text-align: center;
}

.g856-mt-1 { margin-top: 1rem; }
.g856-mt-2 { margin-top: 2rem; }
.g856-mt-3 { margin-top: 3rem; }

.g856-mb-1 { margin-bottom: 1rem; }
.g856-mb-2 { margin-bottom: 2rem; }
.g856-mb-3 { margin-bottom: 3rem; }

.g856-p-1 { padding: 1rem; }
.g856-p-2 { padding: 2rem; }
.g856-p-3 { padding: 3rem; }

/* Animation */
@keyframes g856-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g856-fade-in {
  animation: g856-fadeIn 0.6s ease;
}
