/**
 * Rolita Spin - Main Theme CSS
 * All classes use g3e7- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --g3e7-primary: #40E0D0;
  --g3e7-secondary: #E0FFFF;
  --g3e7-dark: #0E1621;
  --g3e7-accent1: #CD853F;
  --g3e7-accent2: #F0E68C;
  --g3e7-text: #E0FFFF;
  --g3e7-text-muted: #B0D8D8;
  --g3e7-border: #2A3A4A;
  --g3e7-success: #40E0D0;
  --g3e7-warning: #CD853F;
  --g3e7-danger: #FF6B6B;
}

/* 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.4rem;
  line-height: 1.6;
  background-color: var(--g3e7-dark);
  color: var(--g3e7-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g3e7-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.g3e7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g3e7-dark) 0%, #1A2A3A 100%);
  box-shadow: 0 2px 10px rgba(64, 224, 208, 0.2);
  z-index: 1000;
  border-bottom: 1px solid var(--g3e7-border);
}

.g3e7-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g3e7-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g3e7-primary);
  font-weight: 700;
  font-size: 1.6rem;
}

.g3e7-logo-icon {
  width: 32px;
  height: 32px;
}

.g3e7-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g3e7-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.g3e7-btn-primary {
  background: linear-gradient(135deg, var(--g3e7-primary) 0%, #2AC4B4 100%);
  color: var(--g3e7-dark);
}

.g3e7-btn-secondary {
  background: transparent;
  color: var(--g3e7-primary);
  border: 2px solid var(--g3e7-primary);
}

.g3e7-btn:hover,
.g3e7-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.g3e7-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.g3e7-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--g3e7-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g3e7-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g3e7-dark) 0%, #1A2A3A 100%);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.g3e7-mobile-menu.g3e7-menu-open {
  left: 0;
}

.g3e7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g3e7-mobile-menu.g3e7-menu-open + .g3e7-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.g3e7-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--g3e7-border);
}

.g3e7-menu-close {
  background: none;
  border: none;
  color: var(--g3e7-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.g3e7-menu-nav {
  padding: 1rem 0;
}

.g3e7-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g3e7-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.g3e7-menu-item:hover,
.g3e7-menu-item:active {
  background: rgba(64, 224, 208, 0.1);
  border-left-color: var(--g3e7-primary);
  color: var(--g3e7-primary);
}

/* Main Content */
.g3e7-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

/* Carousel */
.g3e7-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.g3e7-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.g3e7-carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g3e7-carousel-slide.g3e7-active {
  opacity: 1;
}

.g3e7-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g3e7-carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g3e7-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g3e7-carousel-dot.g3e7-active {
  background: var(--g3e7-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.g3e7-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--g3e7-border);
}

.g3e7-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3e7-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Game Grid */
.g3e7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g3e7-game-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--g3e7-border);
}

.g3e7-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--g3e7-primary);
  box-shadow: 0 8px 20px rgba(64, 224, 208, 0.3);
}

.g3e7-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g3e7-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.9));
  padding: 0.5rem 0.3rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--g3e7-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card */
.g3e7-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g3e7-border);
}

.g3e7-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g3e7-primary);
  margin-bottom: 0.8rem;
}

.g3e7-card-content {
  color: var(--g3e7-text-muted);
  line-height: 1.8;
}

/* Link Styles */
.g3e7-link {
  color: var(--g3e7-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.g3e7-link:hover {
  color: var(--g3e7-accent2);
  text-decoration: underline;
}

/* List Styles */
.g3e7-list {
  list-style: none;
}

.g3e7-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g3e7-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.g3e7-list-item:last-child {
  border-bottom: none;
}

.g3e7-list-icon {
  color: var(--g3e7-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Bottom Navigation */
.g3e7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1A2A3A 0%, var(--g3e7-dark) 100%);
  border-top: 2px solid var(--g3e7-primary);
  box-shadow: 0 -2px 10px rgba(64, 224, 208, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
}

.g3e7-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g3e7-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--g3e7-text-muted);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.g3e7-nav-item:hover,
.g3e7-nav-item:active,
.g3e7-nav-item.g3e7-active {
  color: var(--g3e7-primary);
  background: rgba(64, 224, 208, 0.1);
  transform: scale(1.05);
}

.g3e7-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g3e7-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.g3e7-footer {
  background: linear-gradient(180deg, #1A2A3A 0%, var(--g3e7-dark) 100%);
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--g3e7-border);
}

.g3e7-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g3e7-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.g3e7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g3e7-footer-link {
  color: var(--g3e7-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(64, 224, 208, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.g3e7-footer-link:hover {
  background: var(--g3e7-primary);
  color: var(--g3e7-dark);
}

.g3e7-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.g3e7-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g3e7-partner-logo:hover {
  opacity: 1;
}

.g3e7-copyright {
  text-align: center;
  color: var(--g3e7-text-muted);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g3e7-border);
}

/* Responsive */
@media (min-width: 769px) {
  .g3e7-bottom-nav {
    display: none;
  }

  .g3e7-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .g3e7-menu-toggle {
    display: flex;
  }

  .g3e7-desktop-nav {
    display: none;
  }
}

/* Utility Classes */
.g3e7-text-center {
  text-align: center;
}

.g3e7-mt-1 {
  margin-top: 1rem;
}

.g3e7-mb-1 {
  margin-bottom: 1rem;
}

.g3e7-mt-2 {
  margin-top: 2rem;
}

.g3e7-mb-2 {
  margin-bottom: 2rem;
}

.g3e7-p-1 {
  padding: 1rem;
}

.g3e7-p-2 {
  padding: 2rem;
}

/* Animation */
@keyframes g3e7-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g3e7-fade-in {
  animation: g3e7-fadeIn 0.5s ease forwards;
}
