/**
 * kn77 Stylesheet
 * Mobile-first design with max-width 430px
 * All classes use ui18- prefix
 */

/* CSS Variables */
:root {
  --ui18-primary: #FFA500;
  --ui18-bg-dark: #273746;
  --ui18-bg-medium: #3C3C3C;
  --ui18-bg-light: #F5F5F5;
  --ui18-text-muted: #708090;
  --ui18-text-light: #F5F5F5;
  --ui18-text-dark: #273746;
  --ui18-gradient: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  --ui18-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --ui18-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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(--ui18-text-dark);
  background: var(--ui18-bg-light);
  overflow-x: hidden;
}

/* Container */
.ui18-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.ui18-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ui18-bg-dark);
  z-index: 1000;
  box-shadow: var(--ui18-shadow);
}

.ui18-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.ui18-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ui18-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.ui18-logo-icon {
  width: 32px;
  height: 32px;
}

.ui18-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.ui18-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ui18-btn-primary {
  background: var(--ui18-primary);
  color: var(--ui18-text-dark);
}

.ui18-btn-secondary {
  background: transparent;
  color: var(--ui18-primary);
  border: 2px solid var(--ui18-primary);
}

.ui18-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui18-shadow);
}

.ui18-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ui18-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Navigation */
.ui18-mobile-nav {
  display: block;
  background: var(--ui18-bg-medium);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.ui18-mobile-nav.ui18-menu-open {
  max-height: 500px;
}

.ui18-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.ui18-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ui18-nav-link {
  display: block;
  padding: 1rem;
  color: var(--ui18-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.ui18-nav-link:hover {
  background: rgba(255, 165, 0, 0.1);
  color: var(--ui18-primary);
}

/* Main Content */
.ui18-main {
  margin-top: 60px;
  margin-bottom: 80px;
  padding: 1rem 0;
}

/* Carousel */
.ui18-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.ui18-carousel-slide {
  display: none;
  width: 100%;
}

.ui18-carousel-slide.ui18-active {
  display: block;
}

.ui18-carousel-img {
  width: 100%;
  height: auto;
  display: block;
}

.ui18-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.ui18-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ui18-carousel-dot.ui18-active {
  background: var(--ui18-primary);
  transform: scale(1.2);
}

/* Section */
.ui18-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--ui18-shadow);
}

.ui18-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ui18-bg-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--ui18-primary);
}

.ui18-section-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ui18-text-muted);
}

/* Games Grid */
.ui18-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.ui18-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ui18-game-item:hover {
  transform: scale(1.05);
}

.ui18-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  background: var(--ui18-bg-light);
}

.ui18-game-name {
  font-size: 1.1rem;
  color: var(--ui18-bg-dark);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom Navigation */
.ui18-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ui18-bg-dark);
  border-top: 1px solid rgba(255, 165, 0, 0.2);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.ui18-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.ui18-nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--ui18-text-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ui18-nav-item-bottom:hover {
  background: rgba(255, 165, 0, 0.1);
  transform: scale(1.05);
}

.ui18-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
  display: block;
}

.ui18-nav-label {
  font-size: 1rem;
  display: block;
}

.ui18-nav-item-bottom.ui18-active {
  color: var(--ui18-primary);
}

/* Footer */
.ui18-footer {
  background: var(--ui18-bg-dark);
  color: var(--ui18-text-light);
  padding: 2rem 0 1rem;
  text-align: center;
}

.ui18-footer-content {
  margin-bottom: 1.5rem;
}

.ui18-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ui18-primary);
  margin-bottom: 1rem;
}

.ui18-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.ui18-footer-link {
  color: var(--ui18-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.ui18-footer-link:hover {
  color: var(--ui18-primary);
}

.ui18-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ui18-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ui18-partner-logo:hover {
  opacity: 1;
}

.ui18-copyright {
  font-size: 1.2rem;
  color: var(--ui18-text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (min-width: 769px) {
  .ui18-bottom-nav {
    display: none;
  }

  .ui18-main {
    margin-bottom: 2rem;
  }

  .ui18-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .ui18-menu-toggle {
    display: block;
  }
}

/* Utility Classes */
.ui18-text-center {
  text-align: center;
}

.ui18-mb-1 {
  margin-bottom: 1rem;
}

.ui18-mb-2 {
  margin-bottom: 2rem;
}

.ui18-mt-1 {
  margin-top: 1rem;
}

.ui18-mt-2 {
  margin-top: 2rem;
}

.ui18-hidden {
  display: none;
}

/* Loading State */
.ui18-btn-loading {
  opacity: 0.7;
  pointer-events: none;
}
