/**
 * 666phl - Main Stylesheet
 * Mobile-first responsive design with wc901- prefix
 * Color scheme: #1A1A1A (dark background) | #DA70D6 (orchid accent)
 */

/* ===== CSS Variables ===== */
:root {
  --wc901-primary: #DA70D6;
  --wc901-primary-dark: #BA50B6;
  --wc901-bg-dark: #1A1A1A;
  --wc901-bg-darker: #0D0D0D;
  --wc901-bg-lighter: #2A2A2A;
  --wc901-text-light: #FFFFFF;
  --wc901-text-gray: #B0B0B0;
  --wc901-border: #3A3A3A;
  --wc901-success: #4CAF50;
  --wc901-warning: #FF9800;
  --wc901-danger: #F44336;
}

/* ===== Reset & Base ===== */
* {
  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;
  background-color: var(--wc901-bg-dark);
  color: var(--wc901-text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

body.wc901-loaded {
  opacity: 1;
}

a {
  color: var(--wc901-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wc901-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.wc901-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wc901-wrapper {
  padding: 1rem 0;
}

/* ===== Header ===== */
.wc901-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--wc901-bg-darker);
  border-bottom: 1px solid var(--wc901-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wc901-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wc901-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wc901-text-light);
}

.wc901-logo img {
  width: 2.4rem;
  height: 2.4rem;
}

.wc901-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.wc901-menu-toggle span {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  background-color: var(--wc901-primary);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

.wc901-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.wc901-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.wc901-btn-primary {
  background: linear-gradient(135deg, var(--wc901-primary) 0%, var(--wc901-primary-dark) 100%);
  color: var(--wc901-text-light);
  box-shadow: 0 4px 15px rgba(218, 112, 214, 0.3);
}

.wc901-btn-primary:hover,
.wc901-btn-primary.wc901-touching {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 112, 214, 0.5);
}

.wc901btn-secondary {
  background-color: transparent;
  color: var(--wc901-primary);
  border: 2px solid var(--wc901-primary);
}

.wc901-btn-secondary:hover,
.wc901-btn-secondary.wc901-touching {
  background-color: var(--wc901-primary);
  color: var(--wc901-text-light);
}

/* ===== Mobile Menu ===== */
.wc901-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--wc901-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.wc901-mobile-menu.wc901-menu-open {
  right: 0;
}

.wc901-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wc901-mobile-menu.wc901-menu-open + .wc901-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.wc901-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--wc901-border);
}

.wc901-menu-close {
  background: none;
  border: none;
  color: var(--wc901-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wc901-menu-nav {
  padding: 1rem 0;
}

.wc901-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--wc901-text-light);
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.wc901-menu-link:hover {
  background-color: var(--wc901-bg-lighter);
  border-left-color: var(--wc901-primary);
  padding-left: 2rem;
}

/* ===== Main Content ===== */
main {
  padding-top: 7rem;
  padding-bottom: 8rem;
}

.wc901-section {
  padding: 2rem 0;
}

.wc901-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wc901-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.wc901-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wc901-text-light);
  margin: 1.5rem 0 1rem;
}

/* ===== Carousel ===== */
.wc901-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.wc901-carousel-slide {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.wc901-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Game Grid ===== */
.wc901-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.wc901-game-card {
  background-color: var(--wc901-bg-lighter);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.wc901-game-card:hover {
  border-color: var(--wc901-primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(218, 112, 214, 0.3);
}

.wc901-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wc901-game-name {
  padding: 0.8rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--wc901-text-light);
  font-weight: 500;
  line-height: 1.3;
}

/* ===== Card Component ===== */
.wc901-card {
  background-color: var(--wc901-bg-lighter);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--wc901-border);
}

.wc901-card-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--wc901-primary);
  margin-bottom: 1rem;
}

/* ===== List Component ===== */
.wc901-list {
  list-style: none;
  padding: 0;
}

.wc901-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--wc901-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.wc901-list-item:last-child {
  border-bottom: none;
}

.wc901-list-icon {
  color: var(--wc901-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.wc901-list-content {
  flex: 1;
}

/* ===== Footer ===== */
.wc901-footer {
  background-color: var(--wc901-bg-darker);
  border-top: 1px solid var(--wc901-border);
  padding: 2rem 0 8rem;
}

.wc901-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.wc901-footer-link {
  color: var(--wc901-text-gray);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wc901-border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.wc901-footer-link:hover {
  border-color: var(--wc901-primary);
  color: var(--wc901-primary);
}

.wc901-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.wc901-partner-logo {
  width: 6rem;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wc901-partner-logo:hover {
  opacity: 1;
}

.wc901-copyright {
  text-align: center;
  color: var(--wc901-text-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* ===== Mobile Bottom Navigation ===== */
.wc901-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--wc901-bg-lighter) 0%, var(--wc901-bg-darker) 100%);
  border-top: 2px solid var(--wc901-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.wc901-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wc901-text-gray);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.wc901-nav-item:hover,
.wc901-nav-item.wc901-active {
  color: var(--wc901-primary);
  transform: scale(1.1);
}

.wc901-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.wc901-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .wc901-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* ===== Utility Classes ===== */
.wc901-text-center {
  text-align: center;
}

.wc901-mt-1 { margin-top: 1rem; }
.wc901-mt-2 { margin-top: 2rem; }
.wc901-mb-1 { margin-bottom: 1rem; }
.wc901-mb-2 { margin-bottom: 2rem; }

.wc901-text-primary {
  color: var(--wc901-primary);
}

.wc901-text-gradient {
  background: linear-gradient(135deg, var(--wc901-primary) 0%, #FF69B4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Animations ===== */
@keyframes wc901FadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wc901-animate-fade-in {
  animation: wc901FadeIn 0.5s ease forwards;
}

/* ===== Accessibility ===== */
.wc901-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
.wc901-btn:focus,
.wc901-nav-item:focus,
.wc901-game-card:focus {
  outline: 2px solid var(--wc901-primary);
  outline-offset: 2px;
}
