/**
 * JiliBoss Website CSS Styles
 * Mobile-first responsive design
 * CSS class prefix: g6f1-
 */

/* CSS Variables for consistent theming */
:root {
  --g6f1-primary: #BF360C;
  --g6f1-secondary: #FF9500;
  --g6f1-accent: #FF1493;
  --g6f1-bg-dark: #3A3A3A;
  --g6f1-bg-light: #FAFAFA;
  --g6f1-text-dark: #3A3A3A;
  --g6f1-text-light: #FAFAFA;
  --g6f1-warning: #FF8C00;
  --g6f1-success: #28a745;
  --g6f1-error: #dc3545;
  --g6f1-border: #e0e0e0;
  --g6f1-shadow: rgba(0, 0, 0, 0.1);
  --g6f1-shadow-hover: rgba(0, 0, 0, 0.2);
  --g6f1-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --g6f1-border-radius: 8px;
  --g6f1-max-width: 430px;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g6f1-text-dark);
  background: linear-gradient(135deg, var(--g6f1-bg-dark) 0%, #2a2a2a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container and wrapper */
.g6f1-container {
  max-width: var(--g6f1-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.g6f1-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem; /* Space for bottom nav on mobile */
}

/* Header and navigation */
.g6f1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g6f1-primary) 0%, var(--g6f1-secondary) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--g6f1-transition);
}

.g6f1-header.scrolled {
  box-shadow: 0 2px 20px var(--g6f1-shadow-hover);
}

.g6f1-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--g6f1-max-width);
  margin: 0 auto;
}

.g6f1-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g6f1-text-light);
  font-weight: 700;
  font-size: 2rem;
}

.g6f1-logo img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.g6f1-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g6f1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--g6f1-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--g6f1-transition);
  min-height: 4.4rem; /* Touch-friendly minimum */
  min-width: 4.4rem;
}

.g6f1-btn-primary {
  background: linear-gradient(135deg, var(--g6f1-accent) 0%, var(--g6f1-warning) 100%);
  color: var(--g6f1-text-light);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.g6f1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.g6f1-btn-secondary {
  background: transparent;
  color: var(--g6f1-text-light);
  border: 2px solid var(--g6f1-text-light);
}

.g6f1-btn-secondary:hover {
  background: var(--g6f1-text-light);
  color: var(--g6f1-primary);
}

.g6f1-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--g6f1-transition);
}

.g6f1-hamburger span {
  width: 100%;
  height: 2px;
  background: var(--g6f1-text-light);
  transition: var(--g6f1-transition);
  border-radius: 1px;
}

.g6f1-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.g6f1-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.g6f1-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu */
.g6f1-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--g6f1-bg-dark) 0%, #2a2a2a 100%);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: var(--g6f1-transition);
  overflow-y: auto;
  padding-top: 6rem;
}

.g6f1-mobile-menu.active {
  right: 0;
}

.g6f1-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: var(--g6f1-transition);
}

.g6f1-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.g6f1-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.g6f1-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g6f1-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--g6f1-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--g6f1-transition);
}

.g6f1-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--g6f1-secondary);
}

/* Main content */
.g6f1-main {
  padding-top: 7rem; /* Space for fixed header */
  min-height: calc(100vh - 7rem);
}

/* Carousel */
.g6f1-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--g6f1-border-radius);
  margin-bottom: 2rem;
}

.g6f1-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.g6f1-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.g6f1-carousel-slide.active {
  opacity: 1;
}

.g6f1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g6f1-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.g6f1-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g6f1-transition);
}

.g6f1-carousel-indicator.active {
  background: var(--g6f1-secondary);
  transform: scale(1.2);
}

/* Typography */
.g6f1-h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--g6f1-text-light);
}

.g6f1-h2 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--g6f1-text-light);
}

.g6f1-h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--g6f1-text-light);
}

.g6f1-text {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g6f1-text-light);
  margin-bottom: 1.5rem;
}

.g6f1-text-center {
  text-align: center;
}

/* Cards and sections */
.g6f1-section {
  padding: 3rem 0;
}

.g6f1-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--g6f1-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--g6f1-transition);
}

.g6f1-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--g6f1-shadow-hover);
}

/* Grid layouts */
.g6f1-grid {
  display: grid;
  gap: 1.5rem;
}

.g6f1-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g6f1-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g6f1-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.g6f1-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Game showcase */
.g6f1-game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.g6f1-game-item {
  text-align: center;
  text-decoration: none;
  transition: var(--g6f1-transition);
  cursor: pointer;
}

.g6f1-game-item:hover {
  transform: scale(1.05);
}

.g6f1-game-image {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: var(--g6f1-border-radius);
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.g6f1-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--g6f1-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom navigation */
.g6f1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g6f1-bg-dark) 0%, #2a2a2a 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.g6f1-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--g6f1-transition);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.5rem;
}

.g6f1-bottom-nav-item:hover,
.g6f1-bottom-nav-item.active {
  color: var(--g6f1-secondary);
  transform: scale(1.05);
}

.g6f1-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  transition: var(--g6f1-transition);
}

.g6f1-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

/* Footer */
.g6f1-footer {
  background: linear-gradient(135deg, var(--g6f1-bg-dark) 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 8rem; /* Extra bottom padding for mobile nav */
  margin-top: 4rem;
}

.g6f1-footer-content {
  text-align: center;
}

.g6f1-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g6f1-partner-item {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--g6f1-transition);
}

.g6f1-partner-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.g6f1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.g6f1-footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--g6f1-transition);
}

.g6f1-footer-link:hover {
  color: var(--g6f1-secondary);
}

.g6f1-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  text-align: center;
}

/* Utility classes */
.g6f1-text-center {
  text-align: center;
}

.g6f1-text-left {
  text-align: left;
}

.g6f1-text-right {
  text-align: right;
}

.g6f1-mb-1 {
  margin-bottom: 1rem;
}

.g6f1-mb-2 {
  margin-bottom: 2rem;
}

.g6f1-mb-3 {
  margin-bottom: 3rem;
}

.g6f1-mt-1 {
  margin-top: 1rem;
}

.g6f1-mt-2 {
  margin-top: 2rem;
}

.g6f1-mt-3 {
  margin-top: 3rem;
}

.g6f1-hidden {
  display: none;
}

.g6f1-visible {
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  .g6f1-main {
    padding-bottom: 8rem; /* Space for bottom nav */
  }

  .g6f1-carousel {
    height: 180px;
  }

  .g6f1-game-showcase {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.8rem;
  }

  .g6f1-game-image {
    height: 70px;
  }

  .g6f1-h1 {
    font-size: 2.4rem;
  }

  .g6f1-h2 {
    font-size: 2rem;
  }

  .g6f1-h3 {
    font-size: 1.8rem;
  }

  .g6f1-text {
    font-size: 1.4rem;
  }

  .g6f1-card {
    padding: 1.5rem;
  }

  .g6f1-grid-2,
  .g6f1-grid-3,
  .g6f1-grid-4,
  .g6f1-grid-5 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .g6f1-bottom-nav {
    display: none;
  }

  .g6f1-wrapper {
    padding-bottom: 0;
  }

  .g6f1-main {
    padding-bottom: 0;
  }

  .g6f1-footer {
    padding-bottom: 3rem;
  }

  .g6f1-nav-actions .g6f1-btn {
    display: inline-flex;
  }
}

/* Animation keyframes */
@keyframes g6f1-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes g6f1-slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes g6f1-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation classes */
.g6f1-fade-in {
  animation: g6f1-fadeIn 0.6s ease-out;
}

.g6f1-slide-in-right {
  animation: g6f1-slideInRight 0.3s ease-out;
}

.g6f1-pulse {
  animation: g6f1-pulse 2s infinite;
}

/* Loading states */
.g6f1-loading {
  position: relative;
  overflow: hidden;
}

.g6f1-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.g6f1-btn:focus,
.g6f1-menu-link:focus,
.g6f1-bottom-nav-item:focus {
  outline: 2px solid var(--g6f1-secondary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --g6f1-shadow: rgba(0, 0, 0, 0.3);
    --g6f1-shadow-hover: rgba(0, 0, 0, 0.5);
  }
}