/**
 * Star Casino - Theme CSS
 * All classes use 'g1c8-' prefix for namespace isolation
 * Mobile-first responsive design with max-width: 430px
 */

/* CSS Variables - Color Palette */
:root {
  --g1c8-primary: #32CD32;
  --g1c8-secondary: #34495E;
  --g1c8-accent: #00CED1;
  --g1c8-warm: #FF8A80;
  --g1c8-pink: #AD1457;
  --g1c8-light: #DEE2E6;
  --g1c8-dark: #1a1a2e;
  --g1c8-darker: #0f0f1a;
  --g1c8-white: #ffffff;
  --g1c8-text: #f5f5f5;
  --g1c8-text-muted: #b0b0b0;
  --g1c8-success: #32CD32;
  --g1c8-warning: #FFA726;
  --g1c8-danger: #EF5350;
  --g1c8-border: #rgba(255, 255, 255, 0.1);
  --g1c8-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --g1c8-glow: 0 0 20px rgba(50, 205, 50, 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.4rem;
  line-height: 1.6;
  color: var(--g1c8-text);
  background: linear-gradient(135deg, var(--g1c8-darker) 0%, var(--g1c8-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* Container */
.g1c8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 15px;
}

.g1c8-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* Header Navigation */
.g1c8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g1c8-darker) 0%, var(--g1c8-dark) 95%);
  border-bottom: 1px solid var(--g1c8-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.g1c8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 15px;
  max-width: 430px;
  margin: 0 auto;
}

.g1c8-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--g1c8-white);
}

.g1c8-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.g1c8-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g1c8-primary);
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.g1c8-header-actions {
  display: flex;
  gap: 10px;
}

.g1c8-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 70px;
  touch-action: manipulation;
}

.g1c8-btn:active {
  transform: scale(0.95);
}

.g1c8-btn-register {
  background: linear-gradient(135deg, var(--g1c8-primary) 0%, #28a745 100%);
  color: var(--g1c8-white);
  box-shadow: 0 2px 10px rgba(50, 205, 50, 0.4);
}

.g1c8-btn-register:hover {
  box-shadow: 0 4px 20px rgba(50, 205, 50, 0.6);
  transform: translateY(-1px);
}

.g1c8-btn-login {
  background: linear-gradient(135deg, var(--g1c8-accent) 0%, #00acc1 100%);
  color: var(--g1c8-white);
  box-shadow: 0 2px 10px rgba(0, 206, 209, 0.4);
}

.g1c8-btn-login:hover {
  box-shadow: 0 4px 20px rgba(0, 206, 209, 0.6);
  transform: translateY(-1px);
}

.g1c8-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--g1c8-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g1c8-menu-toggle:hover {
  background: var(--g1c8-border);
}

.g1c8-menu-toggle i {
  font-size: 2rem;
  color: var(--g1c8-primary);
}

/* Mobile Menu */
.g1c8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g1c8-menu-overlay.g1c8-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g1c8-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g1c8-darker) 0%, var(--g1c8-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--g1c8-border);
}

.g1c8-mobile-menu.g1c8-menu-active {
  right: 0;
}

.g1c8-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--g1c8-border);
}

.g1c8-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g1c8-primary);
}

.g1c8-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--g1c8-text-muted);
  transition: color 0.3s ease;
}

.g1c8-menu-close:hover {
  color: var(--g1c8-danger);
}

.g1c8-menu-close i {
  font-size: 2rem;
}

.g1c8-menu-list {
  list-style: none;
  padding: 10px 0;
}

.g1c8-menu-item {
  border-bottom: 1px solid var(--g1c8-border);
}

.g1c8-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: var(--g1c8-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.g1c8-menu-link:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--g1c8-primary);
  padding-left: 25px;
}

.g1c8-menu-link i {
  width: 24px;
  text-align: center;
  color: var(--g1c8-primary);
  font-size: 1.6rem;
}

/* Main Content */
.g1c8-main {
  padding-top: 66px;
  min-height: calc(100vh - 126px);
}

/* Hero Section */
.g1c8-hero {
  padding: 20px 0;
  text-align: center;
}

.g1c8-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g1c8-primary);
  margin-bottom: 15px;
  text-shadow: var(--g1c8-glow);
  line-height: 1.3;
}

/* Carousel */
.g1c8-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: var(--g1c8-shadow);
}

.g1c8-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g1c8-carousel-slide.g1c8-slide-active {
  opacity: 1;
}

.g1c8-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.g1c8-carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g1c8-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g1c8-carousel-dot.g1c8-dot-active {
  background: var(--g1c8-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.g1c8-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--g1c8-border);
}

.g1c8-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--g1c8-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.g1c8-section-title i {
  color: var(--g1c8-primary);
}

.g1c8-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--g1c8-primary) 0%, transparent 100%);
}

/* Game Grid */
.g1c8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.g1c8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.g1c8-game-item:hover {
  transform: scale(1.05);
}

.g1c8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--g1c8-darker);
  border: 1px solid var(--g1c8-border);
  transition: all 0.3s ease;
}

.g1c8-game-item:hover .g1c8-game-icon {
  border-color: var(--g1c8-primary);
  box-shadow: var(--g1c8-glow);
}

.g1c8-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g1c8-game-name {
  font-size: 1rem;
  color: var(--g1c8-text);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Styles */
.g1c8-card {
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.3) 0%, rgba(26, 26, 46, 0.5) 100%);
  border: 1px solid var(--g1c8-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--g1c8-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g1c8-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.g1c8-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g1c8-primary);
  margin-bottom: 15px;
}

.g1c8-card-content {
  font-size: 1.4rem;
  color: var(--g1c8-text);
  line-height: 1.6;
}

/* Promotional Link */
.g1c8-promo-link {
  display: inline-block;
  color: var(--g1c8-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.g1c8-promo-link:hover {
  color: var(--g1c8-primary);
  border-bottom-color: var(--g1c8-primary);
}

/* CTA Button */
.g1c8-cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--g1c8-primary) 0%, #28a745 100%);
  color: var(--g1c8-white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
}

.g1c8-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(50, 205, 50, 0.6);
}

.g1c8-cta-btn:active {
  transform: scale(0.98);
}

/* Bottom Navigation */
.g1c8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g1c8-dark) 0%, var(--g1c8-darker) 100%);
  border-top: 2px solid var(--g1c8-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g1c8-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.g1c8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g1c8-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 5px;
}

.g1c8-nav-item:hover {
  color: var(--g1c8-primary);
  transform: scale(1.05);
}

.g1c8-nav-item.g1c8-nav-active {
  color: var(--g1c8-primary);
}

.g1c8-nav-item.g1c8-nav-active .g1c8-nav-icon {
  color: var(--g1c8-primary);
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.g1c8-nav-icon {
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.g1c8-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Different icon styles for visual variety */
.g1c8-nav-item .fa-solid {
  font-weight: 900;
}

.g1c8-nav-item .material-icons {
  font-size: 2.4rem;
}

.g1c8-nav-item .ionicon {
  font-size: 2.2rem;
}

/* Footer */
.g1c8-footer {
  background: linear-gradient(180deg, var(--g1c8-dark) 0%, var(--g1c8-darker) 100%);
  border-top: 1px solid var(--g1c8-border);
  padding: 30px 15px 80px;
}

.g1c8-footer-section {
  margin-bottom: 25px;
}

.g1c8-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g1c8-primary);
  margin-bottom: 15px;
}

.g1c8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.g1c8-footer-link {
  color: var(--g1c8-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.g1c8-footer-link:hover {
  color: var(--g1c8-primary);
}

.g1c8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.g1c8-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g1c8-partner-logo:hover {
  opacity: 1;
}

.g1c8-copyright {
  text-align: center;
  color: var(--g1c8-text-muted);
  font-size: 1.2rem;
  padding-top: 15px;
  border-top: 1px solid var(--g1c8-border);
}

/* Utility Classes */
.g1c8-text-center {
  text-align: center;
}

.g1c8-mb-10 {
  margin-bottom: 10px;
}

.g1c8-mb-15 {
  margin-bottom: 15px;
}

.g1c8-mb-20 {
  margin-bottom: 20px;
}

.g1c8-mt-20 {
  margin-top: 20px;
}

/* Touch feedback */
.g1c8-touch-active {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Responsive */
@media (min-width: 769px) {
  .g1c8-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .g1c8-footer {
    padding-bottom: 30px;
  }
}

/* Animation */
@keyframes g1c8-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6);
  }
}

.g1c8-pulse {
  animation: g1c8-pulse 2s ease-in-out infinite;
}
