/**
 * Sugar Rush 1000 - Main Stylesheet
 * All classes use g5e8- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --g5e8-primary: #5F9EA0;
  --g5e8-primary-dark: #4A8A8C;
  --g5e8-bg: #212F3D;
  --g5e8-bg-light: #2D3F4F;
  --g5e8-bg-lighter: #3A4F61;
  --g5e8-text: #FFFFFF;
  --g5e8-text-muted: #B8C5D0;
  --g5e8-border: #3A4F61;
  --g5e8-shadow: rgba(0, 0, 0, 0.3);
  --g5e8-gradient: linear-gradient(135deg, #5F9EA0 0%, #4A8A8C 100%);
  --g5e8-header-height: 60px;
  --g5e8-nav-height: 62px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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.5;
  color: var(--g5e8-text);
  background-color: var(--g5e8-bg);
  min-height: 100vh;
  padding-bottom: var(--g5e8-nav-height);
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.g5e8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g5e8-wrapper {
  padding: 1rem 0;
}

/* Header */
.g5e8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g5e8-header-height);
  background-color: var(--g5e8-bg-light);
  border-bottom: 1px solid var(--g5e8-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 10px var(--g5e8-shadow);
}

.g5e8-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g5e8-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.g5e8-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g5e8-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g5e8-header-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.g5e8-header-btn.g5e8-btn-register {
  background: var(--g5e8-gradient);
  color: white;
}

.g5e8-header-btn.g5e8-btn-login {
  background-color: transparent;
  color: var(--g5e8-primary);
  border: 2px solid var(--g5e8-primary);
}

.g5e8-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--g5e8-shadow);
}

.g5e8-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--g5e8-text);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .g5e8-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.g5e8-mobile-menu {
  position: fixed;
  top: var(--g5e8-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--g5e8-bg);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
}

.g5e8-mobile-menu.g5e8-menu-open {
  transform: translateX(0);
}

.g5e8-menu-list {
  list-style: none;
}

.g5e8-menu-item {
  border-bottom: 1px solid var(--g5e8-border);
}

.g5e8-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g5e8-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background-color 0.2s ease;
}

.g5e8-menu-link:hover {
  background-color: var(--g5e8-bg-light);
}

/* Main Content */
.g5e8-main {
  margin-top: var(--g5e8-header-height);
  min-height: calc(100vh - var(--g5e8-header-height) - var(--g5e8-nav-height));
}

@media (min-width: 769px) {
  .g5e8-main {
    margin-top: var(--g5e8-header-height);
    min-height: calc(100vh - var(--g5e8-header-height));
  }
}

/* Carousel */
.g5e8-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.g5e8-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g5e8-carousel-slide {
  min-width: 100%;
  position: relative;
}

.g5e8-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.g5e8-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(33, 47, 61, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.g5e8-carousel-nav:hover {
  background-color: var(--g5e8-primary);
}

.g5e8-carousel-prev {
  left: 1rem;
}

.g5e8-carousel-next {
  right: 1rem;
}

.g5e8-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g5e8-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g5e8-carousel-dot.g5e8-dot-active {
  background-color: var(--g5e8-primary);
  width: 24px;
  border-radius: 5px;
}

/* Sections */
.g5e8-section {
  margin-bottom: 2rem;
}

.g5e8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g5e8-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g5e8-section-title i {
  font-size: 1.6rem;
}

/* Game Grid */
.g5e8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.g5e8-game-card {
  position: relative;
  background-color: var(--g5e8-bg-lighter);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.g5e8-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--g5e8-shadow);
}

.g5e8-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.g5e8-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  color: var(--g5e8-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.g5e8-card {
  background-color: var(--g5e8-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g5e8-border);
}

.g5e8-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g5e8-primary);
  margin-bottom: 1rem;
}

.g5e8-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g5e8-text-muted);
}

.g5e8-card-content p {
  margin-bottom: 1rem;
}

.g5e8-card-content p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.g5e8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--g5e8-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.g5e8-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--g5e8-shadow);
}

.g5e8-btn i {
  font-size: 1.4rem;
}

.g5e8-btn-secondary {
  background-color: var(--g5e8-bg-lighter);
  color: var(--g5e8-primary);
}

/* Links */
.g5e8-link {
  color: var(--g5e8-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.g5e8-link:hover {
  color: var(--g5e8-primary-dark);
  text-decoration: underline;
}

/* List */
.g5e8-list {
  list-style: none;
}

.g5e8-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--g5e8-border);
  color: var(--g5e8-text-muted);
}

.g5e8-list-item:last-child {
  border-bottom: none;
}

.g5e8-list-item::before {
  content: "•";
  color: var(--g5e8-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.g5e8-list-item {
  padding-left: 1em;
}

/* FAQ */
.g5e8-faq-item {
  margin-bottom: 1rem;
}

.g5e8-faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g5e8-primary);
  margin-bottom: 0.5rem;
}

.g5e8-faq-answer {
  font-size: 1.3rem;
  color: var(--g5e8-text-muted);
  line-height: 1.6;
}

/* Features */
.g5e8-feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.g5e8-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--g5e8-bg-lighter);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g5e8-primary);
  font-size: 1.5rem;
}

.g5e8-feature-content {
  flex: 1;
}

.g5e8-feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g5e8-text);
  margin-bottom: 0.25rem;
}

.g5e8-feature-desc {
  font-size: 1.2rem;
  color: var(--g5e8-text-muted);
}

/* RTP Display */
.g5e8-rtp-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--g5e8-bg-lighter);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.g5e8-rtp-label {
  font-size: 1.3rem;
  color: var(--g5e8-text-muted);
}

.g5e8-rtp-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g5e8-primary);
}

/* Bottom Navigation */
.g5e8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g5e8-nav-height);
  background: linear-gradient(to right, #1a2a38 0%, #212F3D 50%, #1a2a38 100%);
  border-top: 2px solid var(--g5e8-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--g5e8-shadow);
}

@media (min-width: 769px) {
  .g5e8-bottom-nav {
    display: none;
  }
}

.g5e8-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g5e8-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g5e8-bottom-nav-item:hover {
  color: var(--g5e8-primary);
  transform: scale(1.1);
}

.g5e8-bottom-nav-item.g5e8-nav-active {
  color: var(--g5e8-primary);
}

.g5e8-bottom-nav-item.g5e8-nav-active .g5e8-nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(95, 158, 160, 0.6));
}

.g5e8-nav-icon {
  font-size: 22px;
  transition: all 0.3s ease;
}

.g5e8-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.g5e8-footer {
  background-color: var(--g5e8-bg-light);
  padding: 2rem 0 6rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--g5e8-border);
}

@media (min-width: 769px) {
  .g5e8-footer {
    padding-bottom: 2rem;
  }
}

.g5e8-footer-section {
  margin-bottom: 2rem;
}

.g5e8-footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g5e8-primary);
  margin-bottom: 1rem;
}

.g5e8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.g5e8-footer-link {
  color: var(--g5e8-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.g5e8-footer-link:hover {
  color: var(--g5e8-primary);
}

.g5e8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g5e8-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.g5e8-partner-logo:hover {
  opacity: 1;
}

.g5e8-copyright {
  text-align: center;
  color: var(--g5e8-text-muted);
  font-size: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--g5e8-border);
}

/* Typography Enhancements */
h1.g5e8-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g5e8-text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2.g5e8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g5e8-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h2.g5e8-section-title:first-of-type {
  margin-top: 0;
}

/* Utility Classes */
.g5e8-text-center {
  text-align: center;
}

.g5e8-mb-1 {
  margin-bottom: 1rem;
}

.g5e8-mb-2 {
  margin-bottom: 2rem;
}

.g5e8-mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .g5e8-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
