/* WinDream PH CSS Design System - Mobile-first responsive design */
/* All classes use veb3- prefix for namespacing */

/* CSS Custom Properties (Variables) */
:root {
  --veb3-primary: #AD1457;
  --veb3-primary-dark: #880E4F;
  --veb3-primary-light: #D81B60;
  --veb3-secondary: #FFAA00;
  --veb3-secondary-dark: #FF8F00;
  --veb3-accent: #FFC0CB;
  --veb3-accent-dark: #FFB6C1;
  --veb3-warning: #FFB347;
  --veb3-warning-dark: #FFA726;
  --veb3-dark: #0A0A0A;
  --veb3-darker: #000000;
  --veb3-light: #FFFFFF;
  --veb3-gray: #333333;
  --veb3-gray-light: #666666;
  --veb3-gray-lighter: #999999;
  --veb3-gray-bg: #F5F5F5;
  --veb3-border: #E0E0E0;
  --veb3-shadow: rgba(0, 0, 0, 0.1);
  --veb3-shadow-dark: rgba(0, 0, 0, 0.3);
  --veb3-radius-small: 4px;
  --veb3-radius: 8px;
  --veb3-radius-large: 16px;
  --veb3-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--veb3-light);
  background-color: var(--veb3-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container and Layout */
.veb3-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.veb3-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.veb3-main {
  flex: 1;
  padding-bottom: 80px; /* Space for bottom nav */
}

.veb3-section {
  padding: 20px 0;
}

.veb3-grid {
  display: grid;
  gap: 15px;
}

.veb3-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.veb3-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.veb3-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.veb3-flex {
  display: flex;
}

.veb3-flex-center {
  justify-content: center;
  align-items: center;
}

.veb3-flex-between {
  justify-content: space-between;
  align-items: center;
}

.veb3-flex-column {
  flex-direction: column;
}

.veb3-flex-wrap {
  flex-wrap: wrap;
}

/* Header Styles */
.veb3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--veb3-darker) 0%, var(--veb3-dark) 100%);
  border-bottom: 1px solid var(--veb3-border);
  z-index: 1000;
  transition: var(--veb3-transition);
  transform: translateY(0);
}

.veb3-header-hidden {
  transform: translateY(-100%);
}

.veb3-header-content {
  height: 60px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.veb3-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--veb3-light);
  font-weight: bold;
  font-size: 1.8rem;
}

.veb3-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--veb3-radius-small);
}

.veb3-nav-buttons {
  display: flex;
  gap: 10px;
}

.veb3-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--veb3-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--veb3-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.veb3-btn-primary {
  background: linear-gradient(135deg, var(--veb3-primary) 0%, var(--veb3-primary-dark) 100%);
  color: var(--veb3-light);
}

.veb3-btn-primary:hover {
  background: linear-gradient(135deg, var(--veb3-primary-light) 0%, var(--veb3-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--veb3-shadow-dark);
}

.veb3-btn-secondary {
  background: transparent;
  color: var(--veb3-light);
  border: 2px solid var(--veb3-primary);
}

.veb3-btn-secondary:hover {
  background: var(--veb3-primary);
  transform: translateY(-2px);
}

.veb3-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--veb3-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--veb3-radius);
  transition: var(--veb3-transition);
}

.veb3-menu-toggle:hover {
  background: var(--veb3-gray);
}

.veb3-menu-toggle.veb3-active {
  background: var(--veb3-primary);
}

/* Mobile Menu */
.veb3-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--veb3-darker) 0%, var(--veb3-dark) 100%);
  z-index: 9999;
  transition: var(--veb3-transition);
  overflow-y: auto;
}

.veb3-mobile-menu.veb3-menu-open {
  left: 0;
}

.veb3-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--veb3-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.veb3-menu-nav {
  padding: 20px 0;
}

.veb3-menu-link {
  display: block;
  padding: 15px 20px;
  color: var(--veb3-light);
  text-decoration: none;
  transition: var(--veb3-transition);
  border-left: 3px solid transparent;
}

.veb3-menu-link:hover {
  background: var(--veb3-gray);
  border-left-color: var(--veb3-primary);
}

.veb3-menu-close {
  background: transparent;
  border: none;
  color: var(--veb3-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--veb3-radius);
}

/* Carousel */
.veb3-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--veb3-radius);
  margin: 70px 0 20px;
}

.veb3-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.veb3-carousel-slide.veb3-active {
  opacity: 1;
}

.veb3-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.veb3-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.veb3-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--veb3-gray-lighter);
  cursor: pointer;
  transition: var(--veb3-transition);
}

.veb3-carousel-indicator.veb3-active {
  background: var(--veb3-primary);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.veb3-games-section {
  padding: 20px 0;
}

.veb3-category-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--veb3-primary);
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.veb3-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.veb3-game-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--veb3-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--veb3-transition);
  background: var(--veb3-gray);
}

.veb3-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--veb3-shadow-dark);
  z-index: 10;
}

.veb3-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.veb3-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--veb3-light);
  padding: 8px 4px;
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
}

/* Cards */
.veb3-card {
  background: linear-gradient(135deg, var(--veb3-gray) 0%, var(--veb3-darker) 100%);
  border-radius: var(--veb3-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px var(--veb3-shadow);
  transition: var(--veb3-transition);
}

.veb3-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--veb3-shadow-dark);
}

.veb3-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--veb3-primary);
  margin-bottom: 12px;
}

.veb3-card-content {
  color: var(--veb3-gray-lighter);
  line-height: 1.6;
}

/* Bottom Navigation */
.veb3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--veb3-darker) 0%, var(--veb3-dark) 100%);
  border-top: 1px solid var(--veb3-border);
  z-index: 1000;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.veb3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--veb3-gray-lighter);
  text-decoration: none;
  transition: var(--veb3-transition);
  padding: 8px;
  border-radius: var(--veb3-radius);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  cursor: pointer;
}

.veb3-bottom-nav-item:hover,
.veb3-bottom-nav-item.veb3-active {
  color: var(--veb3-primary);
  background: var(--veb3-gray);
}

.veb3-bottom-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.veb3-bottom-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Footer */
.veb3-footer {
  background: linear-gradient(180deg, var(--veb3-darker) 0%, var(--veb3-dark) 100%);
  border-top: 2px solid var(--veb3-primary);
  padding: 30px 0;
  margin-top: 40px;
}

.veb3-footer-content {
  text-align: center;
}

.veb3-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.veb3-footer-link {
  color: var(--veb3-gray-lighter);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--veb3-transition);
}

.veb3-footer-link:hover {
  color: var(--veb3-primary);
}

.veb3-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.veb3-partner-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--veb3-radius);
  opacity: 0.7;
  transition: var(--veb3-transition);
}

.veb3-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.veb3-copyright {
  color: var(--veb3-gray-lighter);
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Typography */
.veb3-heading-1 {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--veb3-primary);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.veb3-heading-2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--veb3-primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.veb3-heading-3 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--veb3-secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.veb3-text-center {
  text-align: center;
}

.veb3-text-primary {
  color: var(--veb3-primary);
}

.veb3-text-secondary {
  color: var(--veb3-secondary);
}

.veb3-text-accent {
  color: var(--veb3-accent);
}

/* Utilities */
.veb3-mb-1 { margin-bottom: 10px; }
.veb3-mb-2 { margin-bottom: 15px; }
.veb3-mb-3 { margin-bottom: 20px; }
.veb3-mb-4 { margin-bottom: 25px; }
.veb3-mt-1 { margin-top: 10px; }
.veb3-mt-2 { margin-top: 15px; }
.veb3-mt-3 { margin-top: 20px; }
.veb3-mt-4 { margin-top: 25px; }

.veb3-p-1 { padding: 10px; }
.veb3-p-2 { padding: 15px; }
.veb3-p-3 { padding: 20px; }
.veb3-p-4 { padding: 25px; }

.veb3-hide { display: none; }
.veb3-show { display: block; }

/* Animations */
.veb3-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.veb3-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.veb3-animate-delay-1 {
  transition-delay: 0.1s;
}

.veb3-animate-delay-2 {
  transition-delay: 0.2s;
}

.veb3-animate-delay-3 {
  transition-delay: 0.3s;
}

/* Responsive Design */
@media (min-width: 769px) {
  .veb3-container {
    max-width: 1200px;
    padding: 0 20px;
  }

  .veb3-main {
    padding-bottom: 0;
  }

  .veb3-header-content {
    height: 70px;
    padding: 0 20px;
  }

  .veb3-bottom-nav {
    display: none;
  }

  .veb3-carousel {
    height: 300px;
    margin: 80px 0 30px;
  }

  .veb3-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }

  .veb3-category-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .veb3-heading-1 {
    font-size: 3.2rem;
  }

  .veb3-heading-2 {
    font-size: 2.8rem;
  }

  .veb3-heading-3 {
    font-size: 2.4rem;
  }

  .veb3-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .veb3-menu-toggle {
    display: block;
  }
}

/* Loading States */
.veb3-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Tooltip */
.veb3-tooltip {
  position: fixed;
  background: var(--veb3-darker);
  color: var(--veb3-light);
  padding: 8px 12px;
  border-radius: var(--veb3-radius);
  font-size: 1.2rem;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  animation: veb3-fadeIn 0.3s forwards;
}

@keyframes veb3-fadeIn {
  to {
    opacity: 1;
  }
}

/* Focus and Accessibility */
.veb3-btn:focus,
.veb3-menu-link:focus,
.veb3-footer-link:focus {
  outline: 2px solid var(--veb3-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .veb3-header,
  .veb3-bottom-nav,
  .veb3-mobile-menu {
    display: none;
  }

  .veb3-main {
    padding-bottom: 0;
  }
}