/**
 * NustarGame PH - Main Stylesheet
 * All classes use prefix: v8ea-
 * Mobile-first responsive design (max-width: 430px)
 * Color Palette: #F8F8FF | #FFE135 | #1A1A2E | #5D5D5D | #CED4DA | #BDC3C7
 */

/* Root variables */
:root {
  --v8ea-primary: #FFE135;
  --v8ea-secondary: #1A1A2E;
  --v8ea-dark: #1A1A2E;
  --v8ea-light: #F8F8FF;
  --v8ea-gray: #5D5D5D;
  --v8ea-gray-light: #CED4DA;
  --v8ea-gray-lighter: #BDC3C7;
  --v8ea-text: #F8F8FF;
  --v8ea-text-dark: #1A1A2E;
  --v8ea-bg: #1A1A2E;
  --v8ea-bg-light: #2A2A3E;
  --v8ea-accent: #FFE135;
  --v8ea-success: #28a745;
  --v8ea-danger: #dc3545;
  --v8ea-warning: #ffc107;
  --v8ea-info: #17a2b8;
  font-size: 62.5%;
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v8ea-text);
  background-color: var(--v8ea-bg);
  overflow-x: hidden;
}

/* Container */
.v8ea-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v8ea-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.v8ea-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v8ea-dark) 0%, var(--v8ea-bg-light) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.v8ea-header-scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
}

.v8ea-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.v8ea-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v8ea-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v8ea-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v8ea-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v8ea-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v8ea-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v8ea-btn-primary {
  background: linear-gradient(135deg, var(--v8ea-primary) 0%, #ffd700 100%);
  color: var(--v8ea-text-dark);
  box-shadow: 0 4px 12px rgba(255, 225, 53, 0.3);
}

.v8ea-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 225, 53, 0.5);
}

.v8ea-btn-secondary {
  background: transparent;
  color: var(--v8ea-primary);
  border: 2px solid var(--v8ea-primary);
}

.v8ea-btn-secondary:hover {
  background: var(--v8ea-primary);
  color: var(--v8ea-text-dark);
}

.v8ea-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: var(--v8ea-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.v8ea-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.v8ea-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v8ea-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v8ea-dark) 0%, var(--v8ea-bg-light) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 0;
}

.v8ea-menu-open {
  right: 0;
}

.v8ea-menu-header {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255, 225, 53, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v8ea-menu-close {
  background: transparent;
  border: none;
  font-size: 2.8rem;
  color: var(--v8ea-primary);
  cursor: pointer;
  padding: 0;
}

.v8ea-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.v8ea-nav-item {
  margin: 0;
}

.v8ea-nav-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--v8ea-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.v8ea-nav-link:hover,
.v8ea-nav-active {
  background: rgba(255, 225, 53, 0.1);
  color: var(--v8ea-primary);
  border-left-color: var(--v8ea-primary);
}

/* Main Content */
.v8ea-main {
  flex: 1;
  margin-top: 6rem;
  padding-bottom: 8rem;
}

@media (min-width: 769px) {
  .v8ea-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.v8ea-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
}

.v8ea-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v8ea-carousel-slide.v8ea-active {
  opacity: 1;
}

.v8ea-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Section */
.v8ea-section {
  padding: 2rem 0;
}

.v8ea-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v8ea-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 225, 53, 0.3);
}

.v8ea-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v8ea-primary);
  margin: 1.5rem 0 1rem;
}

/* Game Grid */
.v8ea-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.v8ea-game-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.v8ea-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.v8ea-game-item:hover .v8ea-game-icon {
  border-color: var(--v8ea-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 225, 53, 0.4);
}

.v8ea-game-name {
  font-size: 1.1rem;
  color: var(--v8ea-text);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Card */
.v8ea-card {
  background: var(--v8ea-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.v8ea-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v8ea-primary);
  margin-bottom: 1rem;
}

.v8ea-card-text {
  font-size: 1.4rem;
  color: var(--v8ea-gray-light);
  line-height: 1.6;
}

/* Bottom Navigation */
.v8ea-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v8ea-bg-light) 0%, var(--v8ea-dark) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
}

.v8ea-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.v8ea-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--v8ea-gray-lighter);
  text-decoration: none;
}

.v8ea-bottom-nav-btn:hover,
.v8ea-bottom-active {
  color: var(--v8ea-primary);
  transform: scale(1.1);
}

.v8ea-bottom-nav-icon {
  font-size: 2.4rem;
}

.v8ea-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 769px) {
  .v8ea-bottom-nav {
    display: none;
  }
}

/* Footer */
.v8ea-footer {
  background: var(--v8ea-bg-light);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 2px solid rgba(255, 225, 53, 0.2);
}

.v8ea-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v8ea-footer-link {
  color: var(--v8ea-primary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.v8ea-footer-link:hover {
  text-decoration: underline;
  color: #ffd700;
}

.v8ea-partners {
  margin: 2rem 0;
}

.v8ea-partners-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v8ea-gray-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.v8ea-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.v8ea-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  border-radius: 6px;
}

.v8ea-partner-logo:hover {
  opacity: 1;
}

.v8ea-footer-copyright {
  text-align: center;
  color: var(--v8ea-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Accordion */
.v8ea-accordion-item {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--v8ea-bg-light);
}

.v8ea-accordion-header {
  padding: 1.5rem;
  background: var(--v8ea-bg-light);
  border: 1px solid rgba(255, 225, 53, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.v8ea-accordion-header:hover {
  background: rgba(255, 225, 53, 0.1);
}

.v8ea-accordion-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v8ea-text);
}

.v8ea-accordion-icon {
  font-size: 1.8rem;
  color: var(--v8ea-primary);
  transition: transform 0.3s ease;
}

.v8ea-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v8ea-accordion-text {
  padding: 1.5rem;
  font-size: 1.3rem;
  color: var(--v8ea-gray-light);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 225, 53, 0.1);
}

/* Toast */
.v8ea-toast {
  position: fixed;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--v8ea-dark);
  color: var(--v8ea-primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.v8ea-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .v8ea-main {
    padding-bottom: 8rem;
  }
}

/* Utility Classes */
.v8ea-text-center {
  text-align: center;
}

.v8ea-text-primary {
  color: var(--v8ea-primary) !important;
}

.v8ea-mt-1 { margin-top: 0.5rem; }
.v8ea-mt-2 { margin-top: 1rem; }
.v8ea-mt-3 { margin-top: 1.5rem; }
.v8ea-mb-1 { margin-bottom: 0.5rem; }
.v8ea-mb-2 { margin-bottom: 1rem; }
.v8ea-mb-3 { margin-bottom: 1.5rem; }
