/**
 * JL111 Layout Styles
 * Color Palette: #FF8C00 | #0A0A0A | #EEE8AA | #FFB347
 * All classes use va91- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --va91-primary: #FF8C00;
  --va91-secondary: #FFB347;
  --va91-accent: #EEE8AA;
  --va91-dark: #0A0A0A;
  --va91-darker: #000000;
  --va91-light: #FFFFFF;
  --va91-gray: #333333;
  --va91-gray-light: #666666;
}

/* 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, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--va91-accent);
  background-color: var(--va91-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.va91-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.va91-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Header Styles */
.va91-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--va91-darker) 0%, var(--va91-dark) 100%);
  box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--va91-primary);
}

.va91-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.va91-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--va91-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.va91-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--va91-primary);
}

.va91-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.va91-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--va91-primary) 0%, var(--va91-secondary) 100%);
  color: var(--va91-light);
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
  text-decoration: none;
}

.va91-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.6);
}

.va91-btn:active {
  transform: translateY(0);
}

.va91-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--va91-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.va91-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--va91-dark);
  border-bottom: 2px solid var(--va91-primary);
  z-index: 9999;
  padding: 1rem 0;
  animation: slideDown 0.3s ease;
}

.va91-mobile-menu.va91-menu-open {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.va91-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--va91-accent);
  text-decoration: none;
  font-size: 1.4rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.va91-menu-link:hover {
  background: rgba(255, 140, 0, 0.1);
  border-left-color: var(--va91-primary);
  color: var(--va91-primary);
}

/* Main Content */
.va91-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

@media (max-width: 768px) {
  .va91-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .va91-main {
    padding-bottom: 20px;
  }
}

/* Hero Carousel */
.va91-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.va91-carousel-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.va91-carousel-slide:hover {
  transform: scale(1.02);
}

/* Section Styles */
.va91-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 140, 0, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.va91-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--va91-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.va91-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--va91-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Game Grid */
.va91-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.va91-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.va91-game-item:hover {
  transform: scale(1.05);
}

.va91-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--va91-primary);
  background: var(--va91-darker);
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.va91-game-name {
  font-size: 1rem;
  color: var(--va91-accent);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Styles */
.va91-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.va91-card:hover {
  border-color: var(--va91-primary);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.va91-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--va91-primary);
  margin-bottom: 1rem;
}

.va91-card-content {
  font-size: 1.4rem;
  color: var(--va91-accent);
  line-height: 1.6;
}

/* Text Link Styles */
.va91-link {
  color: var(--va91-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.va91-link:hover {
  color: var(--va91-secondary);
  text-decoration: underline;
}

/* Footer Styles */
.va91-footer {
  background: linear-gradient(135deg, var(--va91-darker) 0%, var(--va91-dark) 100%);
  border-top: 2px solid var(--va91-primary);
  padding: 3rem 0;
  margin-top: 4rem;
}

.va91-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.va91-footer-link {
  color: var(--va91-accent);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--va91-primary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.va91-footer-link:hover {
  background: var(--va91-primary);
  color: var(--va91-light);
}

.va91-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.va91-partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.va91-partner-logo:hover {
  opacity: 1;
}

.va91-copyright {
  text-align: center;
  color: var(--va91-gray-light);
  font-size: 1.2rem;
  padding: 1rem;
}

/* Mobile Bottom Navigation */
.va91-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--va91-dark) 0%, var(--va91-darker) 100%);
  border-top: 2px solid var(--va91-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(255, 140, 0, 0.3);
}

.va91-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--va91-accent);
  transition: all 0.3s ease;
  position: relative;
}

.va91-nav-item:hover,
.va91-nav-item.va91-active {
  color: var(--va91-primary);
  transform: scale(1.1);
}

.va91-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--va91-primary);
  transition: width 0.3s ease;
}

.va91-nav-item:hover::before,
.va91-nav-item.va91-active::before {
  width: 80%;
}

.va91-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.va91-nav-text {
  font-size: 11px;
  font-weight: 500;
}

/* Desktop: Hide bottom navigation */
@media (min-width: 769px) {
  .va91-bottom-nav {
    display: none;
  }

  .va91-main {
    padding-bottom: 20px;
  }
}

/* Mobile: Show bottom navigation */
@media (max-width: 768px) {
  .va91-menu-button {
    display: block;
  }

  .va91-header-buttons {
    display: none;
  }

  .va91-bottom-nav {
    display: flex;
  }
}

/* Utility Classes */
.va91-text-center {
  text-align: center;
}

.va91-mb-1 { margin-bottom: 1rem; }
.va91-mb-2 { margin-bottom: 2rem; }
.va91-mb-3 { margin-bottom: 3rem; }

.va91-mt-1 { margin-top: 1rem; }
.va91-mt-2 { margin-top: 2rem; }
.va91-mt-3 { margin-top: 3rem; }

.va91-hidden {
  display: none;
}
