/*
 * superph11 CSS Styles - Mobile-First Gaming Platform
 * Version: 1.0
 * Prefix: ui67-
 * Colors: #F08080 (light/text), #273746 (dark/background)
 */

/* CSS Variables */
:root {
  --ui67-primary: #F08080;
  --ui67-secondary: #FF6B6B;
  --ui67-accent: #FFB347;
  --ui67-bg: #273746;
  --ui67-surface: #34495e;
  --ui67-text: #F08080;
  --ui67-text-secondary: #ecf0f1;
  --ui67-border: #495057;
  --ui67-shadow: rgba(240, 128, 128, 0.2);
  --ui67-gradient: linear-gradient(135deg, #F08080 0%, #FF6B6B 50%, #FFB347 100%);
  --ui67-header-height: 60px;
  --ui67-bottom-nav-height: 60px;
}

/* Base Reset */
* {
  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.4rem;
  line-height: 1.5;
  color: var(--ui67-text);
  background: var(--ui67-bg);
  overflow-x: hidden;
}

/* Layout Containers */
.ui67-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.ui67-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--ui67-header-height);
  padding-bottom: var(--ui67-bottom-nav-height);
}

.ui67-main {
  flex: 1;
  padding: 1.6rem 0;
}

/* Header Styles */
.ui67-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ui67-header-height);
  background: rgba(39, 55, 70, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ui67-border);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ui67-header.ui67-scrolled {
  background: rgba(39, 55, 70, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ui67-header.ui67-hidden {
  transform: translateY(-100%);
}

.ui67-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.ui67-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ui67-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.ui67-logo img {
  width: 28px;
  height: 28px;
  margin-right: 0.8rem;
  border-radius: 4px;
}

.ui67-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ui67-auth-btns {
  display: flex;
  gap: 0.8rem;
}

.ui67-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  white-space: nowrap;
}

.ui67-btn-primary {
  background: var(--ui67-gradient);
  color: var(--ui67-bg);
}

.ui67-btn-secondary {
  background: transparent;
  color: var(--ui67-primary);
  border: 1px solid var(--ui67-primary);
}

.ui67-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  min-height: 36px;
}

.ui67-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ui67-shadow);
}

.ui67-btn:active {
  transform: translateY(0);
}

/* Menu Toggle Button */
.ui67-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.ui67-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--ui67-text);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.ui67-menu-toggle.ui67-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ui67-menu-toggle.ui67-active span:nth-child(2) {
  opacity: 0;
}

.ui67-menu-toggle.ui67-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.ui67-nav-menu {
  position: fixed;
  top: var(--ui67-header-height);
  left: -100%;
  width: 280px;
  height: calc(100vh - var(--ui67-header-height));
  background: rgba(52, 73, 94, 0.98);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--ui67-border);
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.ui67-nav-menu.ui67-active {
  left: 0;
}

.ui67-nav-overlay {
  position: fixed;
  top: var(--ui67-header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--ui67-header-height));
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ui67-nav-overlay.ui67-active {
  opacity: 1;
  visibility: visible;
}

.ui67-nav-links {
  list-style: none;
  padding: 2rem 0;
}

.ui67-nav-links li {
  border-bottom: 1px solid rgba(73, 80, 87, 0.3);
}

.ui67-nav-links a {
  display: flex;
  align-items: center;
  padding: 1.6rem 2rem;
  color: var(--ui67-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ui67-nav-links a:hover {
  background: rgba(240, 128, 128, 0.1);
  color: var(--ui67-primary);
}

.ui67-nav-links a i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

/* Typography */
.ui67-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  background: var(--ui67-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ui67-h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--ui67-text);
}

.ui67-h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ui67-text);
}

.ui67-text {
  color: var(--ui67-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.ui67-text-center {
  text-align: center;
}

.ui67-text-primary {
  color: var(--ui67-primary);
}

/* Sections */
.ui67-section {
  padding: 2.4rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.ui67-section.ui67-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.ui67-card {
  background: var(--ui67-surface);
  border: 1px solid var(--ui67-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ui67-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(240, 128, 128, 0.15);
  border-color: var(--ui67-primary);
}

/* Carousel */
.ui67-carousel {
  position: relative;
  margin-bottom: 2.4rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.ui67-carousel-inner {
  position: relative;
  height: 200px;
}

.ui67-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ui67-slide.ui67-active {
  opacity: 1;
}

.ui67-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui67-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.ui67-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ui67-indicator.ui67-active {
  background: var(--ui67-primary);
  transform: scale(1.2);
}

/* Game Categories */
.ui67-game-category {
  margin-bottom: 2.4rem;
}

.ui67-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--ui67-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ui67-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.ui67-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: var(--ui67-surface);
  border: 1px solid var(--ui67-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  transform: scale(0.95);
  text-decoration: none;
  color: var(--ui67-text-secondary);
}

.ui67-game-item.ui67-loaded {
  opacity: 1;
  transform: scale(1);
}

.ui67-game-item:hover {
  transform: scale(1.05);
  background: rgba(240, 128, 128, 0.1);
  border-color: var(--ui67-primary);
}

.ui67-game-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.ui67-game-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Bottom Navigation */
.ui67-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--ui67-bottom-nav-height);
  background: rgba(52, 73, 94, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--ui67-border);
  z-index: 1000;
}

.ui67-bottom-nav-content {
  display: flex;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.ui67-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: all 0.3s ease;
}

.ui67-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ui67-text-secondary);
  transition: all 0.3s ease;
}

.ui67-bottom-nav-item.ui67-active a {
  color: var(--ui67-primary);
}

.ui67-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
}

.ui67-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.ui67-bottom-nav-item:hover a {
  color: var(--ui67-primary);
  transform: translateY(-2px);
}

.ui67-bottom-nav-item:active {
  transform: scale(0.95);
}

/* Footer */
.ui67-footer {
  background: var(--ui67-surface);
  border-top: 1px solid var(--ui67-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.ui67-footer-content {
  text-align: center;
}

.ui67-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
  list-style: none;
}

.ui67-footer-links a {
  color: var(--ui67-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.ui67-footer-links a:hover {
  color: var(--ui67-primary);
}

.ui67-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.ui67-partner-img {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.ui67-partner-img:hover {
  opacity: 1;
}

.ui67-copyright {
  font-size: 1.1rem;
  color: var(--ui67-text-secondary);
}

/* Utility Classes */
.ui67-mb-1 { margin-bottom: 0.8rem; }
.ui67-mb-2 { margin-bottom: 1.6rem; }
.ui67-mb-3 { margin-bottom: 2.4rem; }
.ui67-mt-1 { margin-top: 0.8rem; }
.ui67-mt-2 { margin-top: 1.6rem; }
.ui67-mt-3 { margin-top: 2.4rem; }

.ui67-flex {
  display: flex;
}

.ui67-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui67-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui67-grid {
  display: grid;
  gap: 1.6rem;
}

.ui67-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.ui67-hidden {
  display: none;
}

/* Media Queries */
@media (min-width: 375px) {
  .ui67-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  
  .ui67-game-item img {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 430px) {
  .ui67-container {
    padding: 0 2rem;
  }
  
  .ui67-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (min-width: 768px) {
  .ui67-nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }
  
  .ui67-nav-links {
    display: flex;
    padding: 0;
  }
  
  .ui67-nav-links li {
    border: none;
  }
  
  .ui67-nav-links a {
    padding: 1rem 1.6rem;
  }
  
  .ui67-menu-toggle,
  .ui67-nav-overlay {
    display: none;
  }
  
  .ui67-bottom-nav {
    display: none;
  }
  
  .ui67-wrapper {
    padding-bottom: 0;
  }
}

/* Loading States */
.ui67-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Animations */
@keyframes ui67FadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ui67Pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.ui67-animate-fade-up {
  animation: ui67FadeInUp 0.6s ease-out;
}

.ui67-animate-pulse {
  animation: ui67Pulse 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--ui67-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--ui67-primary);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ui67-secondary);
}

/* Focus States */
.ui67-btn:focus,
.ui67-nav-links a:focus,
.ui67-game-item:focus {
  outline: 2px solid var(--ui67-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --ui67-text: #FFFFFF;
    --ui67-bg: #000000;
    --ui67-border: #FFFFFF;
  }
}