/* Ninong Gaming - Core Stylesheet */
/* CSS prefix: g58c- */
/* Color palette: #FFB347 | #262626 | #FFF176 | #8B7355 | #AD1457 */

/* Base styles */
:root {
  --g58c-primary: #FFB347;
  --g58c-dark: #262626;
  --g58c-yellow: #FFF176;
  --g58c-brown: #8B7355;
  --g58c-pink: #AD1457;
  --g58c-light: #F5F5F5;
  --g58c-text: #E0E0E0;
  --g58c-border: #404040;
  --g58c-shadow: rgba(0, 0, 0, 0.3);
  font-size: 62.5%; /* 1rem = 10px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g58c-text);
  background: var(--g58c-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header styles */
.g58c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a1a1a 0%, var(--g58c-dark) 100%);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px var(--g58c-shadow);
  z-index: 1000;
  border-bottom: 2px solid var(--g58c-primary);
}

.g58c-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g58c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g58c-yellow);
  font-weight: 700;
  font-size: 1.6rem;
}

.g58c-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.g58c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Button styles */
.g58c-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
}

.g58c-btn-primary {
  background: linear-gradient(135deg, var(--g58c-primary) 0%, #ff9f1a 100%);
  color: #1a1a1a;
}

.g58c-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.5);
}

.g58c-btn-outline {
  background: transparent;
  border: 2px solid var(--g58c-yellow);
  color: var(--g58c-yellow);
}

.g58c-btn-outline:hover {
  background: var(--g58c-yellow);
  color: var(--g58c-dark);
}

.g58c-btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
}

/* Menu toggle button */
.g58c-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.g58c-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--g58c-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g58c-menu-toggle.g58c-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.g58c-menu-toggle.g58c-active span:nth-child(2) {
  opacity: 0;
}

.g58c-menu-toggle.g58c-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation */
.g58c-mobile-nav {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 60px);
  background: #1a1a1a;
  box-shadow: -2px 0 10px var(--g58c-shadow);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  border-left: 2px solid var(--g58c-primary);
}

.g58c-mobile-nav.g58c-active {
  right: 0;
}

.g58c-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.g58c-nav-item {
  border-bottom: 1px solid rgba(255, 179, 71, 0.1);
}

.g58c-nav-link {
  display: block;
  padding: 1.4rem 2rem;
  color: var(--g58c-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.g58c-nav-link:hover {
  background: rgba(255, 179, 71, 0.1);
  border-left-color: var(--g58c-primary);
  padding-left: 2.5rem;
  color: var(--g58c-yellow);
}

/* Navigation overlay */
.g58c-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.g58c-nav-overlay.g58c-active {
  opacity: 1;
  visibility: visible;
}

/* Main content */
.g58c-main {
  padding-top: 70px;
  padding-bottom: 70px;
  min-height: 100vh;
}

.g58c-container {
  padding: 1.5rem;
}

/* Carousel styles */
.g58c-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--g58c-shadow);
}

.g58c-carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.g58c-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g58c-carousel-item.g58c-active {
  opacity: 1;
}

.g58c-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g58c-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.g58c-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.g58c-carousel-dot.g58c-active {
  background: var(--g58c-primary);
  transform: scale(1.3);
  border-color: white;
}

/* Section styles */
.g58c-section {
  margin-bottom: 3rem;
}

.g58c-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g58c-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game grid */
.g58c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.g58c-game-card {
  background: rgba(255, 179, 71, 0.05);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 100px;
}

.g58c-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--g58c-primary);
  background: rgba(255, 179, 71, 0.15);
  box-shadow: 0 6px 16px rgba(255, 179, 71, 0.3);
}

.g58c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.g58c-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g58c-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g58c-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content box */
.g58c-content-box {
  background: rgba(255, 179, 71, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--g58c-primary);
}

.g58c-content-box h2 {
  font-size: 1.8rem;
  color: var(--g58c-primary);
  margin-bottom: 1.2rem;
}

.g58c-content-box h3 {
  font-size: 1.6rem;
  color: var(--g58c-yellow);
  margin: 1.5rem 0 1rem;
}

.g58c-content-box p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: var(--g58c-text);
}

.g58c-content-box a {
  color: var(--g58c-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.g58c-content-box a:hover {
  color: var(--g58c-yellow);
  border-bottom-color: var(--g58c-yellow);
}

.g58c-content-box ul {
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.g58c-content-box li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.g58c-content-box ol {
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.g58c-content-box strong {
  color: var(--g58c-yellow);
}

/* Accordion styles */
.g58c-accordion {
  margin: 2rem 0;
}

.g58c-accordion-item {
  background: rgba(255, 179, 71, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 71, 0.1);
}

.g58c-accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--g58c-primary);
  transition: all 0.3s ease;
  min-height: 44px;
}

.g58c-accordion-header:hover {
  background: rgba(255, 179, 71, 0.1);
}

.g58c-accordion-header::after {
  content: '+';
  font-size: 2rem;
  color: var(--g58c-primary);
  transition: transform 0.3s ease;
}

.g58c-accordion-item.g58c-active .g58c-accordion-header::after {
  transform: rotate(45deg);
}

.g58c-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g58c-accordion-item.g58c-active .g58c-accordion-content {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Footer styles */
.g58c-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--g58c-dark) 100%);
  padding: 3rem 1.5rem 8rem;
  border-top: 2px solid var(--g58c-primary);
}

.g58c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g58c-footer-link {
  color: var(--g58c-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.g58c-footer-link:hover {
  color: var(--g58c-primary);
}

.g58c-partners {
  margin: 3rem 0;
}

.g58c-partners-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g58c-primary);
  margin-bottom: 1.5rem;
}

.g58c-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
}

.g58c-partner-logo {
  background: rgba(255, 179, 71, 0.05);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.g58c-partner-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g58c-partner-logo:hover img {
  opacity: 1;
}

.g58c-copyright {
  text-align: center;
  color: rgba(224, 224, 224, 0.6);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 179, 71, 0.1);
}

/* Bottom navigation bar */
.g58c-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g58c-dark);
  border-top: 2px solid var(--g58c-primary);
  box-shadow: 0 -2px 10px var(--g58c-shadow);
  z-index: 1000;
}

.g58c-footer-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  height: 60px;
  padding: 0;
  margin: 0;
}

.g58c-footer-nav-item {
  flex: 1;
}

.g58c-footer-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--g58c-text);
  transition: all 0.3s ease;
  padding: 0.8rem 0.5rem;
  min-height: 44px;
}

.g58c-footer-nav-link:hover {
  color: var(--g58c-primary);
  transform: translateY(-2px);
}

.g58c-footer-nav-icon {
  font-size: 2.2rem;
}

.g58c-footer-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Back to top button */
.g58c-back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--g58c-primary);
  color: var(--g58c-dark);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
  z-index: 900;
}

.g58c-back-to-top.g58c-visible {
  opacity: 1;
  visibility: visible;
}

.g58c-back-to-top:hover {
  background: var(--g58c-yellow);
  transform: translateY(-4px);
}

/* Text utilities */
.g58c-text-center {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .g58c-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .g58c-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 320px) {
  .g58c-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .g58c-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
