/* NinoGaming CSS - All classes use prefix "pga9-" */
/* Warm earth tone/beige design theme */

:root {
  --pga9-primary: #808080;
  --pga9-secondary: #FFFACD;
  --pga9-dark: #1A1A1A;
  --pga9-accent: #DEB887;
  --pga9-bg-light: #F5F5DC;
  --pga9-text-dark: #2C2416;
  --pga9-text-light: #FFFACD;
  --pga9-border: #D4C5A9;
  --pga9-shadow: rgba(26, 26, 26, 0.15);
  --pga9-overlay: rgba(26, 26, 26, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pga9-text-dark);
  background-color: var(--pga9-bg-light);
  overflow-x: hidden;
}

/* Container */
.pga9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.pga9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pga9-dark) 0%, #3A2F1F 100%);
  box-shadow: 0 2px 8px var(--pga9-shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.pga9-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pga9-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pga9-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pga9-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pga9-secondary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.pga9-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pga9-btn-register,
.pga9-btn-login {
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pga9-btn-register {
  background: linear-gradient(135deg, #D4AF37 0%, var(--pga9-accent) 100%);
  color: var(--pga9-dark);
}

.pga9-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.pga9-btn-login {
  background: transparent;
  color: var(--pga9-secondary);
  border: 1.5px solid var(--pga9-accent);
}

.pga9-btn-login:hover {
  background: var(--pga9-accent);
  color: var(--pga9-dark);
}

.pga9-menu-toggle {
  background: none;
  border: none;
  color: var(--pga9-secondary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.pga9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pga9-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pga9-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.pga9-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--pga9-dark) 0%, #2A1F12 100%);
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 12px var(--pga9-shadow);
}

.proaf8-menu-active {
  right: 0;
}

.pga9-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pga9-border);
}

.pga9-menu-title {
  font-size: 2rem;
  color: var(--pga9-secondary);
  font-weight: 700;
}

.pga9-menu-close {
  background: none;
  border: none;
  color: var(--pga9-secondary);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.pga9-nav-list {
  list-style: none;
}

.pga9-nav-item {
  margin-bottom: 0.5rem;
}

.pga9-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pga9-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(222, 184, 135, 0.05);
}

.pga9-nav-link:hover,
.pga9-nav-active {
  background: var(--pga9-accent);
  color: var(--pga9-dark);
  transform: translateX(5px);
}

/* Main Content */
.pga9-main {
  margin-top: 6rem;
  padding-bottom: 8rem;
  min-height: calc(100vh - 14rem);
}

/* Carousel */
.pga9-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--pga9-shadow);
}

.pga9-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.pga9-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.pga9-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pga9-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem 0;
}

.pga9-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pga9-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pga9-dot-active {
  background: var(--pga9-accent);
  transform: scale(1.3);
}

/* Section Title */
.pga9-section {
  margin-bottom: 3rem;
}

.pga9-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pga9-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--pga9-accent);
  position: relative;
}

.pga9-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--pga9-primary);
}

/* Game Grid */
.pga9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.pga9-game-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--pga9-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.pga9-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(222, 184, 135, 0.3);
}

.pga9-game-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pga9-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--pga9-text-dark);
  background: var(--pga9-bg-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA Button */
.pga9-cta-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #D4AF37 0%, var(--pga9-accent) 100%);
  color: var(--pga9-dark);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  text-align: center;
}

.pga9-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Content Box */
.pga9-content-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px var(--pga9-shadow);
  border-left: 4px solid var(--pga9-accent);
}

.pga9-content-box h2 {
  font-size: 2rem;
  color: var(--pga9-dark);
  margin-bottom: 1.2rem;
}

.pga9-content-box h3 {
  font-size: 1.7rem;
  color: var(--pga9-primary);
  margin: 1.5rem 0 1rem;
}

.pga9-content-box p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--pga9-text-dark);
}

.pga9-content-box ul,
.pga9-content-box ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.pga9-content-box li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* FAQ */
.pga9-faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--pga9-shadow);
}

.pga9-faq-question {
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pga9-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pga9-bg-light);
  transition: background 0.3s ease;
}

.pga9-faq-question:hover {
  background: var(--pga9-accent);
}

.pga9-faq-question::after {
  content: '+';
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--pga9-primary);
  transition: transform 0.3s ease;
}

.pga9-faq-active .pga9-faq-question::after {
  transform: rotate(45deg);
}

.pga9-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  background: white;
}

.pga9-faq-answer p {
  padding: 1.5rem 0;
  color: var(--pga9-text-dark);
  line-height: 1.7;
}

/* Bottom Navigation */
.pga9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2A1F12 0%, var(--pga9-dark) 100%);
  box-shadow: 0 -2px 10px var(--pga9-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.pga9-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.pga9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.pga9-bottom-nav-item:hover {
  background: rgba(222, 184, 135, 0.15);
}

.pga9-bottom-nav-active {
  background: rgba(222, 184, 135, 0.2);
}

.pga9-bottom-nav-icon {
  font-size: 2.4rem;
  color: var(--pga9-accent);
  transition: all 0.3s ease;
}

.pga9-bottom-nav-active .pga9-bottom-nav-icon {
  color: #D4AF37;
  transform: scale(1.1);
}

.pga9-bottom-nav-text {
  font-size: 1.1rem;
  color: var(--pga9-text-light);
  font-weight: 500;
}

.pga9-bottom-nav-active .pga9-bottom-nav-text {
  color: #D4AF37;
  font-weight: 600;
}

/* Footer */
.pga9-footer {
  background: linear-gradient(180deg, var(--pga9-dark) 0%, #1A1208 100%);
  color: var(--pga9-text-light);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.pga9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pga9-footer-link {
  color: var(--pga9-accent);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.pga9-footer-link:hover {
  color: #D4AF37;
}

.pga9-partners {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--pga9-border);
  border-bottom: 1px solid var(--pga9-border);
}

.pga9-partners-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--pga9-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.pga9-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.pga9-partner-logo {
  width: 100%;
  max-width: 50px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pga9-partner-logo:hover {
  opacity: 1;
}

.pga9-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--pga9-border);
  margin-top: 1.5rem;
}

/* Scroll to Top */
.pga9-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--pga9-accent);
  color: var(--pga9-dark);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px var(--pga9-shadow);
}

.pga9-scroll-visible {
  opacity: 1;
  visibility: visible;
}

.pga9-scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(222, 184, 135, 0.4);
}

/* Desktop Styles */
@media (min-width: 769px) {
  .pga9-bottom-nav {
    display: none;
  }

  .pga9-main {
    padding-bottom: 2rem;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .pga9-main {
    padding-bottom: 8rem;
  }
}

/* Utility Classes */
.pga9-text-center {
  text-align: center;
}

.pga9-mb-2 {
  margin-bottom: 2rem;
}

.pga9-mt-2 {
  margin-top: 2rem;
}

.pga9-bold {
  font-weight: 700;
}

.pga9-link-text {
  color: var(--pga9-primary);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pga9-link-text:hover {
  color: var(--pga9-accent);
}
