/**
 * Milyon Theme Stylesheet
 * All classes use w4c7e- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --w4c7e-primary: #00E5FF;
  --w4c7e-secondary: #8B4513;
  --w4c7e-tertiary: #6F4E37;
  --w4c7e-accent: #0097A7;
  --w4c7e-dark: #262626;
  --w4c7e-bg: #1a1a1a;
  --w4c7e-bg-light: #2a2a2a;
  --w4c7e-text: #ffffff;
  --w4c7e-text-muted: #b0b0b0;
  --w4c7e-border: #3a3a3a;
  --w4c7e-shadow: rgba(0, 229, 255, 0.2);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w4c7e-text);
  background-color: var(--w4c7e-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.w4c7e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.w4c7e-wrapper {
  padding-top: 70px;
  padding-bottom: 80px;
}

/* Header */
.w4c7e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w4c7e-dark) 0%, var(--w4c7e-bg) 100%);
  box-shadow: 0 2px 10px var(--w4c7e-shadow);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.w4c7e-header-hidden {
  transform: translateY(-100%);
}

.w4c7e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 60px;
}

.w4c7e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w4c7e-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.w4c7e-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.w4c7e-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.w4c7e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.w4c7e-btn-primary {
  background: linear-gradient(135deg, var(--w4c7e-primary) 0%, var(--w4c7e-accent) 100%);
  color: var(--w4c7e-dark);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}

.w4c7e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.5);
}

.w4c7e-btn-secondary {
  background: transparent;
  color: var(--w4c7e-primary);
  border: 2px solid var(--w4c7e-primary);
}

.w4c7e-btn-secondary:hover {
  background: var(--w4c7e-primary);
  color: var(--w4c7e-dark);
}

.w4c7e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.w4c7e-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--w4c7e-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.w4c7e-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--w4c7e-bg-light);
  box-shadow: -2px 0 10px var(--w4c7e-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.w4c7e-menu-open {
  right: 0 !important;
}

.w4c7e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.w4c7e-menu-open + .w4c7e-menu-overlay {
  display: block;
}

.w4c7e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.w4c7e-menu-close {
  background: none;
  border: none;
  color: var(--w4c7e-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.w4c7e-menu-nav {
  display: flex;
  flex-direction: column;
}

.w4c7e-menu-nav a {
  padding: 1rem 1.5rem;
  color: var(--w4c7e-text);
  text-decoration: none;
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.w4c7e-menu-nav a:hover {
  background: var(--w4c7e-bg);
  border-left-color: var(--w4c7e-primary);
  color: var(--w4c7e-primary);
}

/* Carousel */
.w4c7e-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--w4c7e-shadow);
}

.w4c7e-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w4c7e-carousel-slide {
  min-width: 100%;
  position: relative;
}

.w4c7e-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.w4c7e-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w4c7e-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w4c7e-carousel-dot.w4c7e-active {
  background: var(--w4c7e-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.w4c7e-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--w4c7e-bg-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.w4c7e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w4c7e-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w4c7e-section-title i {
  font-size: 1.8rem;
}

/* Game Grid */
.w4c7e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w4c7e-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--w4c7e-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.w4c7e-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--w4c7e-shadow);
}

.w4c7e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w4c7e-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--w4c7e-text);
  background: var(--w4c7e-bg-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card */
.w4c7e-card {
  background: var(--w4c7e-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.w4c7e-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w4c7e-primary);
  margin-bottom: 1rem;
}

.w4c7e-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--w4c7e-text-muted);
}

/* List */
.w4c7e-list {
  list-style: none;
}

.w4c7e-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w4c7e-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.w4c7e-list-item:last-child {
  border-bottom: none;
}

.w4c7e-list-icon {
  color: var(--w4c7e-primary);
  font-size: 1.5rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.w4c7e-list-content {
  flex: 1;
}

.w4c7e-list-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w4c7e-text);
  margin-bottom: 0.3rem;
}

.w4c7e-list-desc {
  font-size: 1.4rem;
  color: var(--w4c7e-text-muted);
  line-height: 1.5;
}

/* Footer */
.w4c7e-footer {
  background: var(--w4c7e-dark);
  padding: 3rem 0 8rem;
  margin-top: 3rem;
}

.w4c7e-footer-content {
  margin-bottom: 2rem;
}

.w4c7e-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w4c7e-primary);
  margin-bottom: 1rem;
}

.w4c7e-footer-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--w4c7e-text-muted);
  margin-bottom: 1rem;
}

.w4c7e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w4c7e-footer-links a {
  color: var(--w4c7e-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.w4c7e-footer-links a:hover {
  color: var(--w4c7e-accent);
}

.w4c7e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.w4c7e-partners img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w4c7e-partners img:hover {
  opacity: 1;
}

.w4c7e-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: var(--w4c7e-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--w4c7e-border);
}

/* Bottom Navigation (Mobile) */
.w4c7e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--w4c7e-bg-light) 0%, var(--w4c7e-dark) 100%);
  box-shadow: 0 -2px 10px var(--w4c7e-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.w4c7e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w4c7e-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
}

.w4c7e-bottom-nav-item:hover,
.w4c7e-bottom-nav-item.w4c7e-active {
  color: var(--w4c7e-primary);
  transform: scale(1.1);
}

.w4c7e-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.w4c7e-bottom-nav-text {
  font-size: 11px;
  font-weight: 500;
}

/* Hide bottom navigation on desktop */
@media (min-width: 769px) {
  .w4c7e-bottom-nav {
    display: none;
  }

  .w4c7e-wrapper {
    padding-bottom: 2rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Animations */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Utility Classes */
.w4c7e-text-center {
  text-align: center;
}

.w4c7e-mb-1 {
  margin-bottom: 1rem;
}

.w4c7e-mb-2 {
  margin-bottom: 2rem;
}

.w4c7e-mt-1 {
  margin-top: 1rem;
}

.w4c7e-mt-2 {
  margin-top: 2rem;
}
