/* j7777 Theme CSS File */
/* All classes use prefix: gb3c- */

/* CSS Variables */
:root {
  --gb3c-primary: #800080;
  --gb3c-secondary: #1A1A2E;
  --gb3c-accent: #4B0082;
  --gb3c-highlight: #6A5ACD;
  --gb3c-bg: #0a0a0f;
  --gb3c-surface: #1a1a2e;
  --gb3c-text: #ffffff;
  --gb3c-text-secondary: #b8b8d9;
  --gb3c-border: #2a2a3e;
  --gb3c-success: #4caf50;
  --gb3c-warning: #ff9800;
  --gb3c-error: #f44336;

  /* Typography */
  --gb3c-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --gb3c-font-secondary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --gb3c-spacing-xs: 0.4rem;
  --gb3c-spacing-sm: 0.8rem;
  --gb3c-spacing-md: 1.6rem;
  --gb3c-spacing-lg: 2.4rem;
  --gb3c-spacing-xl: 3.2rem;

  /* Border Radius */
  --gb3c-radius-sm: 0.4rem;
  --gb3c-radius-md: 0.8rem;
  --gb3c-radius-lg: 1.2rem;

  /* Shadows */
  --gb3c-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --gb3c-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --gb3c-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --gb3c-glow: 0 0 20px rgba(128, 0, 128, 0.5);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gb3c-font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gb3c-text);
  background-color: var(--gb3c-bg);
  overflow-x: hidden;
}

/* Container and Layout */
.gb3c-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.gb3c-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gb3c-main {
  flex: 1;
  padding-bottom: 8rem; /* Space for mobile nav */
}

@media (min-width: 769px) {
  .gb3c-main {
    padding-bottom: 0;
  }
}

/* Header */
.gb3c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gb3c-secondary) 0%, var(--gb3c-accent) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gb3c-border);
  transition: all 0.3s ease;
}

.gb3c-header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: var(--gb3c-shadow-md);
}

.gb3c-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
}

.gb3c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gb3c-text);
}

.gb3c-logo img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--gb3c-radius-sm);
}

.gb3c-logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gb3c-text) 0%, var(--gb3c-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gb3c-header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.gb3c-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--gb3c-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.gb3c-btn-primary {
  background: linear-gradient(135deg, var(--gb3c-primary) 0%, var(--gb3c-accent) 100%);
  color: var(--gb3c-text);
  box-shadow: var(--gb3c-shadow-sm);
}

.gb3c-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--gb3c-shadow-md), var(--gb3c-glow);
}

.gb3c-btn-secondary {
  background: transparent;
  color: var(--gb3c-text);
  border: 2px solid var(--gb3c-highlight);
}

.gb3c-btn-secondary:hover {
  background: var(--gb3c-highlight);
  transform: translateY(-2px);
}

.gb3c-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.8rem;
  background: none;
  border: none;
  z-index: 1001;
}

.gb3c-hamburger span {
  width: 2.4rem;
  height: 0.2rem;
  background: var(--gb3c-text);
  transition: all 0.3s ease;
  border-radius: 0.1rem;
}

.gb3c-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.gb3c-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.gb3c-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Navigation Menu */
.gb3c-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--gb3c-secondary) 0%, var(--gb3c-accent) 100%);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-top: 8rem;
}

.gb3c-nav-menu.active {
  right: 0;
}

.gb3c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gb3c-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gb3c-nav-list {
  list-style: none;
  padding: 0 1.6rem;
}

.gb3c-nav-item {
  margin-bottom: 0.4rem;
}

.gb3c-nav-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--gb3c-text);
  text-decoration: none;
  border-radius: var(--gb3c-radius-md);
  transition: all 0.3s ease;
  font-size: 1.6rem;
  font-weight: 500;
}

.gb3c-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(0.4rem);
}

.gb3c-nav-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel */
.gb3c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--gb3c-radius-lg);
  margin: 1.6rem 0;
  box-shadow: var(--gb3c-shadow-lg);
}

.gb3c-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.gb3c-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.gb3c-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.gb3c-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.gb3c-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gb3c-indicator.active {
  background: var(--gb3c-text);
  transform: scale(1.2);
}

/* Game Grid */
.gb3c-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  margin: 1.6rem 0;
}

.gb3c-game-card {
  background: var(--gb3c-surface);
  border-radius: var(--gb3c-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--gb3c-text);
  position: relative;
}

.gb3c-game-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--gb3c-shadow-md), 0 0 20px rgba(128, 0, 128, 0.3);
}

.gb3c-game-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gb3c-game-card:hover .gb3c-game-image {
  transform: scale(1.1);
}

.gb3c-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, var(--gb3c-secondary) 0%, var(--gb3c-accent) 100%);
}

/* Sections */
.gb3c-section {
  padding: 2.4rem 0;
  margin-bottom: 1.6rem;
}

.gb3c-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  text-align: center;
  background: linear-gradient(135deg, var(--gb3c-text) 0%, var(--gb3c-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gb3c-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--gb3c-highlight);
}

.gb3c-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--gb3c-text-secondary);
  margin-bottom: 1.6rem;
}

.gb3c-text-center {
  text-align: center;
}

/* Cards */
.gb3c-card {
  background: var(--gb3c-surface);
  border-radius: var(--gb3c-radius-lg);
  padding: 2.4rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--gb3c-shadow-sm);
  transition: all 0.3s ease;
}

.gb3c-card:hover {
  box-shadow: var(--gb3c-shadow-md);
  transform: translateY(-0.4rem);
}

/* Lists */
.gb3c-list {
  list-style: none;
  padding: 0;
}

.gb3c-list-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--gb3c-border);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.gb3c-list-item:last-child {
  border-bottom: none;
}

.gb3c-list-icon {
  color: var(--gb3c-highlight);
  font-size: 2rem;
  margin-top: 0.2rem;
}

/* Footer */
.gb3c-footer {
  background: linear-gradient(135deg, var(--gb3c-secondary) 0%, var(--gb3c-accent) 100%);
  padding: 3.2rem 0 8rem;
  margin-top: 4.8rem;
  position: relative;
}

.gb3c-footer-content {
  margin-bottom: 2.4rem;
}

.gb3c-footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--gb3c-highlight);
}

.gb3c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.gb3c-footer-link {
  color: var(--gb3c-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.gb3c-footer-link:hover {
  color: var(--gb3c-highlight);
  transform: translateX(0.4rem);
}

.gb3c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: 2.4rem 0;
}

.gb3c-partner {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.gb3c-partner:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.1);
}

.gb3c-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gb3c-text-secondary);
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--gb3c-border);
}

/* Mobile Bottom Navigation */
.gb3c-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background: linear-gradient(135deg, var(--gb3c-secondary) 0%, var(--gb3c-accent) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gb3c-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.8rem 0;
}

.gb3c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 5.6rem;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--gb3c-radius-md);
  text-decoration: none;
  color: var(--gb3c-text-secondary);
  position: relative;
}

.gb3c-nav-item:hover,
.gb3c-nav-item.active {
  color: var(--gb3c-highlight);
  background: rgba(106, 90, 205, 0.2);
  transform: translateY(-0.2rem);
}

.gb3c-nav-icon-bottom {
  font-size: 2.4rem;
  transition: all 0.3s ease;
}

.gb3c-nav-item:hover .gb3c-nav-icon-bottom,
.gb3c-nav-item.active .gb3c-nav-icon-bottom {
  transform: scale(1.2);
}

.gb3c-nav-label {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.gb3c-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: var(--gb3c-error);
  color: var(--gb3c-text);
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .gb3c-mobile-nav {
    display: none;
  }
}

/* Utility Classes */
.gb3c-text-primary {
  color: var(--gb3c-primary);
}

.gb3c-text-secondary {
  color: var(--gb3c-text-secondary);
}

.gb3c-text-highlight {
  color: var(--gb3c-highlight);
}

.gb3c-bg-primary {
  background-color: var(--gb3c-primary);
}

.gb3c-bg-secondary {
  background-color: var(--gb3c-surface);
}

.gb3c-d-flex {
  display: flex;
}

.gb3c-align-center {
  align-items: center;
}

.gb3c-justify-center {
  justify-content: center;
}

.gb3c-justify-between {
  justify-content: space-between;
}

.gb3c-flex-wrap {
  flex-wrap: wrap;
}

.gb3c-gap-sm {
  gap: 0.8rem;
}

.gb3c-gap-md {
  gap: 1.6rem;
}

.gb3c-mb-sm {
  margin-bottom: 0.8rem;
}

.gb3c-mb-md {
  margin-bottom: 1.6rem;
}

.gb3c-mb-lg {
  margin-bottom: 2.4rem;
}

.gb3c-mt-sm {
  margin-top: 0.8rem;
}

.gb3c-mt-md {
  margin-top: 1.6rem;
}

.gb3c-mt-lg {
  margin-top: 2.4rem;
}

/* Tooltip */
.gb3c-tooltip {
  position: absolute;
  background: var(--gb3c-secondary);
  color: var(--gb3c-text);
  padding: 0.8rem 1.2rem;
  border-radius: var(--gb3c-radius-sm);
  font-size: 1.4rem;
  white-space: nowrap;
  z-index: 10000;
  box-shadow: var(--gb3c-shadow-md);
  pointer-events: none;
  opacity: 0;
  animation: gb3c-fadeIn 0.3s ease forwards;
}

@keyframes gb3c-fadeIn {
  to {
    opacity: 1;
  }
}

/* Loading Animation */
.gb3c-loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.3rem solid var(--gb3c-border);
  border-top-color: var(--gb3c-highlight);
  border-radius: 50%;
  animation: gb3c-spin 1s linear infinite;
}

@keyframes gb3c-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gb3c-container {
    padding: 0 1.2rem;
  }

  .gb3c-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 0.8rem;
  }

  .gb3c-game-image {
    height: 7rem;
  }

  .gb3c-section-title {
    font-size: 2rem;
  }

  .gb3c-card {
    padding: 1.6rem;
  }
}

/* Print Styles */
@media print {
  .gb3c-header,
  .gb3c-mobile-nav,
  .gb3c-carousel,
  .gb3c-footer {
    display: none;
  }

  body {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}