/**
 * bet777 Main Stylesheet
 * All classes use g3c1- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --g3c1-primary: #FF5722;
  --g3c1-secondary: #AD1457;
  --g3c3-accent: #BAE1FF;
  --g3c1-dark: #2D2D2D;
  --g3c1-darker: #1a1a1a;
  --g3c1-light: #BAE1FF;
  --g3c1-text: #f5f5f5;
  --g3c1-text-muted: #b0b0b0;
  --g3c1-bg: #2D2D2D;
  --g3c1-card-bg: #3d3d3d;
  --g3c1-border: #4d4d4d;
  --g3c1-success: #4CAF50;
  --g3c1-warning: #FF9800;
  --g3c1-danger: #f44336;
  --g3c1-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --g3c1-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --g3c1-transition: all 0.3s ease;
  --g3c1-header-height: 60px;
  --g3c1-bottom-nav-height: 60px;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g3c1-text);
  background-color: var(--g3c1-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g3c1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g3c1-wrapper {
  padding-top: var(--g3c1-header-height);
  padding-bottom: var(--g3c1-bottom-nav-height);
}

@media (min-width: 769px) {
  .g3c1-wrapper {
    padding-bottom: 2rem;
  }
}

/* Header Styles */
.g3c1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g3c1-header-height);
  background: linear-gradient(135deg, var(--g3c1-dark) 0%, var(--g3c1-darker) 100%);
  box-shadow: var(--g3c1-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.g3c1-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g3c1-text);
  font-size: 1.4rem;
  font-weight: 700;
}

.g3c1-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.g3c1-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g3c1-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g3c1-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.g3c1-btn-primary {
  background: linear-gradient(135deg, var(--g3c1-primary) 0%, var(--g3c1-secondary) 100%);
  color: white;
}

.g3c1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--g3c1-shadow-lg);
}

.g3c1-btn-secondary {
  background: transparent;
  color: var(--g3c1-primary);
  border: 2px solid var(--g3c1-primary);
}

.g3c1-btn-secondary:hover {
  background: var(--g3c1-primary);
  color: white;
}

.g3c1-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.g3c1-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--g3c1-text);
  transition: var(--g3c1-transition);
}

.g3c1-hamburger.g3c1-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.g3c1-hamburger.g3c1-active span:nth-child(2) {
  opacity: 0;
}

.g3c1-hamburger.g3c1-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.g3c1-mobile-menu {
  position: fixed;
  top: var(--g3c1-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g3c1-dark);
  z-index: 9999;
  padding: 2rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.g3c1-mobile-menu.g3c1-menu-open {
  transform: translateX(0);
}

.g3c1-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.g3c1-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--g3c1-text);
  border-radius: 8px;
  transition: var(--g3c1-transition);
  font-size: 1.4rem;
}

.g3c1-menu-link:hover {
  background: var(--g3c1-card-bg);
  padding-left: 1.5rem;
}

.g3c1-menu-link i {
  font-size: 1.8rem;
  color: var(--g3c1-primary);
}

/* Bottom Navigation */
.g3c1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g3c1-bottom-nav-height);
  background: linear-gradient(180deg, var(--g3c1-dark) 0%, var(--g3c1-darker) 100%);
  border-top: 2px solid var(--g3c1-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .g3c1-bottom-nav {
    display: none;
  }
}

.g3c1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--g3c1-text-muted);
  transition: var(--g3c1-transition);
  cursor: pointer;
  background: none;
  border: none;
}

.g3c1-nav-item:hover,
.g3c1-nav-item.g3c1-active {
  color: var(--g3c1-primary);
  transform: scale(1.1);
}

.g3c1-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.g3c1-nav-item span {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Carousel */
.g3c1-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.g3c1-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.g3c1-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.g3c1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g3c1-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g3c1-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g3c1-transition);
}

.g3c1-carousel-dot.g3c1-active {
  background: var(--g3c1-primary);
  width: 24px;
  border-radius: 4px;
}

/* Content Sections */
.g3c1-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--g3c1-card-bg);
  border-radius: 12px;
  box-shadow: var(--g3c1-shadow);
}

.g3c1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3c1-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g3c1-section-title i {
  font-size: 2rem;
}

.g3c1-text {
  color: var(--g3c1-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.g3c1-text a {
  color: var(--g3c1-primary);
  text-decoration: none;
  font-weight: 600;
}

.g3c1-text a:hover {
  text-decoration: underline;
}

/* Game Grid */
.g3c1-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.g3c1-game-item {
  background: var(--g3c1-card-bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--g3c1-transition);
  text-decoration: none;
  color: var(--g3c1-text);
  display: block;
}

.g3c1-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--g3c1-shadow-lg);
}

.g3c1-game-item.g3c1-touching {
  transform: scale(0.95);
}

.g3c1-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--g3c1-dark);
}

.g3c1-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.g3c1-card {
  background: var(--g3c1-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--g3c1-shadow);
}

.g3c1-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g3c1-primary);
  margin-bottom: 1rem;
}

/* Lists */
.g3c1-list {
  list-style: none;
  padding-left: 0;
}

.g3c1-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g3c1-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.g3c1-list-item:last-child {
  border-bottom: none;
}

.g3c1-list-item i {
  color: var(--g3c1-primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* FAQ Styles */
.g3c1-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--g3c1-border);
  border-radius: 8px;
  overflow: hidden;
}

.g3c1-faq-question {
  width: 100%;
  padding: 1rem;
  background: var(--g3c1-card-bg);
  color: var(--g3c1-text);
  border: none;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g3c1-faq-question:hover {
  background: var(--g3c1-dark);
}

.g3c1-faq-answer {
  padding: 1rem;
  background: var(--g3c1-dark);
  border-top: 1px solid var(--g3c1-border);
}

/* Partner Logos */
.g3c1-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.g3c1-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--g3c1-transition);
}

.g3c1-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.g3c1-footer {
  background: var(--g3c1-darker);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.g3c1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.g3c1-footer-link {
  color: var(--g3c1-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--g3c1-transition);
}

.g3c1-footer-link:hover {
  color: var(--g3c1-primary);
}

.g3c1-copyright {
  text-align: center;
  color: var(--g3c1-text-muted);
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* H1 Styles */
h1.g3c1-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g3c1-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

h2.g3c1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3c1-primary);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3.g3c1-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g3c1-text);
  margin: 1.5rem 0 1rem;
}

/* Utility Classes */
.g3c1-text-center {
  text-align: center;
}

.g3c1-mt-1 { margin-top: 1rem; }
.g3c1-mt-2 { margin-top: 2rem; }
.g3c1-mb-1 { margin-bottom: 1rem; }
.g3c1-mb-2 { margin-bottom: 2rem; }

.g3c1-highlight {
  color: var(--g3c1-primary);
  font-weight: 700;
}

.g3c1-link {
  color: var(--g3c1-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--g3c1-transition);
}

.g3c1-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .g3c1-header-buttons .g3c1-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  .g3c1-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  h1.g3c1-main-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 769px) {
  .g3c1-container {
    max-width: 1200px;
  }

  .g3c1-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .g3c1-carousel {
    height: 300px;
  }

  .g3c1-hamburger {
    display: none;
  }
}

/* Animations */
@keyframes g3c1-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g3c1-fade-in {
  animation: g3c1-fadeIn 0.5s ease forwards;
}

/* Print Styles */
@media print {
  .g3c1-header,
  .g3c1-bottom-nav,
  .g3c1-mobile-menu {
    display: none;
  }

  .g3c1-wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }
}
