/**
 * JLace Theme Stylesheet
 * Mobile-first responsive design with v963 prefix
 * Color palette: #A0522D | #1E1E1E | #FFB6C1 | #F08080 | #FF0000
 */

/* Root Variables */
:root {
  --v963-primary: #A0522D;
  --v963-secondary: #1E1E1E;
  --v963-accent1: #FFB6C1;
  --v963-accent2: #F08080;
  --v963-highlight: #FF0000;
  --v963-bg-dark: #0D0D0D;
  --v963-bg-card: #1A1A1A;
  --v963-bg-light: #2A2A2A;
  --v963-text-main: #FFFFFF;
  --v963-text-muted: #CCCCCC;
  --v963-border: #3A3A3A;
  --v963-shadow: rgba(0, 0, 0, 0.5);
  --v963-gradient: linear-gradient(135deg, #A0522D 0%, #FFB6C1 100%);
}

/* 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(--v963-text-main);
  background-color: var(--v963-bg-dark);
  min-height: 100vh;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.v963-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Navigation */
.v963-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v963-secondary) 0%, var(--v963-bg-card) 100%);
  border-bottom: 2px solid var(--v963-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--v963-shadow);
}

.v963-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.v963-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v963-text-main);
}

.v963-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v963-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v963-accent1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v963-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v963-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v963-btn-register {
  background: var(--v963-gradient);
  color: var(--v963-text-main);
  box-shadow: 0 2px 8px rgba(160, 82, 45, 0.4);
}

.v963-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160, 82, 45, 0.6);
}

.v963-btn-login {
  background: var(--v963-bg-light);
  color: var(--v963-accent1);
  border: 2px solid var(--v963-primary);
}

.v963-btn-login:hover {
  background: var(--v963-primary);
  color: var(--v963-text-main);
}

.v963-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--v963-text-main);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .v963-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.v963-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--v963-bg-card);
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px var(--v963-shadow);
  overflow-y: auto;
}

.v963-mobile-menu.v963-menu-open {
  left: 0;
}

.v963-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.v963-mobile-menu.v963-menu-open + .v963-menu-overlay {
  display: block;
}

.v963-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--v963-border);
}

.v963-menu-close {
  background: none;
  border: none;
  color: var(--v963-text-main);
  font-size: 2rem;
  cursor: pointer;
}

.v963-menu-nav {
  padding: 1rem 0;
}

.v963-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v963-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.v963-menu-nav a:hover {
  background: var(--v963-bg-light);
  color: var(--v963-text-main);
  border-left-color: var(--v963-primary);
}

/* Main Content */
main {
  padding-top: 70px;
  min-height: calc(100vh - 200px);
}

/* Carousel */
.v963-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--v963-shadow);
}

.v963-carousel-slide {
  display: none;
  width: 100%;
}

.v963-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v963-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.v963-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v963-carousel-indicator.v963-active {
  background: var(--v963-primary);
  transform: scale(1.2);
}

/* Section Styles */
.v963-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--v963-border);
}

.v963-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v963-accent1);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v963-section-title span {
  color: var(--v963-primary);
}

/* Game Grid */
.v963-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v963-game-item {
  background: var(--v963-bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.v963-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--v963-primary);
  box-shadow: 0 4px 12px var(--v963-shadow);
}

.v963-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v963-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  color: var(--v963-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Component */
.v963-card {
  background: var(--v963-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--v963-border);
  box-shadow: 0 2px 8px var(--v963-shadow);
}

.v963-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v963-accent1);
  margin-bottom: 1rem;
}

.v963-card-content {
  color: var(--v963-text-muted);
  line-height: 1.6;
}

/* Promotional Link */
.v963-promo-link {
  color: var(--v963-accent2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--v963-accent2);
  transition: all 0.3s ease;
}

.v963-promo-link:hover {
  color: var(--v963-primary);
  border-bottom-color: var(--v963-primary);
}

/* Bottom Navigation */
.v963-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v963-bg-card) 0%, var(--v963-secondary) 100%);
  border-top: 2px solid var(--v963-primary);
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px var(--v963-shadow);
}

.v963-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.v963-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--v963-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v963-nav-item:hover {
  color: var(--v963-accent1);
  transform: scale(1.1);
}

.v963-nav-item.v963-active {
  color: var(--v963-accent1);
}

.v963-nav-item i {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.v963-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 769px) {
  .v963-bottom-nav {
    display: none;
  }
}

/* Footer */
.v963-footer {
  background: var(--v963-bg-card);
  border-top: 2px solid var(--v963-border);
  padding: 2rem 0 6rem;
  margin-top: 3rem;
}

@media (min-width: 769px) {
  .v963-footer {
    padding-bottom: 2rem;
  }
}

.v963-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v963-footer-links a {
  color: var(--v963-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v963-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v963-footer-links a:hover {
  background: var(--v963-primary);
  color: var(--v963-text-main);
  border-color: var(--v963-primary);
}

.v963-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v963-partners img {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.v963-partners img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v963-copyright {
  text-align: center;
  color: var(--v963-text-muted);
  font-size: 1.2rem;
  padding: 1rem;
}

/* Utility Classes */
.v963-text-center {
  text-align: center;
}

.v963-mt-1 {
  margin-top: 1rem;
}

.v963-mb-1 {
  margin-bottom: 1rem;
}

.v963-mt-2 {
  margin-top: 2rem;
}

.v963-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .v963-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .v963-game-name {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes v963-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v963-fade-in {
  animation: v963-fadeIn 0.5s ease forwards;
}
