/* swerte99 Layout System - layout-20c8.css */
/* All classes use w20c8- prefix for namespace safety */

/* Root variables */
:root {
  --w20c8-primary: #808080;
  --w20c8-bg: #0A0A0A;
  --w20c8-accent: #F8F8FF;
  --w20c8-text: #F8F8FF;
  --w20c8-text-secondary: #CCCCCC;
  --w20c8-card-bg: rgba(248, 248, 255, 0.1);
  --w20c8-shadow: rgba(0, 0, 0, 0.5);
  --w20c8-radius: 0.8rem;
  --w20c8-transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w20c8-text);
  background-color: var(--w20c8-bg);
  overflow-x: hidden;
}

/* Container and layout */
.w20c8-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.w20c8-wrapper {
  position: relative;
  width: 100%;
}

.w20c8-grid {
  display: grid;
  gap: 1.5rem;
}

/* Header and Navigation */
.w20c8-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--w20c8-shadow);
}

.w20c8-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 60px;
}

.w20c8-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w20c8-primary);
  font-weight: bold;
  font-size: 1.8rem;
  position: relative;
  z-index: 1001;
}

.w20c8-logo img {
  width: 2.8rem;
  height: 2.8rem;
}

.w20c8-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

/* Buttons */
.w20c8-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--w20c8-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w20c8-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.w20c8-btn-primary {
  background: var(--w20c8-primary);
  color: var(--w20c8-accent);
}

.w20c8-btn-primary:hover {
  background: #999999;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

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

.w20c8-btn-secondary:hover {
  background: var(--w20c8-primary);
  color: var(--w20c8-accent);
  transform: translateY(-2px);
}

.w20c8-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
}

/* Mobile menu toggle */
.w20c8-menu-toggle {
  background: none;
  border: none;
  color: var(--w20c8-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.w20c8-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  transform: translateY(-100vh);
  transition: transform 0.3s ease;
  z-index: 999;
  max-height: 100vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}

.w20c8-mobile-menu.w20c8-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.w20c8-mobile-menu ul {
  list-style: none;
  padding: 70px 0 2rem 0;
}

.w20c8-mobile-menu li {
  border-bottom: 1px solid rgba(248, 248, 255, 0.1);
}

.w20c8-mobile-menu a {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--w20c8-text);
  text-decoration: none;
  transition: var(--w20c8-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.w20c8-mobile-menu a:hover {
  background: rgba(248, 248, 255, 0.1);
  color: var(--w20c8-primary);
}

/* Main content */
.w20c8-main {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  padding-bottom: 80px;
}

/* Carousel */
.w20c8-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--w20c8-radius);
  margin-bottom: 2rem;
}

.w20c8-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.w20c8-carousel-slide.w20c8-active {
  opacity: 1;
}

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

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

.w20c8-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--w20c8-transition);
}

.w20c8-carousel-indicator.w20c8-active {
  background: var(--w20c8-primary);
  width: 24px;
  border-radius: 4px;
}

/* Typography */
.w20c8-h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--w20c8-primary);
  text-align: center;
}

.w20c8-h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--w20c8-primary);
}

.w20c8-h3 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--w20c8-text);
}

.w20c8-text {
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--w20c8-text-secondary);
  margin-bottom: 1rem;
}

/* Game grid */
.w20c8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w20c8-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w20c8-transition);
  text-decoration: none;
  display: block;
  color: var(--w20c8-text);
}

.w20c8-game-item:hover {
  transform: scale(1.05);
  color: var(--w20c8-primary);
}

.w20c8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w20c8-radius);
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--w20c8-shadow);
}

.w20c8-game-name {
  font-size: 1.1rem;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.w20c8-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.w20c8-section-title {
  font-size: 2.2rem;
  color: var(--w20c8-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.w20c8-section-subtitle {
  font-size: 1.4rem;
  color: var(--w20c8-text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Cards */
.w20c8-card {
  background: var(--w20c8-card-bg);
  border-radius: var(--w20c8-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(248, 248, 255, 0.2);
  transition: var(--w20c8-transition);
}

.w20c8-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--w20c8-shadow);
  border-color: var(--w20c8-primary);
}

/* Feature grid */
.w20c8-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.w20c8-feature-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(248, 248, 255, 0.05);
  border-radius: var(--w20c8-radius);
  border: 1px solid rgba(248, 248, 255, 0.1);
  transition: var(--w20c8-transition);
}

.w20c8-feature-item:hover {
  background: rgba(248, 248, 255, 0.1);
  transform: translateY(-2px);
}

.w20c8-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--w20c8-primary);
}

/* Bottom navigation */
.w20c8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px var(--w20c8-shadow);
  z-index: 1000;
  height: 60px;
}

.w20c8-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.w20c8-bottom-nav-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: var(--w20c8-transition);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--w20c8-text-secondary);
  text-decoration: none;
  min-height: 44px;
}

.w20c8-bottom-nav-item:hover,
.w20c8-bottom-nav-item.w20c8-active {
  color: var(--w20c8-primary);
}

.w20c8-bottom-nav-icon {
  font-size: 2rem;
}

.w20c8-bottom-nav-label {
  font-size: 1rem;
}

/* Footer */
.w20c8-footer {
  background: rgba(10, 10, 10, 0.95);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.w20c8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.w20c8-footer-links a {
  color: var(--w20c8-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--w20c8-transition);
  padding: 0.5rem;
}

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

.w20c8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(248, 248, 255, 0.05);
  border-radius: var(--w20c8-radius);
}

.w20c8-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--w20c8-transition);
}

.w20c8-partner-logo:hover {
  opacity: 1;
}

.w20c8-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w20c8-text-secondary);
  padding: 1rem;
  opacity: 0.8;
}

/* Utility classes */
.w20c8-text-center {
  text-align: center;
}

.w20c8-mt-1 { margin-top: 1rem; }
.w20c8-mt-2 { margin-top: 2rem; }
.w20c8-mt-3 { margin-top: 3rem; }
.w20c8-mb-1 { margin-bottom: 1rem; }
.w20c8-mb-2 { margin-bottom: 2rem; }
.w20c8-mb-3 { margin-bottom: 3rem; }

/* Animation classes */
.w20c8-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.w20c8-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .w20c8-container {
    max-width: 768px;
  }
  
  .w20c8-mobile-menu {
    display: none;
  }
  
  .w20c8-menu-toggle {
    display: none;
  }
  
  .w20c8-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .w20c8-container {
    padding: 0 1rem;
  }
  
  .w20c8-nav-actions {
    gap: 0.5rem;
  }
  
  .w20c8-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 320px) {
  html { font-size: 55%; }
  .w20c8-game-grid { grid-template-columns: repeat(3, 1fr); }
  .w20c8-feature-grid { grid-template-columns: 1fr; }
}

/* Loading animation */
.w20c8-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(248, 248, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--w20c8-primary);
  animation: w20c8-spin 1s ease-in-out infinite;
}

@keyframes w20c8-spin {
  to { transform: rotate(360deg); }
}

/* Lazy load placeholder */
.w20c8-lazy {
  background: rgba(248, 248, 255, 0.1);
  filter: blur(5px);
  transition: filter 0.3s;
}

/* Text link styling */
.w20c8-text-link {
  color: var(--w20c8-primary);
  text-decoration: none;
  font-weight: bold;
  transition: var(--w20c8-transition);
  border-bottom: 2px solid transparent;
}

.w20c8-text-link:hover {
  color: #999999;
  border-bottom-color: #999999;
}