/* JBOSS App - Core CSS Stylesheet */
/* All classes use g002- prefix for namespace isolation */

/* CSS Variables */
:root {
  --g002-primary: #00FF7F;
  --g002-secondary: #FFF8DC;
  --g002-accent: #D4AF37;
  --g002-dark: #2C2C2C;
  --g002-light: #98FB98;
  --g002-text-dark: #1a1a1a;
  --g002-text-light: #ffffff;
  --g002-bg-dark: #1a1a1a;
  --g002-bg-card: #2a2a2a;
  --g002-border: #D4AF37;
  --g002-shadow: rgba(0, 255, 127, 0.2);
}

/* 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(--g002-secondary);
  background-color: var(--g002-dark);
  overflow-x: hidden;
}

/* Container */
.g002-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.g002-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g002-dark) 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--g002-primary);
  box-shadow: 0 4px 20px var(--g002-shadow);
  transition: all 0.3s ease;
}

.g002-header.scrolled {
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.g002-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.g002-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g002-primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g002-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.g002-header-buttons {
  display: flex;
  gap: 1rem;
}

.g002-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.g002-btn-primary {
  background: linear-gradient(135deg, var(--g002-primary) 0%, var(--g002-light) 100%);
  color: var(--g002-dark);
  box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
}

.g002-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.6);
}

.g002-btn-secondary {
  background: transparent;
  color: var(--g002-primary);
  border: 2px solid var(--g002-primary);
}

.g002-btn-secondary:hover {
  background: var(--g002-primary);
  color: var(--g002-dark);
}

.g002-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--g002-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.g002-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g002-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.g002-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g002-dark) 0%, #1a1a1a 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--g002-primary);
}

.g002-mobile-menu.active {
  right: 0;
}

.g002-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.g002-menu-close {
  background: none;
  border: none;
  color: var(--g002-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.g002-menu-nav {
  padding: 1.5rem 0;
}

.g002-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g002-secondary);
  text-decoration: none;
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.g002-menu-nav a:hover {
  background: rgba(0, 255, 127, 0.1);
  border-left-color: var(--g002-primary);
  color: var(--g002-primary);
}

/* Main Content */
.g002-main {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.g002-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.g002-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g002-carousel-slide.active {
  opacity: 1;
}

.g002-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section */
.g002-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.g002-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g002-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.g002-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g002-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.g002-game-item:hover {
  transform: scale(1.05);
}

.g002-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.g002-game-item:hover .g002-game-icon {
  box-shadow: 0 6px 15px rgba(0, 255, 127, 0.4);
}

.g002-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g002-game-name {
  font-size: 1.1rem;
  color: var(--g002-secondary);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card */
.g002-card {
  background: var(--g002-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.g002-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g002-primary);
  margin-bottom: 1rem;
}

/* Content */
.g002-content {
  color: var(--g002-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.g002-content p {
  margin-bottom: 1rem;
}

.g002-content a {
  color: var(--g002-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.g002-content a:hover {
  border-bottom-color: var(--g002-primary);
}

/* Footer */
.g002-footer {
  background: linear-gradient(180deg, var(--g002-dark) 0%, #0f0f0f 100%);
  padding: 3rem 0 8rem 0;
  border-top: 2px solid var(--g002-accent);
}

.g002-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g002-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g002-footer-link {
  color: var(--g002-primary);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--g002-accent);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.g002-footer-link:hover {
  background: var(--g002-primary);
  color: var(--g002-dark);
}

.g002-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g002-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.g002-partner-logo:hover {
  opacity: 1;
}

.g002-copyright {
  text-align: center;
  color: var(--g-secondary);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Mobile Bottom Navigation */
.g002-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g002-dark) 0%, #0f0f0f 100%);
  border-top: 2px solid var(--g002-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.g002-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.5rem;
}

.g002-nav-item:hover {
  transform: scale(1.1);
}

.g002-nav-item.active {
  color: var(--g002-primary);
}

.g002-nav-icon {
  font-size: 2.2rem;
  color: var(--g002-secondary);
  transition: color 0.3s ease;
}

.g002-nav-item:hover .g002-nav-icon,
.g002-nav-item.active .g002-nav-icon {
  color: var(--g002-primary);
}

.g002-nav-text {
  font-size: 1rem;
  color: var(--g002-secondary);
  font-weight: 500;
}

.g002-nav-item:hover .g002-nav-text,
.g002-nav-item.active .g002-nav-text {
  color: var(--g002-primary);
}

/* Desktop Styles */
@media (min-width: 769px) {
  .g002-bottom-nav {
    display: none;
  }

  .g002-main {
    padding-bottom: 2rem;
  }

  .g002-menu-toggle {
    display: block;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .g002-menu-toggle {
    display: block;
  }

  .g002-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .g002-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Utility Classes */
.g002-text-center {
  text-align: center;
}

.g002-mb-1 {
  margin-bottom: 1rem;
}

.g002-mb-2 {
  margin-bottom: 2rem;
}

.g002-mt-1 {
  margin-top: 1rem;
}

.g002-mt-2 {
  margin-top: 2rem;
}
