/**
 * jljl33 - Main Stylesheet
 * Class prefix: v398- for namespace isolation
 * Color Palette: #BDC3C7 | #696969 | #8B0000 | #2E4057
 */

/* CSS Variables */
:root {
  --v398-primary: #8B0000;
  --v398-primary-dark: #6B0000;
  --v398-secondary: #696969;
  --v398-accent: #BDC3C7;
  --v398-bg: #2E4057;
  --v398-bg-light: #3A5066;
  --v398-bg-card: #445566;
  --v398-text: #F5F5F5;
  --v398-text-muted: #B0B0B0;
  --v398-text-dark: #D0D0D0;
  --v398-border: #696969;
  --v398-success: #28a745;
  --v398-warning: #ffc107;
  --v398-danger: #dc3545;
  --v398-shadow: rgba(0, 0, 0, 0.4);
  --v398-gradient: linear-gradient(135deg, #8B0000 0%, #696969 100%);
}

/* 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(--v398-text);
  background-color: var(--v398-bg);
  min-height: 100vh;
}

/* Container */
.v398-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Header */
.v398-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--v398-bg);
  border-bottom: 2px solid var(--v398-primary);
  z-index: 1000;
  transition: all 0.3s ease;
}

.v398-header-scrolled {
  background: rgba(46, 64, 87, 0.95);
  backdrop-filter: blur(10px);
}

.v398-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.v398-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v398-text);
}

.v398-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v398-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v398-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v398-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.v398-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.v398-btn-primary {
  background: var(--v398-gradient);
  color: var(--v398-text);
  box-shadow: 0 2px 8px var(--v398-shadow);
}

.v398-btn-secondary {
  background: transparent;
  color: var(--v398-primary);
  border: 2px solid var(--v398-primary);
}

.v398-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v398-shadow);
}

.v398-btn:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.v398-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.v398-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--v398-primary);
  transition: all 0.3s ease;
}

.v398-menu-toggle:hover span {
  background: var(--v398-text);
}

/* Mobile Menu */
.v398-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--v398-bg);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.v398-menu-open {
  transform: translateX(0);
}

.v398-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v398-menu-item {
  display: block;
  padding: 1rem;
  color: var(--v398-text);
  text-decoration: none;
  border-radius: 8px;
  background: var(--v398-bg-light);
  transition: all 0.3s ease;
  font-size: 1.4rem;
  border: 1px solid transparent;
}

.v398-menu-item:hover {
  background: var(--v398-bg-card);
  border-color: var(--v398-primary);
  transform: translateX(4px);
}

/* Main Content */
.v398-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Hero Carousel */
.v398-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--v398-shadow);
}

.v398-carousel-item {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
}

/* Sections */
.v398-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--v398-bg-light);
  border-radius: 12px;
  border: 1px solid var(--v398-secondary);
}

.v398-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v398-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v398-section-title i {
  font-size: 1.6rem;
}

/* Game Grid */
.v398-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v398-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v398-game-item:hover {
  transform: scale(1.05);
}

.v398-game-icon {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--v398-secondary);
  transition: all 0.3s ease;
}

.v398-game-item:hover .v398-game-icon {
  border-color: var(--v398-primary);
  box-shadow: 0 0 12px var(--v398-primary);
}

.v398-game-name {
  font-size: 0.9rem;
  color: var(--v398-text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Cards */
.v398-card {
  background: var(--v398-bg-card);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v398-secondary);
}

.v398-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v398-primary);
  margin-bottom: 1rem;
}

.v398-card-content {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--v398-text-dark);
}

/* Links */
.v398-link {
  color: var(--v398-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v398-link:hover {
  color: var(--v398-text);
  text-decoration: underline;
}

/* Lists */
.v398-list {
  list-style: none;
  padding: 0;
}

.v398-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v398-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v398-list-item:last-child {
  border-bottom: none;
}

.v398-list-icon {
  color: var(--v398-primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.v398-list-content {
  flex: 1;
}

/* FAQ */
.v398-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--v398-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.v398-faq-question {
  padding: 1rem;
  background: var(--v398-bg-card);
  font-weight: 600;
  color: var(--v398-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v398-faq-answer {
  padding: 1rem;
  background: var(--v398-bg-light);
  color: var(--v398-text-dark);
  line-height: 1.6;
}

/* Bottom Navigation */
.v398-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v398-bg) 0%, #233040 100%);
  border-top: 2px solid var(--v398-primary);
  z-index: 1000;
  height: 62px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px var(--v398-shadow);
}

.v398-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--v398-text-muted);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.v398-nav-item i {
  font-size: 24px;
  transition: all 0.3s ease;
}

.v398-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.v398-nav-item:hover {
  color: var(--v398-primary);
}

.v398-nav-item:active {
  transform: scale(0.95);
}

.v398-nav-active {
  color: var(--v398-primary) !important;
}

.v398-nav-active i {
  transform: scale(1.1);
}

.v398-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--v398-primary);
  border-radius: 0 0 3px 3px;
}

/* Footer */
.v398-footer {
  background: var(--v398-bg-light);
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 2px solid var(--v398-primary);
}

.v398-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.v398-footer-link {
  color: var(--v398-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--v398-secondary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v398-footer-link:hover {
  background: var(--v398-primary);
  color: var(--v398-text);
  transform: translateY(-2px);
}

.v398-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v398-partner-img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v398-partner-img:hover {
  opacity: 1;
}

.v398-copyright {
  text-align: center;
  color: var(--v398-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Touch Feedback */
.v398-touch-active {
  transform: scale(0.95) !important;
  opacity: 0.8;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .v398-bottom-nav {
    display: none;
  }

  .v398-main {
    padding-bottom: 2rem;
  }

  .v398-menu-toggle {
    display: none;
  }
}

/* Utilities */
.v398-text-center {
  text-align: center;
}

.v398-mt-1 {
  margin-top: 1rem;
}

.v398-mb-1 {
  margin-bottom: 1rem;
}

.v398-mb-2 {
  margin-bottom: 2rem;
}

.v398-hidden {
  display: none;
}
