/**
 * AGG777 Gaming Website Styles
 * Dark Navy & Lime Green Theme
 * Mobile-first responsive design
 */

/* CSS Variables for consistent theming */
:root {
  --g5e6-primary: #7CFC00; /* Lawn Green */
  --g5e6-secondary: #2C3E50; /* Dark Navy Blue */
  --g5e6-bg-dark: #1A1F2E; /* Very Dark Blue */
  --g5e6-bg-darker: #0F131C; /* Darkest Blue */
  --g5e6-text: #F8F8FF; /* Off-white */
  --g5e6-text-muted: #B0B8C4;
  --g5e6-border: #3A4A5C;
  --g5e6-success: #28a745;
  --g5e6-warning: #ffc107;
  --g5e6-danger: #dc3545;
  --g5e6-gradient: linear-gradient(135deg, #2C3E50 0%, #1A1F2E 100%);
  --g5e6-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --g5e6-radius: 8px;
  --g5e6-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  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(--g5e6-text);
  background: var(--g5e6-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--g5e6-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--g5e6-text-muted);
}

a {
  color: var(--g5e6-primary);
  text-decoration: none;
  transition: var(--g5e6-transition);
}

a:hover {
  color: #90FF00;
  text-decoration: underline;
}

/* Layout containers */
.g5e6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g5e6-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g5e6-main {
  flex: 1;
  padding-bottom: 8rem; /* Space for mobile nav */
}

.g5e6-grid {
  display: grid;
  gap: 1.5rem;
}

.g5e6-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g5e6-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header and navigation */
.g5e6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g5e6-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g5e6-border);
  transition: var(--g5e6-transition);
}

.g5e6-header.scrolled {
  background: rgba(26, 31, 46, 0.95);
  box-shadow: var(--g5e6-shadow);
}

.g5e6-nav {
  padding: 1rem 0;
}

.g5e6-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--g5e6-primary);
}

.g5e6-nav-brand img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--g5e6-radius);
}

.g5e6-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g5e6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  border: none;
  border-radius: var(--g5e6-radius);
  cursor: pointer;
  transition: var(--g5e6-transition);
  min-height: 4.4rem;
  white-space: nowrap;
}

.g5e6-btn-primary {
  background: var(--g5e6-primary);
  color: var(--g5e6-bg-dark);
  box-shadow: 0 2px 8px rgba(124, 252, 0, 0.3);
}

.g5e6-btn-primary:hover {
  background: #90FF00;
  color: var(--g5e6-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 252, 0, 0.4);
}

.g5e6-btn-outline {
  background: transparent;
  color: var(--g5e6-primary);
  border: 2px solid var(--g5e6-primary);
}

.g5e6-btn-outline:hover {
  background: var(--g5e6-primary);
  color: var(--g5e6-bg-dark);
}

.g5e6-menu-toggle {
  background: none;
  border: none;
  color: var(--g5e6-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--g5e6-transition);
}

.g5e6-menu-toggle:hover {
  color: #90FF00;
  transform: scale(1.1);
}

/* Mobile menu */
.g5e6-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g5e6-bg-darker);
  z-index: 9999;
  transition: var(--g5e6-transition);
  overflow-y: auto;
  padding: 2rem;
}

.g5e6-mobile-menu.active {
  right: 0;
}

.g5e6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g5e6-transition);
}

.g5e6-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.g5e6-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--g5e6-border);
}

.g5e6-menu-close {
  background: none;
  border: none;
  color: var(--g5e6-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--g5e6-transition);
}

.g5e6-menu-close:hover {
  color: var(--g5e6-primary);
  transform: rotate(90deg);
}

.g5e6-menu-list {
  list-style: none;
}

.g5e6-menu-item {
  margin-bottom: 0.5rem;
}

.g5e6-menu-link {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--g5e6-text);
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: var(--g5e6-radius);
  transition: var(--g5e6-transition);
}

.g5e6-menu-link:hover {
  background: rgba(124, 252, 0, 0.1);
  color: var(--g5e6-primary);
  text-decoration: none;
}

/* Carousel styles */
.g5e6-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g5e6-radius);
  margin-bottom: 2rem;
  box-shadow: var(--g5e6-shadow);
}

.g5e6-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.g5e6-carousel-item {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.g5e6-carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.g5e6-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.g5e6-carousel-btn {
  background: rgba(26, 31, 46, 0.8);
  color: var(--g5e6-primary);
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: var(--g5e6-transition);
}

.g5e6-carousel-btn:hover {
  background: var(--g5e6-primary);
  color: var(--g5e6-bg-dark);
}

.g5e6-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g5e6-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g5e6-transition);
}

.g5e6-carousel-indicator.active {
  background: var(--g5e6-primary);
  transform: scale(1.2);
}

/* Game grid styles */
.g5e6-games-section {
  margin-bottom: 3rem;
}

.g5e6-section-title {
  font-size: 2.2rem;
  color: var(--g5e6-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.g5e6-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 3px;
  background: var(--g5e6-primary);
  border-radius: 2px;
}

.g5e6-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.g5e6-game-item {
  background: var(--g5e6-secondary);
  border-radius: var(--g5e6-radius);
  overflow: hidden;
  transition: var(--g5e6-transition);
  cursor: pointer;
  position: relative;
}

.g5e6-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 252, 0, 0.2);
}

.g5e6-game-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.g5e6-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--g5e6-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Content sections */
.g5e6-content-section {
  background: var(--g5e6-gradient);
  border-radius: var(--g5e6-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--g5e6-shadow);
}

.g5e6-content-section h2 {
  margin-bottom: 1.5rem;
  color: var(--g5e6-primary);
}

.g5e6-content-section p {
  color: var(--g5e6-text-muted);
  line-height: 1.6;
}

/* Accordion styles */
.g5e6-accordion {
  margin-bottom: 1rem;
}

.g5e6-accordion-header {
  background: var(--g5e6-secondary);
  padding: 1.5rem;
  border-radius: var(--g5e6-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--g5e6-transition);
}

.g5e6-accordion-header:hover {
  background: rgba(124, 252, 0, 0.1);
}

.g5e6-accordion-header.active {
  background: rgba(124, 252, 0, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.g5e6-accordion-title {
  font-weight: 500;
  color: var(--g5e6-text);
}

.g5e6-accordion-icon {
  font-size: 1.8rem;
  color: var(--g5e6-primary);
  transition: var(--g5e6-transition);
}

.g5e6-accordion-header.active .g5e6-accordion-icon {
  transform: rotate(180deg);
}

.g5e6-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--g5e6-bg-darker);
  border-bottom-left-radius: var(--g5e6-radius);
  border-bottom-right-radius: var(--g5e6-radius);
}

.g5e6-accordion-body {
  padding: 1.5rem;
  color: var(--g5e6-text-muted);
  line-height: 1.6;
}

/* Footer styles */
.g5e6-footer {
  background: var(--g5e6-bg-darker);
  padding: 3rem 0 8rem; /* Extra padding for mobile nav */
  margin-top: 3rem;
}

.g5e6-footer-content {
  margin-bottom: 2rem;
}

.g5e6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g5e6-footer-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--g5e6-secondary);
  color: var(--g5e6-text);
  border-radius: var(--g5e6-radius);
  font-size: 1.2rem;
  transition: var(--g5e6-transition);
}

.g5e6-footer-link:hover {
  background: var(--g5e6-primary);
  color: var(--g5e6-bg-dark);
  text-decoration: none;
}

.g5e6-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.g5e6-partner {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  opacity: 0.7;
  transition: var(--g5e6-transition);
}

.g5e6-partner:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.g5e6-copyright {
  text-align: center;
  color: var(--g5e6-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Mobile bottom navigation */
.g5e6-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g5e6-bg-darker);
  border-top: 1px solid var(--g5e6-border);
  z-index: 1000;
  padding: 0.5rem 0;
  height: 6rem;
}

.g5e6-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.g5e6-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--g5e6-transition);
  border-radius: var(--g5e6-radius);
}

.g5e6-nav-item:hover {
  background: rgba(124, 252, 0, 0.1);
  transform: translateY(-2px);
}

.g5e6-nav-item.active {
  color: var(--g5e6-primary);
}

.g5e6-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  transition: var(--g5e6-transition);
}

.g5e6-nav-label {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Utility classes */
.g5e6-text-center { text-align: center; }
.g5e6-text-left { text-align: left; }
.g5e6-text-right { text-align: right; }

.g5e6-mb-1 { margin-bottom: 1rem; }
.g5e6-mb-2 { margin-bottom: 2rem; }
.g5e6-mb-3 { margin-bottom: 3rem; }

.g5e6-mt-1 { margin-top: 1rem; }
.g5e6-mt-2 { margin-top: 2rem; }
.g5e6-mt-3 { margin-top: 3rem; }

.g5e6-hidden { display: none !important; }
.g5e6-visible { display: block !important; }

/* Responsive design */
@media (max-width: 768px) {
  .g5e6-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .g5e6-game-item img {
    height: 80px;
  }

  .g5e6-game-name {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .g5e6-section-title {
    font-size: 2rem;
  }

  .g5e6-content-section {
    padding: 1.5rem;
  }

  .g5e6-carousel-item img {
    height: 160px;
  }

  .g5e6-nav-actions {
    gap: 0.5rem;
  }

  .g5e6-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    min-height: 4rem;
  }
}

@media (min-width: 769px) {
  .g5e6-mobile-nav {
    display: none;
  }

  .g5e6-main {
    padding-bottom: 3rem;
  }

  .g5e6-container {
    max-width: 1200px;
  }

  .g5e6-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Animation keyframes */
@keyframes g5e6-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes g5e6-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.g5e6-fade-in {
  animation: g5e6-fadeIn 0.6s ease-out;
}

.g5e6-pulse {
  animation: g5e6-pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--g5e6-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--g5e6-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #90FF00;
}