/* Super Ace 2026 - Universal CSS Stylesheet */
/* All classes use uifc- prefix for namespace isolation */

/* CSS Variables */
:root {
  --uifc-primary: #95A5A6;
  --uifc-secondary: #0D1117;
  --uifc-accent: #3C3C3C;
  --uifc-light: #FDF5E6;
  --uifc-muted: #696969;
  --uifc-success: #27ae60;
  --uifc-warning: #f39c12;
  --uifc-danger: #e74c3c;
  --uifc-border: #2c3e50;
  --uifc-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--uifc-light);
  background-color: var(--uifc-secondary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.uifc-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.uifc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--uifc-secondary);
  border-bottom: 2px solid var(--uifc-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--uifc-shadow);
}

.uifc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.uifc-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--uifc-light);
}

.uifc-logo-icon {
  width: 32px;
  height: 32px;
}

.uifc-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uifc-primary);
}

.uifc-header-actions {
  display: flex;
  gap: 1rem;
}

.uifc-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.uifc-btn-primary {
  background-color: var(--uifc-primary);
  color: var(--uifc-secondary);
}

.uifc-btn-primary:hover {
  background-color: var(--uifc-light);
  transform: scale(1.05);
}

.uifc-btn-secondary {
  background-color: transparent;
  color: var(--uifc-primary);
  border: 2px solid var(--uifc-primary);
}

.uifc-btn-secondary:hover {
  background-color: var(--uifc-primary);
  color: var(--uifc-secondary);
}

/* Mobile Menu */
.uifc-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.uifc-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--uifc-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.uifc-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--uifc-secondary);
  border-bottom: 2px solid var(--uifc-primary);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  max-width: 430px;
  margin: 0 auto;
}

.uifc-mobile-menu.uifc-menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.uifc-nav-list {
  list-style: none;
  padding: 0 1.5rem;
}

.uifc-nav-item {
  margin-bottom: 0.5rem;
}

.uifc-nav-link {
  display: block;
  padding: 1rem;
  color: var(--uifc-light);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 1.5rem;
}

.uifc-nav-link:hover {
  background-color: var(--uifc-accent);
}

/* Main Content */
.uifc-main {
  margin-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 140px);
}

/* Carousel */
.uifc-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.uifc-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.uifc-carousel-slide.uifc-active {
  opacity: 1;
}

.uifc-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.uifc-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.uifc-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.uifc-carousel-dot.uifc-active {
  background-color: var(--uifc-primary);
  transform: scale(1.2);
}

/* Typography */
.uifc-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--uifc-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.uifc-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--uifc-primary);
  margin: 2rem 0 1rem;
}

.uifc-h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--uifc-light);
  margin: 1.5rem 0 1rem;
}

.uifc-p {
  margin-bottom: 1rem;
  color: var(--uifc-light);
}

/* Game Grid */
.uifc-game-section {
  margin-bottom: 2rem;
}

.uifc-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--uifc-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--uifc-accent);
}

.uifc-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.uifc-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.uifc-game-item:hover {
  transform: scale(1.05);
}

.uifc-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--uifc-accent);
  margin-bottom: 0.5rem;
}

.uifc-game-name {
  font-size: 1.1rem;
  color: var(--uifc-light);
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
}

/* Content Modules */
.uifc-card {
  background-color: var(--uifc-accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--uifc-border);
}

.uifc-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--uifc-primary);
  margin-bottom: 1rem;
}

.uifc-card-content {
  color: var(--uifc-light);
  line-height: 1.6;
}

.uifc-link {
  color: var(--uifc-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--uifc-primary);
  transition: all 0.3s ease;
}

.uifc-link:hover {
  color: var(--uifc-light);
  border-color: var(--uifc-light);
}

/* Footer */
.uifc-footer {
  background-color: var(--uifc-accent);
  border-top: 2px solid var(--uifc-primary);
  padding: 2rem 0;
  margin-top: 2rem;
}

.uifc-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.uifc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.uifc-footer-link {
  color: var(--uifc-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.uifc-footer-link:hover {
  color: var(--uifc-light);
}

.uifc-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.uifc-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.uifc-partner-logo:hover {
  opacity: 1;
}

.uifc-copyright {
  text-align: center;
  color: var(--uifc-muted);
  font-size: 1.2rem;
}

/* Bottom Navigation (Mobile) */
.uifc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--uifc-secondary) 0%, var(--uifc-accent) 100%);
  border-top: 2px solid var(--uifc-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--uifc-shadow);
}

.uifc-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.uifc-nav-item:active {
  transform: scale(0.95);
}

.uifc-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--uifc-primary);
  transition: color 0.3s ease;
}

.uifc-nav-text {
  font-size: 10px;
  color: var(--uifc-muted);
  transition: color 0.3s ease;
}

.uifc-nav-item:hover .uifc-nav-icon,
.uifc-nav-item:hover .uifc-nav-text {
  color: var(--uifc-light);
}

/* Responsive */
@media (min-width: 769px) {
  .uifc-bottom-nav {
    display: none;
  }

  .uifc-main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.uifc-text-center {
  text-align: center;
}

.uifc-mt-1 {
  margin-top: 1rem;
}

.uifc-mb-1 {
  margin-bottom: 1rem;
}

.uifc-mt-2 {
  margin-top: 2rem;
}

.uifc-mb-2 {
  margin-bottom: 2rem;
}

/* Animations */
@keyframes uifc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uifc-loaded .uifc-card,
.uifc-loaded .uifc-game-section {
  animation: uifc-fadeIn 0.5s ease forwards;
}
