/* Nino Games - Theme Styles */
/* All classes prefixed with w9fc7- to avoid conflicts */

/* CSS Variables */
:root {
  --w9fc7-primary: #2E8B57;
  --w9fc7-secondary: #32CD32;
  --w9fc7-dark: #2E4057;
  --w9fc7-light: #8FBC8F;
  --w9fc7-silver: #C0C0C0;
  --w9fc7-bg-dark: #1a1a2e;
  --w9fc7-bg-darker: #16213e;
  --w9fc7-text-light: #ffffff;
  --w9fc7-text-gray: #e0e0e0;
  --w9fc7-spacing-xs: 0.5rem;
  --w9fc7-spacing-sm: 1rem;
  --w9fc7-spacing-md: 1.5rem;
  --w9fc7-spacing-lg: 2rem;
  --w9fc7-spacing-xl: 3rem;
  --w9fc7-radius: 0.8rem;
  --w9fc7-radius-sm: 0.4rem;
  --w9fc7-transition: all 0.3s ease;
}

/* Base Styles */
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(--w9fc7-text-light);
  background: linear-gradient(135deg, var(--w9fc7-bg-darker) 0%, var(--w9fc7-dark) 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

/* Container */
.w9fc7-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--w9fc7-spacing-sm);
}

.w9fc7-wrapper {
  padding: 60px 0 70px;
}

/* Header */
.w9fc7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w9fc7-dark) 0%, var(--w9fc7-bg-darker) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  padding: var(--w9fc7-spacing-sm);
}

.w9fc7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w9fc7-logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--w9fc7-spacing-xs);
  text-decoration: none;
}

.w9fc7-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--w9fc7-radius-sm);
}

.w9fc7-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9fc7-secondary);
  margin: 0;
}

.w9fc7-header-actions {
  display: flex;
  align-items: center;
  gap: var(--w9fc7-spacing-xs);
}

/* Hamburger Menu */
.w9fc7-hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.w9fc7-hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--w9fc7-text-light);
  border-radius: 3px;
  transition: var(--w9fc7-transition);
  left: 0;
}

.w9fc7-hamburger span:nth-child(1) { top: 0; }
.w9fc7-hamburger span:nth-child(2) { top: 10px; }
.w9fc7-hamburger span:nth-child(3) { top: 20px; }

.w9fc7-hamburger.x9fc7-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.w9fc7-hamburger.x9fc7-active span:nth-child(2) {
  opacity: 0;
}

.w9fc7-hamburger.x9fc7-active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Mobile Menu */
.w9fc7-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--w9fc7-bg-darker);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: var(--w9fc7-spacing-lg) var(--w9fc7-spacing-md);
  overflow-y: auto;
}

.w9fc7-mobile-menu.x9fc7-menu-active {
  right: 0;
}

.w9fc7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--w9fc7-transition);
}

.w9fc7-menu-overlay.x9fc7-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w9fc7-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.w9fc7-nav-item {
  margin-bottom: var(--w9fc7-spacing-sm);
}

.w9fc7-nav-link {
  display: block;
  padding: var(--w9fc7-spacing-sm);
  color: var(--w9fc7-text-light);
  text-decoration: none;
  border-radius: var(--w9fc7-radius-sm);
  transition: var(--w9fc7-transition);
  font-size: 1.6rem;
}

.w9fc7-nav-link:hover,
.w9fc7-nav-link.x9fc7-active-link {
  background: var(--w9fc7-primary);
  color: var(--w9fc7-text-light);
}

/* Buttons */
.w9fc7-btn {
  display: inline-block;
  padding: var(--w9fc7-spacing-xs) var(--w9fc7-spacing-md);
  border-radius: var(--w9fc7-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: var(--w9fc7-transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.w9fc7-btn-primary {
  background: linear-gradient(135deg, var(--w9fc7-primary) 0%, var(--w9fc7-secondary) 100%);
  color: var(--w9fc7-text-light);
  box-shadow: 0 4px 12px rgba(46,139,87,0.3);
}

.w9fc7-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46,139,87,0.4);
}

.w9fc7-btn-secondary {
  background: transparent;
  border: 2px solid var(--w9fc7-primary);
  color: var(--w9fc7-primary);
}

.w9fc7-btn-secondary:hover {
  background: var(--w9fc7-primary);
  color: var(--w9fc7-text-light);
}

.w9fc7-btn-sm {
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
}

/* Carousel */
.w9fc7-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w9fc7-radius);
  margin: var(--w9fc7-spacing-md) 0;
}

.w9fc7-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.w9fc7-carousel-item {
  min-width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: var(--w9fc7-radius);
  cursor: pointer;
}

/* Game Grid */
.w9fc7-game-section {
  margin: var(--w9fc7-spacing-lg) 0;
}

.w9fc7-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w9fc7-secondary);
  margin: var(--w9fc7-spacing-md) 0;
  padding-bottom: var(--w9fc7-spacing-sm);
  border-bottom: 2px solid var(--w9fc7-primary);
}

.w9fc7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--w9fc7-spacing-sm);
  margin: var(--w9fc7-spacing-md) 0;
}

.w9fc7-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w9fc7-transition);
  text-decoration: none;
  color: var(--w9fc7-text-light);
}

.w9fc7-game-item:hover {
  transform: translateY(-4px);
}

.w9fc7-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w9fc7-radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: var(--w9fc7-transition);
}

.w9fc7-game-item:hover .w9fc7-game-icon {
  box-shadow: 0 4px 12px rgba(50,205,50,0.4);
}

.w9fc7-game-name {
  font-size: 1.2rem;
  margin-top: var(--w9fc7-spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--w9fc7-text-gray);
}

/* Content Sections */
.w9fc7-content-section {
  background: rgba(255,255,255,0.05);
  border-radius: var(--w9fc7-radius);
  padding: var(--w9fc7-spacing-md);
  margin: var(--w9fc7-spacing-md) 0;
  backdrop-filter: blur(10px);
}

.w9fc7-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9fc7-secondary);
  margin-bottom: var(--w9fc7-spacing-sm);
}

.w9fc7-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--w9fc7-text-gray);
  margin-bottom: var(--w9fc7-spacing-sm);
}

.w9fc7-content-text strong {
  color: var(--w9fc7-text-light);
}

.w9fc7-link {
  color: var(--w9fc7-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--w9fc7-transition);
}

.w9fc7-link:hover {
  color: var(--w9fc7-primary);
  text-decoration: underline;
}

/* Lists */
.w9fc7-list {
  list-style: none;
  padding: 0;
  margin: var(--w9fc7-spacing-sm) 0;
}

.w9fc7-list-item {
  padding: var(--w9fc7-spacing-xs) 0;
  padding-left: var(--w9fc7-spacing-md);
  position: relative;
  font-size: 1.4rem;
  color: var(--w9fc7-text-gray);
}

.w9fc7-list-item:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--w9fc7-secondary);
  font-weight: 700;
}

/* Footer */
.w9fc7-footer {
  background: var(--w9fc7-bg-darker);
  padding: var(--w9fc7-spacing-lg) var(--w9fc7-spacing-sm);
  margin-top: var(--w9fc7-spacing-xl);
  border-top: 2px solid var(--w9fc7-primary);
}

.w9fc7-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--w9fc7-spacing-sm);
  margin-bottom: var(--w9fc7-spacing-md);
}

.w9fc7-footer-link {
  color: var(--w9fc7-text-gray);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--w9fc7-transition);
}

.w9fc7-footer-link:hover {
  color: var(--w9fc7-secondary);
}

.w9fc7-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--w9fc7-spacing-sm);
  margin: var(--w9fc7-spacing-md) 0;
  padding: var(--w9fc7-spacing-md) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.w9fc7-partner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--w9fc7-radius-sm);
  opacity: 0.7;
  transition: var(--w9fc7-transition);
}

.w9fc7-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.w9fc7-copyright {
  text-align: center;
  color: var(--w9fc7-text-gray);
  font-size: 1.2rem;
  margin-top: var(--w9fc7-spacing-md);
}

/* Bottom Navigation */
.w9fc7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w9fc7-bg-darker) 0%, var(--w9fc7-dark) 100%);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  padding: var(--w9fc7-spacing-xs) 0;
}

.w9fc7-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.w9fc7-bottom-nav-item {
  flex: 1;
  text-align: center;
  transition: var(--w9fc7-transition);
}

.w9fc7-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--w9fc7-text-gray);
  padding: 0.5rem;
  transition: var(--w9fc7-transition);
}

.w9fc7-bottom-nav-item a i {
  font-size: 2.4rem;
  transition: var(--w9fc7-transition);
}

.w9fc7-bottom-nav-item a span {
  font-size: 1rem;
  font-weight: 500;
}

.w9fc7-bottom-nav-item.x9fc7-bottom-nav-active a,
.w9fc7-bottom-nav-item a:hover {
  color: var(--w9fc7-secondary);
}

.w9fc7-bottom-nav-item a:active {
  transform: scale(0.95);
}

/* Animations */
@keyframes w9fc7FadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w9fc7-animate {
  opacity: 0;
}

.w9fc7-fade-in {
  animation: w9fc7FadeIn 0.6s ease forwards;
}

/* Utility Classes */
.w9fc7-text-center {
  text-align: center;
}

.w9fc7-text-primary {
  color: var(--w9fc7-primary);
}

.w9fc7-text-secondary {
  color: var(--w9fc7-secondary);
}

.w9fc7-mt-sm { margin-top: var(--w9fc7-spacing-sm); }
.w9fc7-mt-md { margin-top: var(--w9fc7-spacing-md); }
.w9fc7-mt-lg { margin-top: var(--w9fc7-spacing-lg); }

.w9fc7-mb-sm { margin-bottom: var(--w9fc7-spacing-sm); }
.w9fc7-mb-md { margin-bottom: var(--w9fc7-spacing-md); }
.w9fc7-mb-lg { margin-bottom: var(--w9fc7-spacing-lg); }

/* Back to Top */
.w9fc7-back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--w9fc7-primary);
  color: var(--w9fc7-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--w9fc7-transition);
  z-index: 999;
}

.w9fc7-back-to-top.x9fc7-show {
  opacity: 1;
  visibility: visible;
}

.w9fc7-back-to-top:hover {
  background: var(--w9fc7-secondary);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 380px) {
  .w9fc7-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .w9fc7-bottom-nav-item a span {
    font-size: 0.9rem;
  }
}

@media (min-width: 431px) {
  .w9fc7-container {
    max-width: 100%;
    padding: 0 var(--w9fc7-spacing-md);
  }

  .w9fc7-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
