/**
 * abc8 - CSS Stylesheet
 * All classes use g3d8 prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --g3d8-primary: #708090;
  --g3d8-secondary: #CC99FF;
  --g3d8-accent: #DDA0DD;
  --g3d8-light: #CED4DA;
  --g3d8-dark: #0F0F23;
  --g3d8-purple: #8A2BE2;
  --g3d8-text: #CED4DA;
  --g3d8-bg: #0F0F23;
}

/* 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(--g3d8-text);
  background-color: var(--g3d8-bg);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
}

/* Container */
.g3d8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.g3d8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--g3d8-dark) 0%, var(--g3d8-primary) 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.g3d8-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g3d8-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g3d8-secondary);
}

.g3d8-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
}

.g3d8-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--g3d8-secondary);
}

.g3d8-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g3d8-btn-header {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.g3d8-btn-register {
  background: linear-gradient(135deg, var(--g3d8-secondary) 0%, var(--g3d8-purple) 100%);
  color: var(--g3d8-dark);
}

.g3d8-btn-login {
  background: transparent;
  color: var(--g3d8-secondary);
  border: 2px solid var(--g3d8-secondary);
}

.g3d8-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--g3d8-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.g3d8-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g3d8-dark) 0%, var(--g3d8-primary) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.g3d8-mobile-menu.g3d8-menu-open {
  right: 0;
}

.g3d8-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--g3d8-secondary);
  font-size: 2.5rem;
  cursor: pointer;
}

.g3d8-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.g3d8-menu-nav a {
  color: var(--g3d8-text);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.g3d8-menu-nav a:hover {
  background: rgba(204, 153, 255, 0.1);
  color: var(--g3d8-secondary);
}

.g3d8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g3d8-menu-overlay.g3d8-overlay-open {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.g3d8-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.g3d8-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 10px;
}

.g3d8-carousel-slide {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Section Styles */
.g3d8-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(112, 128, 144, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(204, 153, 255, 0.2);
}

.g3d8-section-title {
  font-size: 1.8rem;
  color: var(--g3d8-secondary);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

.g3d8-h1-title {
  font-size: 2rem;
  color: var(--g3d8-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* Game Grid */
.g3d8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.g3d8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.g3d8-game-item:hover {
  transform: scale(1.05);
}

.g3d8-game-icon {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  border: 2px solid var(--g3d8-light);
}

.g3d8-game-name {
  font-size: 1rem;
  color: var(--g3d8-text);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Link Styles */
.g3d8-link {
  color: var(--g3d8-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.g3d8-link:hover {
  color: var(--g3d8-purple);
  text-decoration: underline;
}

.g3d8-btn-promo {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--g3d8-secondary) 0%, var(--g3d8-purple) 100%);
  color: var(--g3d8-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.g3d8-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

/* Footer */
.g3d8-footer {
  background: linear-gradient(180deg, var(--g3d8-primary) 0%, var(--g3d8-dark) 100%);
  padding: 2rem 1rem 6rem;
  text-align: center;
}

.g3d8-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.g3d8-footer-link {
  color: var(--g3d8-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.g3d8-footer-link:hover {
  background: rgba(204, 153, 255, 0.1);
  color: var(--g3d8-purple);
}

.g3d8-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.g3d8-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.g3d8-copyright {
  color: var(--g3d8-light);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.g3d8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(90deg, var(--g3d8-dark) 0%, var(--g3d8-primary) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  border-top: 2px solid var(--g3d8-purple);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g3d8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g3d8-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g3d8-nav-item:hover {
  color: var(--g3d8-secondary);
  transform: scale(1.1);
}

.g3d8-nav-item.active {
  color: var(--g3d8-secondary);
}

.g3d8-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.g3d8-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .g3d8-bottom-nav {
    display: none;
  }

  .g3d8-main {
    padding-bottom: 2rem;
  }
}

/* RTP Table Styles */
.g3d8-rtp-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.g3d8-rtp-row {
  background: rgba(112, 128, 144, 0.05);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(204, 153, 255, 0.1);
}

.g3d8-rtp-game {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g3d8-text);
  transition: all 0.3s ease;
}

.g3d8-rtp-game:hover {
  transform: translateX(5px);
  background: rgba(204, 153, 255, 0.05);
  border-radius: 5px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.g3d8-rtp-icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--g3d8-light);
  margin-right: 1rem;
}

.g3d8-rtp-info {
  flex: 1;
}

.g3d8-rtp-info strong {
  display: block;
  color: var(--g3d8-secondary);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.g3d8-rtp-info p {
  font-size: 1.1rem;
  margin: 0.2rem 0;
  color: var(--g3d8-light);
}

/* Responsive */
@media (max-width: 768px) {
  .g3d8-main {
    padding-bottom: 80px;
  }
}
