/**
 * JL78 Layout Styles
 * All classes use v23a- prefix for namespace isolation
 * Color Palette: #333333 | #FFDFBA | #CD853F | #AD1457
 */

:root {
  --v23a-primary: #AD1457;
  --v23a-secondary: #CD853F;
  --v23a-accent: #FFDFBA;
  --v23a-dark: #333333;
  --v23a-light: #FFDFBA;
  --v23a-white: #ffffff;
  --v23a-gray: #666666;
  --v23a-border: #CD853F;
}

* {
  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, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v23a-light);
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.v23a-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.v23a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #AD1457 0%, #8B1040 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.v23a-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v23a-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v23a-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.v23a-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v23a-header-btns {
  display: flex;
  gap: 0.5rem;
}

.v23a-btn-header {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.v23a-btn-register {
  background: var(--v23a-accent);
  color: var(--v23a-primary);
}

.v23a-btn-login {
  background: transparent;
  color: var(--v23a-white);
  border: 2px solid var(--v23a-accent);
}

.v23a-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--v23a-white);
  font-size: 2rem;
}

/* Mobile Menu */
.v23a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v23a-overlay-show {
  opacity: 1;
  visibility: visible;
}

.v23a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #333333 0%, #1a1a1a 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
}

.v23a-menu-open {
  right: 0;
}

.v23a-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--v23a-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v23a-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.v23a-menu-link {
  display: block;
  padding: 1rem;
  color: var(--v23a-light);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(205, 133, 63, 0.2);
  transition: all 0.3s ease;
}

.v23a-menu-link:hover {
  background: rgba(205, 133, 63, 0.1);
  color: var(--v23a-secondary);
  padding-left: 1.5rem;
}

/* Main Content */
.v23a-main {
  padding-top: 70px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .v23a-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.v23a-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.v23a-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v23a-carousel-slide {
  min-width: 100%;
}

.v23a-carousel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.v23a-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v23a-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v23a-dot-active {
  background: var(--v23a-white);
  width: 20px;
  border-radius: 4px;
}

/* Content Sections */
.v23a-section {
  background: rgba(51, 51, 51, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(205, 133, 63, 0.3);
}

.v23a-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v23a-accent);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v23a-title-large {
  font-size: 2.5rem;
  color: var(--v23a-secondary);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Game Grid */
.v23a-game-category {
  margin-bottom: 2rem;
}

.v23a-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v23a-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v23a-primary);
}

.v23a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v23a-game-item {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(205, 133, 63, 0.2);
}

.v23a-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(173, 20, 87, 0.3);
  border-color: var(--v23a-primary);
}

.v23a-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v23a-game-name {
  padding: 0.5rem 0.3rem;
  font-size: 1rem;
  color: var(--v23a-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Buttons */
.v23a-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v23a-btn-primary {
  background: linear-gradient(135deg, var(--v23a-primary) 0%, var(--v23a-secondary) 100%);
  color: var(--v23a-white);
  box-shadow: 0 4px 15px rgba(173, 20, 87, 0.4);
}

.v23a-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(173, 20, 87, 0.6);
}

.v23a-btn-secondary {
  background: var(--v23a-accent);
  color: var(--v23a-primary);
}

.v23a-btn-block {
  display: block;
  width: 100%;
}

/* Footer */
.v23a-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 3px solid var(--v23a-primary);
}

.v23a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v23a-footer-link {
  color: var(--v23a-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--v23a-secondary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v23a-footer-link:hover {
  background: var(--v23a-primary);
  border-color: var(--v23a-primary);
}

.v23a-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v23a-partner-img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v23a-partner-img:hover {
  opacity: 1;
}

.v23a-copyright {
  text-align: center;
  color: var(--v23a-gray);
  font-size: 1.1rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v23a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #AD1457 0%, #8B1040 100%);
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.v23a-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.v23a-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--v23a-light);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.v23a-nav-item:hover {
  transform: scale(1.1);
}

.v23a-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v23a-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.v23a-nav-active {
  color: var(--v23a-accent);
}

.v23a-nav-active .v23a-nav-icon {
  transform: scale(1.2);
}

/* Responsive */
@media (min-width: 769px) {
  .v23a-bottom-nav {
    display: none;
  }

  .v23a-main {
    padding-top: 80px;
  }
}

/* Utility Classes */
.v23a-text-center {
  text-align: center;
}

.v23a-mb-1 {
  margin-bottom: 1rem;
}

.v23a-mb-2 {
  margin-bottom: 2rem;
}

.v23a-mt-1 {
  margin-top: 1rem;
}

.v23a-mt-2 {
  margin-top: 2rem;
}
