/**
 * JL1 Club Theme CSS
 * Mobile-first responsive design with prefix v5a6-
 * Color scheme: #FAF0E6 | #212F3D | #8B7355 | #F5DEB3
 */

/* CSS Variables */
:root {
  --v5a6-primary: #8B7355;
  --v5a6-secondary: #F5DEB3;
  --v5a6-dark: #212F3D;
  --v5a6-light: #FAF0E6;
  --v5a6-accent: #D4A574;
  --v5a6-success: #28a745;
  --v5a6-warning: #ffc107;
  --v5a6-danger: #dc3545;
  --v5a6-shadow: rgba(33, 47, 61, 0.1);
  --v5a6-radius: 0.5rem;
  --v5a6-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v5a6-dark);
  background-color: var(--v5a6-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.v5a6-h1, .v5a6-h2, .v5a6-h3, .v5a6-h4, .v5a6-h5, .v5a6-h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--v5a6-dark);
}

.v5a6-h1 { font-size: 2.8rem; }
.v5a6-h2 { font-size: 2.4rem; }
.v5a6-h3 { font-size: 2rem; }
.v5a6-h4 { font-size: 1.8rem; }
.v5a6-h5 { font-size: 1.6rem; }
.v5a6-h6 { font-size: 1.4rem; }

.v5a6-text-center { text-align: center; }
.v5a6-text-left { text-align: left; }
.v5a6-text-right { text-align: right; }

/* Layout Components */
.v5a6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v5a6-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v5a6-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.v5a6-grid {
  display: grid;
  gap: 1.5rem;
}

.v5a6-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v5a6-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v5a6-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox Utilities */
.v5a6-flex {
  display: flex;
}

.v5a6-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v5a6-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v5a6-flex-column {
  flex-direction: column;
}

/* Header */
.v5a6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v5a6-dark) 0%, #2c3e50 100%);
  box-shadow: 0 2px 10px var(--v5a6-shadow);
  backdrop-filter: blur(10px);
}

.v5a6-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.5rem;
}

.v5a6-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--v5a6-light);
  font-weight: 700;
  font-size: 2rem;
}

.v5a6-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.v5a6-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.v5a6-btn-header {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--v5a6-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v5a6-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
}

.v5a6-btn-register {
  background: linear-gradient(135deg, var(--v5a6-primary) 0%, var(--v5a6-accent) 100%);
  color: white;
}

.v5a6-btn-login {
  background: transparent;
  color: var(--v5a6-light);
  border: 1px solid var(--v5a6-light);
}

.v5a6-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Burger Menu */
.v5a6-burger {
  display: flex;
  flex-direction: column;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  position: relative;
}

.v5a6-burger-line {
  width: 100%;
  height: 2px;
  background: var(--v5a6-light);
  margin: 2px 0;
  transition: var(--v5a6-transition);
}

.v5a6-burger.v5a6-active .v5a6-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.v5a6-burger.v5a6-active .v5a6-burger-line:nth-child(2) {
  opacity: 0;
}

.v5a6-burger.v5a6-active .v5a6-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.v5a6-mobile-menu {
  position: fixed;
  top: 6rem;
  left: -100%;
  width: 100%;
  height: calc(100vh - 6rem);
  background: var(--v5a6-dark);
  transition: var(--v5a6-transition);
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
}

.v5a6-mobile-menu.v5a6-active {
  left: 0;
}

.v5a6-menu-overlay {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--v5a6-transition);
  z-index: 998;
}

.v5a6-menu-overlay.v5a6-active {
  opacity: 1;
  visibility: visible;
}

.v5a6-nav-list {
  list-style: none;
  padding: 0;
}

.v5a6-nav-item {
  margin-bottom: 1rem;
}

.v5a6-nav-link {
  display: block;
  padding: 1.5rem 1rem;
  color: var(--v5a6-light);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--v5a6-radius);
  transition: var(--v5a6-transition);
}

.v5a6-nav-link:hover,
.v5a6-nav-link.v5a6-active {
  background: var(--v5a6-primary);
  color: white;
}

/* Carousel */
.v5a6-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  margin-bottom: 2rem;
  border-radius: var(--v5a6-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--v5a6-shadow);
}

.v5a6-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
}

.v5a6-slide.v5a6-active {
  display: block;
}

.v5a6-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v5a6-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.v5a6-carousel-btn {
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--v5a6-transition);
}

.v5a6-carousel-btn:hover {
  background: white;
  transform: scale(1.1);
}

/* Game Sections */
.v5a6-section {
  margin-bottom: 3rem;
}

.v5a6-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v5a6-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.v5a6-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--v5a6-primary), var(--v5a6-accent));
  border-radius: 2px;
}

.v5a6-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v5a6-game-item {
  background: white;
  border-radius: var(--v5a6-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--v5a6-shadow);
  transition: var(--v5a6-transition);
  cursor: pointer;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v5a6-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.v5a6-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.v5a6-game-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--v5a6-dark);
  line-height: 1.2;
  text-align: center;
}

/* Buttons */
.v5a6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: var(--v5a6-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v5a6-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.v5a6-btn-primary {
  background: linear-gradient(135deg, var(--v5a6-primary) 0%, var(--v5a6-accent) 100%);
  color: white;
}

.v5a6-btn-secondary {
  background: var(--v5a6-secondary);
  color: var(--v5a6-dark);
}

.v5a6-btn-outline {
  background: transparent;
  border: 2px solid var(--v5a6-primary);
  color: var(--v5a6-primary);
}

.v5a6-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.v5a6-btn-block {
  width: 100%;
  margin-bottom: 1rem;
}

/* Cards */
.v5a6-card {
  background: white;
  border-radius: var(--v5a6-radius);
  padding: 2rem;
  box-shadow: 0 2px 8px var(--v5a6-shadow);
  margin-bottom: 2rem;
}

.v5a6-card-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.v5a6-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v5a6-dark);
  margin-bottom: 0.5rem;
}

.v5a6-card-body {
  line-height: 1.6;
}

/* Bottom Navigation */
.v5a6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v5a6-dark) 0%, #2c3e50 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--v5a6-shadow);
  height: 6.4rem;
}

.v5a6-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v5a6-light);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem;
  border-radius: 0.8rem;
  transition: var(--v5a6-transition);
  min-width: 6rem;
  min-height: 4.8rem;
  justify-content: center;
}

.v5a6-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.v5a6-bottom-nav-item:hover,
.v5a6-bottom-nav-item.v5a6-active {
  background: var(--v5a6-primary);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.v5a6-footer {
  background: var(--v5a6-dark);
  color: var(--v5a6-light);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.v5a6-footer-content {
  padding: 0 1.5rem;
}

.v5a6-footer-section {
  margin-bottom: 2rem;
}

.v5a6-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v5a6-accent);
}

.v5a6-footer-links {
  list-style: none;
  padding: 0;
}

.v5a6-footer-links li {
  margin-bottom: 0.8rem;
}

.v5a6-footer-links a {
  color: var(--v5a6-light);
  text-decoration: none;
  transition: var(--v5a6-transition);
}

.v5a6-footer-links a:hover {
  color: var(--v5a6-accent);
}

.v5a6-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v5a6-partner-logo {
  width: 100%;
  height: 3rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--v5a6-transition);
}

.v5a6-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v5a6-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: #999;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Utilities */
.v5a6-mt-1 { margin-top: 1rem; }
.v5a6-mb-1 { margin-bottom: 1rem; }
.v5a6-mt-2 { margin-top: 2rem; }
.v5a6-mb-2 { margin-bottom: 2rem; }
.v5a6-pt-1 { padding-top: 1rem; }
.v5a6-pb-1 { padding-bottom: 1rem; }

.v5a6-text-primary { color: var(--v5a6-primary); }
.v5a6-text-secondary { color: var(--v5a6-secondary); }
.v5a6-text-muted { color: #666; }

.v5a6-bg-primary { background: var(--v5a6-primary); }
.v5a6-bg-light { background: var(--v5a6-light); }

/* Responsive Design */
@media (min-width: 400px) {
  .v5a6-container {
    max-width: 400px;
  }
  
  .v5a6-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .v5a6-container {
    max-width: 430px;
  }
  
  .v5a6-burger {
    display: none;
  }
  
  .v5a6-mobile-menu {
    position: static;
    left: 0;
    height: auto;
    background: transparent;
    padding: 0;
    display: flex;
  }
  
  .v5a6-nav-list {
    display: flex;
    gap: 2rem;
  }
  
  .v5a6-nav-item {
    margin-bottom: 0;
  }
  
  .v5a6-nav-link {
    padding: 1rem 1.5rem;
    color: var(--v5a6-light);
  }
  
  .v5a6-bottom-nav {
    display: none;
  }
  
  .v5a6-main {
    padding-bottom: 2rem;
  }
}

/* Animations */
@keyframes v5a6-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v5a6-slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes v5a6-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.v5a6-animate-fade {
  animation: v5a6-fadeIn 0.6s ease-out;
}

.v5a6-animate-slide {
  animation: v5a6-slideIn 0.4s ease-out;
}

.v5a6-animate-pulse {
  animation: v5a6-pulse 2s infinite;
}

/* Loading States */
.v5a6-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--v5a6-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.v5a6-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--v5a6-primary);
  border-radius: 50%;
  animation: v5a6-spin 1s linear infinite;
}

@keyframes v5a6-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}