/**
 * JL111 Website Design Styles
 * Mobile-first responsive design with color palette: #FFDFBA, #880E4F, #FFE135, #CD853F, #1A1A2E
 */

/* CSS Variables */
:root {
  --g922-primary: #880E4F;
  --g922-secondary: #CD853F;
  --g922-accent: #FFE135;
  --g922-light: #FFDFBA;
  --g922-dark: #1A1A2E;
  --g922-text: #FFDFBA;
  --g922-text-muted: #CD853F;
  --g922-bg: #1A1A2E;
  --g922-card-bg: #2a2a3e;
  --g922-border: #CD853F;
  --g922-success: #4CAF50;
  --g922-warning: #FF9800;
  --g922-danger: #F44336;
}

/* Reset & 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g922-text);
  background-color: var(--g922-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g922-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header Styles */
.g922-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g922-dark);
  border-bottom: 2px solid var(--g922-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.g922-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g922-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g922-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.g922-logo img {
  width: 28px;
  height: 28px;
}

.g922-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g922-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.g922-btn-primary {
  background: linear-gradient(135deg, var(--g922-primary), #a3125e);
  color: var(--g922-light);
}

.g922-btn-secondary {
  background: linear-gradient(135deg, var(--g922-secondary), #da8f4f);
  color: var(--g922-dark);
}

.g922-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 14, 79, 0.4);
}

.g922-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--g922-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .g922-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.g922-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--g922-dark);
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.g922-mobile-menu.g922-menu-open {
  left: 0;
}

.g922-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--g922-border);
}

.g922-menu-close {
  background: none;
  border: none;
  color: var(--g922-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.g922-menu-nav {
  padding: 1rem;
}

.g922-menu-link {
  display: block;
  padding: 1rem;
  color: var(--g922-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 133, 63, 0.2);
  transition: all 0.3s ease;
}

.g922-menu-link:hover {
  background-color: var(--g922-primary);
  padding-left: 1.5rem;
}

.g922-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g922-mobile-menu.g922-menu-open + .g922-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.g922-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .g922-main {
    padding-bottom: 2rem;
  }
}

/* Hero Carousel */
.g922-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.g922-carousel-slide {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.g922-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.g922-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--g922-card-bg);
  border-radius: 8px;
  border: 1px solid var(--g922-border);
}

.g922-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g922-accent);
  margin-bottom: 1rem;
  text-align: center;
}

.g922-section-title h2 {
  font-size: inherit;
  color: inherit;
}

/* Game Grid */
.g922-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.g922-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--g922-text);
}

.g922-game-item:hover {
  transform: scale(1.05);
}

.g922-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--g922-primary), var(--g922-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.g922-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g922-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Styles */
.g922-card {
  background-color: var(--g922-card-bg);
  border: 1px solid var(--g922-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.g922-card-title {
  font-size: 1.8rem;
  color: var(--g922-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Link Styles */
.g922-link {
  color: var(--g922-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.g922-link:hover {
  color: var(--g922-light);
  text-decoration: underline;
}

/* Button Styles */
.g922-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--g922-primary), #a3125e);
  color: var(--g922-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
}

.g922-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 14, 79, 0.5);
}

/* Footer */
.g922-footer {
  background-color: var(--g922-dark);
  border-top: 2px solid var(--g922-primary);
  padding: 2rem 0;
  margin-top: 2rem;
}

.g922-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g922-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g922-footer-link {
  color: var(--g922-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.g922-footer-link:hover {
  color: var(--g922-accent);
}

.g922-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g922-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.g922-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.g922-copyright {
  text-align: center;
  color: var(--g922-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(205, 133, 63, 0.3);
}

/* Bottom Navigation (Mobile) */
.g922-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g922-dark) 0%, #0f0f1f 100%);
  border-top: 2px solid var(--g922-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .g922-bottom-nav {
    display: none;
  }
}

.g922-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g922-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.g922-nav-item:hover,
.g922-nav-item.g922-active {
  color: var(--g922-accent);
  transform: scale(1.1);
}

.g922-nav-item i {
  font-size: 24px;
  margin-bottom: 2px;
}

.g922-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.g922-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--g922-accent);
  transition: width 0.3s ease;
}

.g922-nav-item:hover::before,
.g922-nav-item.g922-active::before {
  width: 80%;
}

/* Utility Classes */
.g922-text-center {
  text-align: center;
}

.g922-mt-1 {
  margin-top: 1rem;
}

.g922-mb-1 {
  margin-bottom: 1rem;
}

.g922-mb-2 {
  margin-bottom: 2rem;
}

.g922-p-1 {
  padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .g922-container {
    padding: 0 0.8rem;
  }

  .g922-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .g922-section {
    padding: 1rem;
  }
}

/* Animation */
@keyframes g922-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g922-animate {
  animation: g922-fadeIn 0.5s ease;
}
