/**
 * NN77 - Main Stylesheet
 * Mobile-first design for Philippine gaming platform
 * All classes use 'nn77-' prefix for namespace isolation
 */

/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nn77-primary: #E91E63;
  --nn77-secondary: #212121;
  --nn77-tertiary: #424242;
  --nn77-light: #FFFFFF;
  --nn77-gray: #757575;
  --nn77-dark-bg: #212121;
  --nn77-card-bg: #424242;
  --nn77-border: #616161;
  --nn77-shadow: rgba(0, 0, 0, 0.3);
  --nn77-gradient: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  --nn77-text-light: #FFFFFF;
  --nn77-text-dark: #212121;
  --app-height: 100vh;
}

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(--nn77-text-light);
  background-color: var(--nn77-dark-bg);
  min-height: var(--app-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* Container */
.nn77-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nn77-wrapper {
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header */
.nn77-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.98) 0%, rgba(33, 33, 33, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nn77-border);
  transition: transform 0.3s ease, background 0.3s ease;
}

.nn77-header.nn77-hidden {
  transform: translateY(-100%);
}

.nn77-header.nn77-scrolled {
  background: rgba(33, 33, 33, 0.98);
  box-shadow: 0 2px 10px var(--nn77-shadow);
}

.nn77-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.nn77-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nn77-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nn77-logo img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
}

.nn77-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  color: var(--nn77-text-light);
  background: var(--nn77-card-bg);
  transition: all 0.3s ease;
}

.nn77-menu-toggle:hover {
  background: var(--nn77-primary);
}

.nn77-menu-toggle i {
  font-size: 2rem;
}

/* Header Buttons */
.nn77-header-btns {
  display: flex;
  gap: 1rem;
}

.nn77-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.nn77-btn-primary {
  background: var(--nn77-primary);
  color: var(--nn77-text-light);
}

.nn77-btn-primary:hover {
  background: #C2185B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.nn77-btn-secondary {
  background: var(--nn77-card-bg);
  color: var(--nn77-text-light);
  border: 1px solid var(--nn77-border);
}

.nn77-btn-secondary:hover {
  background: var(--nn77-tertiary);
  border-color: var(--nn77-primary);
}

.nn77-btn-touching {
  transform: scale(0.95);
}

/* Mobile Menu */
.nn77-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--nn77-card-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.nn77-mobile-menu.nn77-active {
  right: 0;
}

.nn77-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nn77-menu-overlay.nn77-active {
  opacity: 1;
  visibility: visible;
}

.nn77-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.nn77-menu-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nn77-primary);
}

.nn77-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--nn77-secondary);
  color: var(--nn77-text-light);
  font-size: 1.8rem;
}

.nn77-menu-nav a {
  display: block;
  padding: 1.2rem 2rem;
  font-size: 1.5rem;
  color: var(--nn77-text-light);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.nn77-menu-nav a:hover {
  background: rgba(233, 30, 99, 0.1);
  border-left-color: var(--nn77-primary);
  color: var(--nn77-primary);
}

/* Carousel */
.nn77-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.nn77-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.nn77-carousel-slide.nn77-active {
  opacity: 1;
}

.nn77-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn77-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.nn77-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nn77-carousel-dot.nn77-active {
  background: var(--nn77-primary);
  width: 2rem;
  border-radius: 1rem;
}

/* Section Styles */
.nn77-section {
  margin-bottom: 3rem;
}

.nn77-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--nn77-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nn77-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--nn77-text-light);
  margin-bottom: 1.2rem;
}

.nn77-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #BDBDBD;
  margin-bottom: 1rem;
}

.nn77-text strong {
  color: var(--nn77-primary);
  font-weight: 600;
}

.nn77-text a {
  color: var(--nn77-primary);
  text-decoration: underline;
}

.nn77-text a:hover {
  color: #C2185B;
}

/* Card */
.nn77-card {
  background: var(--nn77-card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--nn77-border);
}

/* Game Grid */
.nn77-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.nn77-game-item {
  position: relative;
  background: var(--nn77-secondary);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nn77-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--nn77-primary);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}

.nn77-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn77-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.5rem;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.95), transparent);
  font-size: 1rem;
  font-weight: 600;
  color: var(--nn77-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List Styles */
.nn77-list {
  list-style: none;
}

.nn77-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nn77-border);
}

.nn77-list-item:last-child {
  border-bottom: none;
}

.nn77-list-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nn77-primary);
  border-radius: 50%;
  color: var(--nn77-text-light);
  font-size: 1.3rem;
}

/* Feature Box */
.nn77-feature-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--nn77-secondary);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--nn77-border);
}

.nn77-feature-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nn77-gradient);
  border-radius: 10px;
  color: var(--nn77-text-light);
  font-size: 2rem;
}

.nn77-feature-content h4 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--nn77-text-light);
  margin-bottom: 0.3rem;
}

.nn77-feature-content p {
  font-size: 1.3rem;
  color: #9E9E9E;
}

/* CTA Section */
.nn77-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--nn77-gradient);
  border-radius: 12px;
  margin: 2rem 0;
}

.nn77-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nn77-text-light);
  margin-bottom: 1rem;
}

.nn77-cta-text {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.nn77-cta-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--nn77-text-light);
  color: var(--nn77-primary);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nn77-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.nn77-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.nn77-stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--nn77-secondary);
  border-radius: 10px;
  border: 1px solid var(--nn77-border);
}

.nn77-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--nn77-primary);
  margin-bottom: 0.5rem;
}

.nn77-stat-label {
  font-size: 1.2rem;
  color: #9E9E9E;
}

/* Footer */
.nn77-footer {
  background: var(--nn77-secondary);
  border-top: 1px solid var(--nn77-border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.nn77-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.nn77-footer-link {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  color: #BDBDBD;
  background: var(--nn77-card-bg);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nn77-footer-link:hover {
  background: var(--nn77-primary);
  color: var(--nn77-text-light);
}

.nn77-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.nn77-partners img {
  width: auto;
  height: 3rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nn77-partners img:hover {
  opacity: 1;
}

.nn77-copyright {
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--nn77-border);
  font-size: 1.2rem;
  color: #757575;
}

/* Bottom Navigation (Mobile) */
.nn77-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, var(--nn77-card-bg) 0%, var(--nn77-secondary) 100%);
  border-top: 2px solid var(--nn77-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--nn77-shadow);
}

.nn77-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6rem;
  min-height: 6rem;
  color: #9E9E9E;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nn77-nav-item:hover {
  color: var(--nn77-primary);
}

.nn77-nav-item.nn77-active {
  color: var(--nn77-primary);
}

.nn77-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.nn77-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nn77-nav-item:hover .nn77-nav-icon {
  transform: scale(1.1);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .nn77-bottom-nav {
    display: none;
  }

  .nn77-wrapper {
    padding-bottom: 2rem;
  }
}

/* Add bottom padding for mobile */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Utility Classes */
.nn77-text-center {
  text-align: center;
}

.nn77-mt-1 {
  margin-top: 1rem;
}

.nn77-mt-2 {
  margin-top: 2rem;
}

.nn77-mb-1 {
  margin-bottom: 1rem;
}

.nn77-mb-2 {
  margin-bottom: 2rem;
}

.nn77-hidden {
  display: none !important;
}
