/* 365bet live - CSS Theme Styles */
/* All classes use g9ae prefix for namespace isolation */

/* CSS Variables */
:root {
  --g9ae-primary: #FF6347;
  --g9ae-secondary: #1A1A2E;
  --g9ae-bg: #1A1A2E;
  --g9ae-bg-light: #252540;
  --g9ae-text: #FFFFFF;
  --g9ae-text-muted: #B0B0B0;
  --g9ae-border: #3A3A5C;
  --g9ae-accent: #FF6347;
  --g9ae-overlay: rgba(26, 26, 46, 0.95);
}

/* 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(--g9ae-text);
  background-color: var(--g9ae-bg);
  min-height: 100vh;
}

/* Container */
.g9ae-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--g9ae-bg);
}

/* Header Styles */
.g9ae-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g9ae-secondary);
  border-bottom: 1px solid var(--g9ae-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.g9ae-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.g9ae-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g9ae-text);
}

.g9ae-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.g9ae-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g9ae-primary);
}

.g9ae-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g9ae-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g9ae-btn-register {
  background-color: var(--g9ae-primary);
  color: var(--g9ae-text);
}

.g9ae-btn-login {
  background-color: transparent;
  color: var(--g9ae-primary);
  border: 1px solid var(--g9ae-primary);
}

.g9ae-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--g9ae-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.g9ae-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--g9ae-overlay);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 4rem 1.5rem 2rem;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.g9ae-menu-active {
  right: 0;
}

.g9ae-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;
}

.g9ae-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g9ae-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g9ae-border);
}

.g9ae-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g9ae-primary);
}

.g9ae-menu-close {
  background: none;
  border: none;
  color: var(--g9ae-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.g9ae-menu-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--g9ae-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g9ae-border);
  transition: color 0.3s ease;
}

.g9ae-menu-nav a:hover {
  color: var(--g9ae-primary);
}

/* Main Content */
.g9ae-main {
  margin-top: 60px;
  padding-bottom: 80px;
}

.g9ae-section {
  padding: 2rem 0;
}

.g9ae-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g9ae-primary);
  text-align: center;
}

/* Carousel */
.g9ae-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 1rem 0;
}

.g9ae-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.g9ae-carousel-slide {
  min-width: 100%;
}

.g9ae-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Game Grid */
.g9ae-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.g9ae-game-item {
  background-color: var(--g9ae-bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--g9ae-text);
}

.g9ae-game-item:hover {
  transform: scale(1.05);
}

.g9ae-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g9ae-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styles */
.g9ae-card {
  background-color: var(--g9ae-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--g9ae-border);
}

.g9ae-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g9ae-primary);
}

.g9ae-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g9ae-text-muted);
}

.g9ae-card-content p {
  margin-bottom: 1rem;
}

/* Link Styles */
.g9ae-link {
  color: var(--g9ae-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.g9ae-link:hover {
  text-decoration: underline;
  color: var(--g9ae-accent);
}

/* Bottom Navigation */
.g9ae-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--g9ae-secondary);
  border-top: 1px solid var(--g9ae-border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g9ae-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--g9ae-text-muted);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.3rem;
}

.g9ae-nav-item:hover,
.g9ae-nav-item.g9ae-active {
  color: var(--g9ae-primary);
  transform: scale(1.1);
}

.g9ae-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.g9ae-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.g9ae-footer {
  background-color: var(--g9ae-bg-light);
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--g9ae-border);
}

.g9ae-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g9ae-footer-link {
  color: var(--g9ae-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.g9ae-footer-link:hover {
  color: var(--g9ae-primary);
}

.g9ae-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.g9ae-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g9ae-partner-logo:hover {
  opacity: 1;
}

.g9ae-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g9ae-text-muted);
  margin-top: 1.5rem;
}

/* Media Queries */
@media (min-width: 769px) {
  .g9ae-bottom-nav {
    display: none;
  }

  .g9ae-main {
    padding-bottom: 2rem;
  }

  .g9ae-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .g9ae-menu-toggle {
    display: block;
  }

  .g9ae-main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.g9ae-text-center {
  text-align: center;
}

.g9ae-mt-1 {
  margin-top: 1rem;
}

.g9ae-mt-2 {
  margin-top: 2rem;
}

.g9ae-mb-1 {
  margin-bottom: 1rem;
}

.g9ae-mb-2 {
  margin-bottom: 2rem;
}
