/**
 * JLJL33 Layout Styles
 * All classes use prefix: g8a4-
 * Color palette: #FF91A4 | #FA8072 | #FFFFBA | #141414
 */

/* CSS Variables */
:root {
  --g8a4-pink: #FF91A4;
  --g8a4-coral: #FA8072;
  --g8a4-yellow: #FFFFBA;
  --g8a4-dark: #141414;
  --g8a4-bg-light: #1a1a1a;
  --g8a4-bg-medium: #2a2a2a;
  --g8a4-text-light: #ffffff;
  --g8a4-text-gray: #b0b0b0;
  --vh: 1vh;
}

/* 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, Oxygen, Ubuntu, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  background-color: var(--g8a4-dark);
  color: var(--g8a4-text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.g8a4-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.g8a4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g8a4-dark) 0%, #1f1f1f 100%);
  border-bottom: 2px solid var(--g8a4-pink);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 145, 164, 0.3);
}

.g8a4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g8a4-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g8a4-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g8a4-logo img {
  width: 32px;
  height: 32px;
}

.g8a4-header-actions {
  display: flex;
  gap: 0.5rem;
}

.g8a4-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
}

.g8a4-btn-register {
  background: linear-gradient(135deg, var(--g8a4-pink) 0%, var(--g8a4-coral) 100%);
  color: var(--g8a4-dark);
}

.g8a4-btn-login {
  background: transparent;
  color: var(--g8a4-yellow);
  border: 2px solid var(--g8a4-yellow);
}

.g8a4-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 145, 164, 0.4);
}

.g8a4-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.g8a4-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--g8a4-pink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g8a4-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--g8a4-bg-medium);
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.g8a4-mobile-menu.g8a4-menu-open {
  transform: translateX(0);
}

.g8a4-menu-link {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--g8a4-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.g8a4-menu-link:hover {
  background: var(--g8a4-pink);
  color: var(--g8a4-dark);
}

.g8a4-menu-link:last-child {
  border-bottom: none;
}

/* Main Content */
.g8a4-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.g8a4-carousel {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 145, 164, 0.3);
}

.g8a4-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g8a4-carousel-slide {
  min-width: 100%;
  position: relative;
}

.g8a4-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.g8a4-carousel-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Section Titles */
.g8a4-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g8a4-pink);
  margin: 2rem 0 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.g8a4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.g8a4-game-item {
  background: var(--g8a4-bg-medium);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.g8a4-game-item:hover {
  border-color: var(--g8a4-pink);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 145, 164, 0.4);
}

.g8a4-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g8a4-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  color: var(--g8a4-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.g8a4-card {
  background: var(--g8a4-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 145, 164, 0.2);
}

.g8a4-card h3 {
  color: var(--g8a4-pink);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.g8a4-card p {
  color: var(--g8a4-text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.g8a4-card a {
  color: var(--g8a4-coral);
  font-weight: 600;
}

.g8a4-card a:hover {
  text-decoration: underline;
}

/* Promo Links */
.g8a4-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--g8a4-coral) 0%, var(--g8a4-pink) 100%);
  color: var(--g8a4-dark);
  font-weight: 700;
  border-radius: 25px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.g8a4-promo-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 145, 164, 0.5);
}

/* Footer */
.g8a4-footer {
  background: var(--g8a4-bg-light);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--g8a4-pink);
}

.g8a4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g8a4-footer-link {
  color: var(--g8a4-pink);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.g8a4-footer-link:hover {
  color: var(--g8a4-coral);
}

.g8a4-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.g8a4-partners img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g8a4-partners img:hover {
  opacity: 1;
}

.g8a4-copyright {
  text-align: center;
  color: var(--g8a4-text-gray);
  font-size: 1.2rem;
  padding: 1rem;
}

/* Bottom Navigation */
.g8a4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g8a4-bg-medium) 0%, var(--g8a4-dark) 100%);
  border-top: 2px solid var(--g8a4-pink);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(255, 145, 164, 0.3);
}

.g8a4-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  color: var(--g8a4-text-gray);
}

.g8a4-nav-item i,
.g8a4-nav-item span.icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
}

.g8a4-nav-item span {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.g8a4-nav-item:hover,
.g8a4-nav-item.active {
  color: var(--g8a4-pink);
  transform: scale(1.1);
}

.g8a4-nav-item:hover i,
.g8a4-nav-item.active i {
  color: var(--g8a4-pink);
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .g8a4-bottom-nav {
    display: none;
  }

  .g8a4-main {
    padding-bottom: 2rem;
  }

  .g8a4-menu-toggle {
    display: none;
  }

  .g8a4-mobile-menu {
    position: static;
    transform: none;
    background: transparent;
    display: flex;
    gap: 1rem;
    padding: 0;
  }

  .g8a4-menu-link {
    border-bottom: none;
  }
}

/* Touch Device Optimizations */
.g8a4-touch-device .g8a4-btn,
.g8a4-touch-device .g8a4-nav-item {
  min-height: 44px;
  min-width: 44px;
}

/* Animation Classes */
@keyframes g8a4-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.g8a4-pulse {
  animation: g8a4-pulse 2s infinite;
}

/* Utility Classes */
.g8a4-text-center {
  text-align: center;
}

.g8a4-mt-1 { margin-top: 1rem; }
.g8a4-mt-2 { margin-top: 2rem; }
.g8a4-mb-1 { margin-bottom: 1rem; }
.g8a4-mb-2 { margin-bottom: 2rem; }

.g8a4-text-pink { color: var(--g8a4-pink); }
.g8a4-text-coral { color: var(--g8a4-coral); }
.g8a4-text-yellow { color: var(--g8a4-yellow); }
