/* ============================================================================
   Ylaro Universal CSS Stylesheet - layout-66c7.css
   All classes prefixed with 'gc7b-' for namespace isolation
   Color scheme: #0A0A0A (black) | #D3D3D3 (light gray) | #32CD32 (lime green)
   ============================================================================ */

/* Root CSS variables for consistent color management */
:root {
  --gc7b-primary: #32CD32;        /* Lime green accent color */
  --gc7b-primary-dark: #28A828;   /* Darker green for hover states */
  --gc7b-bg: #0A0A0A;             /* Deep black background */
  --gc7b-bg-secondary: #1a1a1a;   /* Secondary background */
  --gc7b-text: #D3D3D3;            /* Light gray text */
  --gc7b-text-dark: #999999;       /* Darker text for secondary content */
  --gc7b-border: #333333;          /* Border color */
  --gc7b-shadow: rgba(50, 205, 50, 0.15); /* Green shadow for depth */

  /* Typography */
  --gc7b-base-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --gc7b-line-height: 1.5rem;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: var(--gc7b-base-font);
  background-color: var(--gc7b-bg);
  color: var(--gc7b-text);
  line-height: var(--gc7b-line-height);
  font-size: 1.6rem;
  overflow-x: hidden;
}

/* ============================================================================
   CONTAINER & LAYOUT UTILITIES
   ============================================================================ */
.gc7b-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.gc7b-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gc7b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem;
  padding: 1.2rem 0;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */
.gc7b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--gc7b-bg) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 2px solid var(--gc7b-primary);
  z-index: 1000;
  padding: 0.8rem 1.6rem;
  box-shadow: 0 4px 12px var(--gc7b-shadow);
}

.gc7b-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.gc7b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gc7b-primary);
  text-decoration: none;
}

.gc7b-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.gc7b-logo-text {
  color: var(--gc7b-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header button group */
.gc7b-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.gc7b-header-btn {
  padding: 0.6rem 1.2rem;
  background: var(--gc7b-primary);
  color: var(--gc7b-bg);
  border: 2px solid var(--gc7b-primary);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gc7b-header-btn:hover {
  background: transparent;
  color: var(--gc7b-primary);
  transform: scale(1.05);
}

.gc7b-header-btn:active {
  transform: scale(0.98);
}

/* Menu button for mobile */
.gc7b-menu-btn {
  display: none;
  background: var(--gc7b-primary);
  border: none;
  color: var(--gc7b-bg);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.gc7b-menu-btn:hover {
  background: var(--gc7b-primary-dark);
}

/* Navigation menu */
.gc7b-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.gc7b-nav-item {
  position: relative;
}

.gc7b-nav-link {
  color: var(--gc7b-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.gc7b-nav-link:hover {
  color: var(--gc7b-primary);
}

.gc7b-nav-active .gc7b-nav-link {
  color: var(--gc7b-primary);
  font-weight: 700;
}

/* ============================================================================
   MOBILE MENU
   ============================================================================ */
.gc7b-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 64px;
  background: var(--gc7b-bg-secondary);
  border-top: 2px solid var(--gc7b-primary);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - 124px);
}

.gc7b-mobile-menu-active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gc7b-mobile-menu-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gc7b-mobile-menu-item {
  color: var(--gc7b-text);
  text-decoration: none;
  padding: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
}

.gc7b-mobile-menu-item:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--gc7b-primary);
  border-left-color: var(--gc7b-primary);
  padding-left: 1.4rem;
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */
main {
  flex: 1;
  margin-top: 70px;
  margin-bottom: 0;
  padding: 2rem 1.6rem;
}

/* Mobile bottom nav padding adjustment */
@media (max-width: 768px) {
  main {
    margin-bottom: 64px;
    padding-bottom: 3rem;
  }
}

/* ============================================================================
   HERO & CAROUSEL
   ============================================================================ */
.gc7b-carousel {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px var(--gc7b-shadow);
}

.gc7b-carousel-slide {
  width: 100%;
  height: auto;
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.gc7b-carousel-slide.active {
  display: block;
}

.gc7b-carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 3 / 1;
}

.gc7b-carousel-slide img:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================================
   HEADINGS & TYPOGRAPHY
   ============================================================================ */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gc7b-primary);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gc7b-text);
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--gc7b-primary);
  padding-bottom: 0.8rem;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gc7b-text);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gc7b-text);
  line-height: var(--gc7b-line-height);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.gc7b-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--gc7b-primary);
  color: var(--gc7b-bg);
  border: 2px solid var(--gc7b-primary);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gc7b-btn:hover {
  background: transparent;
  color: var(--gc7b-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--gc7b-shadow);
}

.gc7b-btn:active {
  transform: translateY(0);
}

.gc7b-btn-secondary {
  background: transparent;
  color: var(--gc7b-primary);
  border-color: var(--gc7b-primary);
}

.gc7b-btn-secondary:hover {
  background: var(--gc7b-primary);
  color: var(--gc7b-bg);
}

.gc7b-btn-block {
  width: 100%;
}

/* ============================================================================
   CARDS & MODULES
   ============================================================================ */
.gc7b-card {
  background: var(--gc7b-bg-secondary);
  border: 1px solid var(--gc7b-border);
  border-radius: 8px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gc7b-card:hover {
  border-color: var(--gc7b-primary);
  box-shadow: 0 4px 16px var(--gc7b-shadow);
  transform: translateY(-2px);
}

.gc7b-card-title {
  color: var(--gc7b-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.gc7b-card-content {
  color: var(--gc7b-text-dark);
  font-size: 1.4rem;
  line-height: var(--gc7b-line-height);
}

/* ============================================================================
   GAME GRID & DISPLAY
   ============================================================================ */
.gc7b-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.2rem 0;
}

.gc7b-game-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gc7b-bg-secondary);
  border: 1px solid var(--gc7b-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gc7b-game-item:hover {
  border-color: var(--gc7b-primary);
  box-shadow: 0 4px 12px var(--gc7b-shadow);
  transform: translateY(-4px);
}

.gc7b-game-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gc7b-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gc7b-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.gc7b-game-item:hover .gc7b-game-name {
  color: var(--gc7b-primary);
}

/* ============================================================================
   SECTION MODULES
   ============================================================================ */
.gc7b-module {
  background: var(--gc7b-bg-secondary);
  border: 1px solid var(--gc7b-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gc7b-module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gc7b-primary);
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--gc7b-primary);
  padding-left: 1rem;
}

.gc7b-module-content {
  color: var(--gc7b-text-dark);
  line-height: var(--gc7b-line-height);
}

.gc7b-module-content p {
  margin-bottom: 1rem;
}

/* ============================================================================
   LISTS & LINKS
   ============================================================================ */
.gc7b-list {
  list-style: none;
  padding: 0;
}

.gc7b-list-item {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--gc7b-text);
  line-height: var(--gc7b-line-height);
}

.gc7b-list-item::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--gc7b-primary);
  font-size: 1rem;
}

a {
  color: var(--gc7b-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: var(--gc7b-text);
  text-shadow: 0 0 8px var(--gc7b-shadow);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.gc7b-footer {
  background: var(--gc7b-bg-secondary);
  border-top: 2px solid var(--gc7b-primary);
  padding: 2rem 1.6rem;
  margin-top: 3rem;
  color: var(--gc7b-text-dark);
  font-size: 1.3rem;
}

.gc7b-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.gc7b-footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gc7b-footer-title {
  color: var(--gc7b-primary);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.gc7b-footer-link {
  color: var(--gc7b-text);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.4rem 0;
}

.gc7b-footer-link:hover {
  color: var(--gc7b-primary);
  padding-left: 0.4rem;
}

.gc7b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--gc7b-border);
  margin-top: 1.2rem;
}

.gc7b-partner-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gc7b-partner-logo:hover {
  opacity: 1;
}

.gc7b-footer-bottom {
  text-align: center;
  border-top: 1px solid var(--gc7b-border);
  padding-top: 1.6rem;
  color: var(--gc7b-text-dark);
  font-size: 1.2rem;
}

/* ============================================================================
   BOTTOM NAVIGATION (Mobile Fixed Nav)
   ============================================================================ */
.gc7b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, var(--gc7b-bg) 100%);
  border-top: 2px solid var(--gc7b-primary);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 1000;
  box-shadow: 0 -2px 12px var(--gc7b-shadow);
}

.gc7b-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gc7b-text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 64px;
  font-size: 0.95rem;
  font-weight: 500;
}

.gc7b-nav-btn:hover {
  color: var(--gc7b-primary);
  transform: scale(1.05);
}

.gc7b-nav-btn.active {
  color: var(--gc7b-primary);
  font-weight: 700;
  background: rgba(50, 205, 50, 0.05);
}

.gc7b-nav-icon {
  font-size: 2.2rem;
  display: block;
}

.gc7b-nav-label {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ============================================================================
   RESPONSIVE DESIGN - TABLET
   ============================================================================ */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .gc7b-header-buttons {
    gap: 0.4rem;
  }

  .gc7b-header-btn {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

  .gc7b-nav {
    gap: 1.2rem;
  }

  .gc7b-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE
   ============================================================================ */
@media (max-width: 768px) {
  html {
    font-size: 60%;
  }

  body {
    font-size: 1.7rem;
  }

  .gc7b-header {
    padding: 0.6rem 1.2rem;
  }

  .gc7b-header-inner {
    gap: 0.4rem;
  }

  .gc7b-logo {
    gap: 0.6rem;
  }

  .gc7b-logo img {
    width: 24px;
    height: 24px;
  }

  .gc7b-logo-text {
    font-size: 1.8rem;
  }

  .gc7b-menu-btn {
    display: block;
  }

  .gc7b-nav {
    display: none;
  }

  .gc7b-mobile-menu {
    display: none;
  }

  .gc7b-mobile-menu-active {
    display: block !important;
  }

  .gc7b-header-buttons {
    flex: 1;
    gap: 0.4rem;
  }

  .gc7b-header-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
    flex: 1;
    white-space: nowrap;
  }

  main {
    margin-top: 60px;
    padding: 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .gc7b-container {
    padding: 0;
  }

  .gc7b-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .gc7b-game-image {
    height: 100px;
  }

  .gc7b-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
  }

  .gc7b-module {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .gc7b-module-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .gc7b-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gc7b-partners {
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .gc7b-partner-logo {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================================
   ULTRA MOBILE (Small phones)
   ============================================================================ */
@media (max-width: 430px) {
  html {
    font-size: 55%;
  }

  .gc7b-header {
    padding: 0.5rem 0.8rem;
  }

  .gc7b-logo {
    gap: 0.4rem;
  }

  .gc7b-logo-text {
    font-size: 1.5rem;
  }

  .gc7b-header-btn {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }

  main {
    margin-top: 50px;
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .gc7b-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.5rem;
  }

  .gc7b-game-image {
    height: 85px;
  }

  .gc7b-module {
    padding: 1rem;
  }

  .gc7b-btn {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.gc7b-text-center {
  text-align: center;
}

.gc7b-text-left {
  text-align: left;
}

.gc7b-text-right {
  text-align: right;
}

.gc7b-mt-1 { margin-top: 1rem; }
.gc7b-mt-2 { margin-top: 2rem; }
.gc7b-mb-1 { margin-bottom: 1rem; }
.gc7b-mb-2 { margin-bottom: 2rem; }

.gc7b-hidden {
  display: none !important;
}

.gc7b-visible {
  display: block !important;
}

.gc7b-flex {
  display: flex;
}

.gc7b-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================================
   ACCESSIBILITY & PRINT
   ============================================================================ */
@media print {
  .gc7b-header,
  .gc7b-bottom-nav,
  .gc7b-mobile-menu {
    display: none !important;
  }

  body {
    color: #000;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--gc7b-primary);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
