/**
 * PH25 Layout Stylesheet
 * All classes use 'we3c5-' prefix for namespace isolation
 * Mobile-first responsive design with dark theme
 */

/* ===== CSS Variables ===== */
:root {
  --we3c5-primary: #00FFFF;
  --we3c5-primary-light: #00E5FF;
  --we3c5-secondary: #DDA0DD;
  --we3c5-bg-dark: #262626;
  --we3c5-bg-darker: #1a1a1a;
  --we3c5-bg-light: #F0FDFF;
  --we3c5-text-primary: #F0FDFF;
  --we3c5-text-secondary: #DDA0DD;
  --we3c5-text-muted: #999999;
  --we3c5-border: #DDA0DD;
  --we3c5-shadow: rgba(0, 255, 255, 0.2);
  --we3c5-gradient: linear-gradient(135deg, #00FFFF 0%, #00E5FF 50%, #DDA0DD 100%);
}

/* ===== 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--we3c5-text-primary);
  background-color: var(--we3c5-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Container ===== */
.we3c5-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.we3c5-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .we3c5-wrapper {
    padding-bottom: 0;
  }
}

/* ===== Header ===== */
.we3c5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--we3c5-bg-darker) 0%, var(--we3c5-bg-dark) 100%);
  border-bottom: 2px solid var(--we3c5-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--we3c5-shadow);
  transition: all 0.3s ease;
}

.we3c5-header.we3c5-header-scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

.we3c5-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.we3c5-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--we3c5-text-primary);
}

.we3c5-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.we3c5-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--we3c5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.we3c5-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.we3c5-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.we3c5-btn-primary {
  background: var(--we3c5-gradient);
  color: var(--we3c5-bg-dark);
  box-shadow: 0 2px 8px var(--we3c5-shadow);
}

.we3c5-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--we3c5-shadow);
}

.we3c5-btn-secondary {
  background: transparent;
  color: var(--we3c5-primary);
  border: 2px solid var(--we3c5-primary);
}

.we3c5-btn-secondary:hover {
  background: var(--we3c5-primary);
  color: var(--we3c5-bg-dark);
}

.we3c5-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--we3c5-primary);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.we3c5-menu-toggle:hover {
  background: rgba(0, 255, 255, 0.1);
}

@media (min-width: 769px) {
  .we3c5-menu-toggle {
    display: none;
  }
}

/* ===== Mobile Menu ===== */
.we3c5-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 60px);
  background: var(--we3c5-bg-darker);
  border-right: 2px solid var(--we3c5-primary);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.we3c5-mobile-menu.we3c5-menu-open {
  left: 0;
}

.we3c5-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--we3c5-text-primary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.we3c5-menu-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-left-color: var(--we3c5-primary);
  color: var(--we3c5-primary);
}

.we3c5-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.we3c5-menu-open .we3c5-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* ===== Carousel ===== */
.we3c5-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--we3c5-shadow);
}

.we3c5-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.we3c5-slide.we3c5-slide-active {
  opacity: 1;
}

.we3c5-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Hero Section ===== */
.we3c5-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.we3c5-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--we3c5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.we3c5-hero p {
  font-size: 1.4rem;
  color: var(--we3c5-text-secondary);
  line-height: 1.6;
}

/* ===== Game Grid ===== */
.we3c5-game-section {
  margin-bottom: 2.5rem;
}

.we3c5-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--we3c5-primary);
  color: var(--we3c5-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.we3c5-section-title i {
  color: var(--we3c5-primary);
}

.we3c5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.we3c5-game-card {
  background: var(--we3c5-bg-darker);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(221, 160, 221, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.we3c5-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--we3c5-primary);
  box-shadow: 0 4px 15px var(--we3c5-shadow);
}

.we3c5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.we3c5-game-name {
  padding: 0.5rem 0.3rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--we3c5-text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Content Cards ===== */
.we3c5-card {
  background: var(--we3c5-bg-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(221, 160, 221, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.we3c5-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--we3c5-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.we3c5-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--we3c5-text-primary);
}

.we3c5-card-content p {
  margin-bottom: 1rem;
}

.we3c5-card-content a {
  color: var(--we3c5-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.we3c5-card-content a:hover {
  color: var(--we3c5-secondary);
  text-decoration: underline;
}

/* ===== List Styles ===== */
.we3c5-list {
  list-style: none;
  padding: 0;
}

.we3c5-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(221, 160, 221, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.we3c5-list li:last-child {
  border-bottom: none;
}

.we3c5-list-icon {
  color: var(--we3c5-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ===== Footer ===== */
.we3c5-footer {
  background: var(--we3c5-bg-darker);
  padding: 2rem 0 1rem;
  border-top: 2px solid var(--we3c5-primary);
  margin-top: 2rem;
}

.we3c5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.we3c5-footer-link {
  color: var(--we3c5-primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.we3c5-footer-link:hover {
  color: var(--we3c5-secondary);
}

.we3c5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.we3c5-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.we3c5-partner-logo:hover {
  opacity: 1;
}

.we3c5-copyright {
  text-align: center;
  color: var(--we3c5-text-muted);
  font-size: 1.2rem;
}

/* ===== Mobile Bottom Navigation ===== */
.we3c5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--we3c5-bg-dark) 0%, var(--we3c5-bg-darker) 100%);
  border-top: 2px solid var(--we3c5-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--we3c5-shadow);
}

@media (min-width: 769px) {
  .we3c5-bottom-nav {
    display: none;
  }
}

.we3c5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--we3c5-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.3rem;
}

.we3c5-nav-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: scale(1.05);
}

.we3c5-nav-item.we3c5-active {
  color: var(--we3c5-primary);
}

.we3c5-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.we3c5-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Utility Classes ===== */
.we3c5-text-center {
  text-align: center;
}

.we3c5-mt-1 {
  margin-top: 1rem;
}

.we3c5-mb-1 {
  margin-bottom: 1rem;
}

.we3c5-mb-2 {
  margin-bottom: 2rem;
}

.we3c5-highlight {
  color: var(--we3c5-primary);
  font-weight: 600;
}

.we3c5-link {
  color: var(--we3c5-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.we3c5-link:hover {
  color: var(--we3c5-secondary);
  text-decoration: underline;
}

/* ===== Animations ===== */
@keyframes we3c5-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.we3c5-animate-fadeIn {
  animation: we3c5-fadeIn 0.5s ease forwards;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .we3c5-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .we3c5-game-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .we3c5-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
