/**
 * ninong gaming - Main Stylesheet
 * All classes use v560 prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --v560-primary: #6A5ACD;
  --v560-secondary: #9932CC;
  --v560-dark: #1E1E1E;
  --v560-darker: #0a0a0a;
  --v560-light: #f5f5f5;
  --v560-white: #ffffff;
  --v560-gray: #888888;
  --v560-border: #333333;
  --v560-success: #28a745;
  --v560-warning: #ffc107;
  --v560-gradient: linear-gradient(135deg, #6A5ACD 0%, #9932CC 100%);
  --v560-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --v560-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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(--v560-light);
  background-color: var(--v560-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* Container */
.v560-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v560-wrapper {
  background-color: var(--v560-dark);
  min-height: 100vh;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .v560-wrapper {
    padding-bottom: 0;
  }
}

/* Header */
.v560-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(30, 30, 30, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v560-border);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--v560-shadow);
}

.v560-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v560-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v560-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v560-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
  object-fit: cover;
}

.v560-header-actions {
  display: flex;
  gap: 0.8rem;
}

.v560-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v560-btn-primary {
  background: var(--v560-gradient);
  color: var(--v560-white);
  box-shadow: 0 2px 8px rgba(106, 90, 205, 0.4);
}

.v560-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 90, 205, 0.6);
}

.v560-btn-secondary {
  background: transparent;
  color: var(--v560-white);
  border: 2px solid var(--v560-primary);
}

.v560-btn-secondary:hover {
  background: var(--v560-primary);
  border-color: var(--v560-primary);
}

.v560-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.v560-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--v560-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.v560-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v560-darker) 0%, var(--v560-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 6rem 2rem 2rem;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.v560-mobile-menu.v560-menu-open {
  right: 0;
}

.v560-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;
}

.v560-menu-overlay.v560-menu-open {
  opacity: 1;
  visibility: visible;
}

.v560-menu-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.v560-menu-close {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v560-secondary);
  border: none;
  border-radius: 50%;
  color: var(--v560-white);
  font-size: 2rem;
  cursor: pointer;
}

.v560-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v560-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--v560-light);
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.v560-menu-link:hover {
  background: rgba(106, 90, 205, 0.2);
  border-color: var(--v560-primary);
  color: var(--v560-white);
  padding-left: 2rem;
}

.v560-menu-link i {
  margin-right: 1rem;
  width: 2.4rem;
  text-align: center;
}

/* Main Content */
.v560-main {
  padding-top: 70px;
}

.v560-section {
  padding: 2.5rem 0;
}

.v560-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v560-white);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
}

.v560-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--v560-gradient);
  border-radius: 2px;
}

/* Carousel */
.v560-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--v560-shadow-lg);
}

.v560-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.v560-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v560-carousel-slide.v560-active {
  opacity: 1;
  z-index: 1;
}

.v560-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v560-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.v560-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v560-carousel-dot.v560-active {
  background: var(--v560-white);
  transform: scale(1.2);
}

.v560-carousel-prev,
.v560-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: var(--v560-white);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.v560-carousel-prev { left: 1rem; }
.v560-carousel-next { right: 1rem; }

.v560-carousel-prev:hover,
.v560-carousel-next:hover {
  background: var(--v560-primary);
}

/* Game Grid */
.v560-game-section {
  margin-bottom: 3rem;
}

.v560-game-category {
  margin-bottom: 2rem;
}

.v560-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v560-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v560-category-title i {
  color: var(--v560-primary);
  font-size: 2rem;
}

.v560-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.v560-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v560-game-item:hover {
  transform: translateY(-5px);
}

.v560-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: var(--v560-shadow);
  background: var(--v560-darker);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.v560-game-item:hover .v560-game-icon {
  border-color: var(--v560-primary);
  box-shadow: 0 0 15px rgba(106, 90, 205, 0.5);
}

.v560-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v560-game-name {
  font-size: 1rem;
  color: var(--v560-light);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.v560-card {
  background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--v560-shadow);
  border: 1px solid var(--v560-border);
}

.v560-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v560-white);
  margin-bottom: 1rem;
}

.v560-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v560-light);
}

.v560-card-content p {
  margin-bottom: 1rem;
}

.v560-card-content a {
  color: var(--v560-primary);
  font-weight: 600;
}

.v560-card-content a:hover {
  color: var(--v560-secondary);
  text-decoration: underline;
}

/* Content Links */
.v560-content-link {
  color: var(--v560-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.v560-content-link:hover {
  color: var(--v560-secondary);
}

/* Bottom Navigation (Mobile) */
.v560-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 2px solid var(--v560-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.v560-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.v560-nav-btn i,
.v560-nav-btn span.material-icons {
  font-size: 24px;
  color: var(--v560-gray);
  transition: all 0.3s ease;
}

.v560-nav-btn span {
  font-size: 10px;
  color: var(--v560-gray);
  font-weight: 500;
}

.v560-nav-btn:hover i,
.v560-nav-btn:hover span.material-icons,
.v560-nav-btn:hover span {
  color: var(--v560-primary);
  transform: scale(1.1);
}

.v560-nav-btn.v560-active i,
.v560-nav-btn.v560-active span.material-icons,
.v560-nav-btn.v560-active span {
  color: var(--v560-primary);
}

/* Footer */
.v560-footer {
  background: linear-gradient(180deg, var(--v560-dark) 0%, var(--v560-darker) 100%);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--v560-border);
}

.v560-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.v560-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.v560-footer-link {
  color: var(--v560-gray);
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v560-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v560-footer-link:hover {
  background: var(--v560-primary);
  color: var(--v560-white);
  border-color: var(--v560-primary);
}

.v560-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.v560-partner-logo {
  width: 50px;
  height: 35px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.v560-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v560-copyright {
  color: var(--v560-gray);
  font-size: 1.2rem;
  text-align: center;
}

/* Utility Classes */
.v560-text-center { text-align: center; }
.v560-mt-1 { margin-top: 1rem; }
.v560-mt-2 { margin-top: 2rem; }
.v560-mb-1 { margin-bottom: 1rem; }
.v560-mb-2 { margin-bottom: 2rem; }

/* Desktop Responsive */
@media (min-width: 769px) {
  .v560-bottom-nav {
    display: none;
  }

  .v560-footer {
    padding-bottom: 3rem;
  }

  .v560-menu-toggle {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .v560-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .v560-game-name {
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes v560-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.v560-pulse {
  animation: v560-pulse 2s infinite;
}

/* Icon specific styles */
.v560-icon-duotone {
  display: inline-block;
  width: 1em;
  height: 1em;
}
