/* iaron play CSS design with ve9c- prefix */
/* Mental wellness gaming platform styles */

:root {
  /* Color palette - Mental wellness theme */
  --ve9c-primary: #32CD32; /* Lime green - growth, vitality */
  --ve9c-secondary: #7FFF00; /* Chartreuse - energy, renewal */
  --ve9c-accent: #FFB6C1; /* Pink - compassion, warmth */
  --ve9c-dark: #2C2C2C; /* Dark gray - stability, focus */
  --ve9c-gray: #696969; /* Gray - balance, neutrality */
  --ve9c-white: #FFFFFF;
  --ve9c-black: #000000;
  --ve9c-bg-dark: #1a1a1a;
  --ve9c-bg-light: #f5f5f5;
  --ve9c-text-light: #e0e0e0;
  --ve9c-text-dark: #333333;
  --ve9c-gradient: linear-gradient(135deg, var(--ve9c-primary) 0%, var(--ve9c-secondary) 100%);

  /* Spacing */
  --ve9c-spacing-xs: 0.5rem;
  --ve9c-spacing-sm: 1rem;
  --ve9c-spacing-md: 1.5rem;
  --ve9c-spacing-lg: 2rem;
  --ve9c-spacing-xl: 3rem;

  /* Typography */
  --ve9c-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ve9c-font-size-xs: 1rem;
  --ve9c-font-size-sm: 1.2rem;
  --ve9c-font-size-md: 1.4rem;
  --ve9c-font-size-lg: 1.6rem;
  --ve9c-font-size-xl: 2rem;
  --ve9c-font-size-xxl: 2.4rem;

  /* Shadows */
  --ve9c-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --ve9c-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --ve9c-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --ve9c-transition: all 0.3s ease;
  --ve9c-transition-fast: all 0.15s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--ve9c-font-primary);
  font-size: var(--ve9c-font-size-sm);
  line-height: 1.5;
  color: var(--ve9c-text-light);
  background-color: var(--ve9c-bg-dark);
  overflow-x: hidden;
  max-width: 100%;
}

/* Container and layout */
.ve9c-container {
  width: 100%;
  max-width: 430px; /* Mobile-first max width */
  margin: 0 auto;
  padding: 0 var(--ve9c-spacing-sm);
}

.ve9c-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ve9c-main {
  flex: 1;
  padding-bottom: 8rem; /* Space for fixed bottom nav */
}

/* Header */
.ve9c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--ve9c-dark) 0%, rgba(44, 44, 44, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(50, 205, 50, 0.3);
  transition: var(--ve9c-transition);
}

.ve9c-header.scrolled {
  background: rgba(44, 44, 44, 0.98);
  box-shadow: var(--ve9c-shadow-md);
}

.ve9c-header.hidden {
  transform: translateY(-100%);
}

.ve9c-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ve9c-spacing-xs) var(--ve9c-spacing-sm);
  height: 6rem;
}

.ve9c-logo {
  display: flex;
  align-items: center;
  gap: var(--ve9c-spacing-xs);
  text-decoration: none;
  color: var(--ve9c-white);
  font-weight: bold;
  font-size: var(--ve9c-font-size-lg);
}

.ve9c-logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--ve9c-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ve9c-white);
}

.ve9c-header-actions {
  display: flex;
  align-items: center;
  gap: var(--ve9c-spacing-xs);
}

.ve9c-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: var(--ve9c-font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--ve9c-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem; /* Touch-friendly minimum */
  white-space: nowrap;
}

.ve9c-btn-primary {
  background: var(--ve9c-gradient);
  color: var(--ve9c-white);
  box-shadow: var(--ve9c-shadow-sm);
}

.ve9c-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ve9c-shadow-md);
}

.ve9c-btn-secondary {
  background: transparent;
  color: var(--ve9c-secondary);
  border: 2px solid var(--ve9c-secondary);
}

.ve9c-btn-secondary:hover {
  background: var(--ve9c-secondary);
  color: var(--ve9c-dark);
}

.ve9c-menu-toggle {
  background: none;
  border: none;
  color: var(--ve9c-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.ve9c-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--ve9c-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-top: 6rem;
}

.ve9c-mobile-menu.active {
  right: 0;
}

.ve9c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--ve9c-transition);
}

.ve9c-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ve9c-menu-list {
  list-style: none;
  padding: var(--ve9c-spacing-sm);
}

.ve9c-menu-item {
  margin-bottom: var(--ve9c-spacing-xs);
}

.ve9c-menu-link {
  display: block;
  padding: 1.2rem var(--ve9c-spacing-sm);
  color: var(--ve9c-text-light);
  text-decoration: none;
  font-size: var(--ve9c-font-size-md);
  border-radius: 0.5rem;
  transition: var(--ve9c-transition);
}

.ve9c-menu-link:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--ve9c-primary);
}

/* Hero carousel */
.ve9c-carousel {
  position: relative;
  margin-top: 6rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--ve9c-shadow-lg);
}

.ve9c-carousel-inner {
  position: relative;
  width: 100%;
  height: 200px;
}

.ve9c-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.ve9c-carousel-slide.active {
  opacity: 1;
}

.ve9c-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ve9c-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.ve9c-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--ve9c-transition);
}

.ve9c-carousel-indicator.active {
  background: var(--ve9c-white);
  transform: scale(1.2);
}

.ve9c-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.ve9c-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--ve9c-white);
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--ve9c-transition);
}

.ve9c-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Game grid */
.ve9c-games-section {
  margin: var(--ve9c-spacing-lg) 0;
}

.ve9c-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ve9c-spacing-md);
}

.ve9c-section-title {
  font-size: var(--ve9c-font-size-xl);
  font-weight: bold;
  color: var(--ve9c-primary);
  margin: 0;
}

.ve9c-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ve9c-spacing-xs);
}

.ve9c-game-card {
  background: var(--ve9c-dark);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--ve9c-transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(50, 205, 50, 0.1);
}

.ve9c-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ve9c-shadow-md);
  border-color: var(--ve9c-primary);
}

.ve9c-game-image {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio */
  position: relative;
  overflow: hidden;
}

.ve9c-game-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ve9c-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  color: var(--ve9c-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content sections */
.ve9c-content-section {
  background: rgba(44, 44, 44, 0.5);
  border-radius: 1rem;
  padding: var(--ve9c-spacing-md);
  margin-bottom: var(--ve9c-spacing-md);
  border: 1px solid rgba(50, 205, 50, 0.2);
}

.ve9c-content-title {
  font-size: var(--ve9c-font-size-lg);
  color: var(--ve9c-secondary);
  margin-bottom: var(--ve9c-spacing-sm);
  font-weight: 600;
}

.ve9c-content-text {
  color: var(--ve9c-text-light);
  line-height: 1.6;
  margin-bottom: var(--ve9c-spacing-sm);
}

.ve9c-content-text:last-child {
  margin-bottom: 0;
}

/* Links */
.ve9c-link {
  color: var(--ve9c-primary);
  text-decoration: none;
  transition: var(--ve9c-transition);
}

.ve9c-link:hover {
  color: var(--ve9c-secondary);
  text-decoration: underline;
}

.ve9c-link-affiliate {
  font-weight: 600;
  background: linear-gradient(45deg, var(--ve9c-primary), var(--ve9c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bottom navigation */
.ve9c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ve9c-dark);
  border-top: 1px solid rgba(50, 205, 50, 0.3);
  z-index: 1000;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.ve9c-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  text-decoration: none;
  color: var(--ve9c-gray);
  transition: var(--ve9c-transition);
  cursor: pointer;
  border: none;
  background: none;
}

.ve9c-bottom-nav-item:hover,
.ve9c-bottom-nav-item.active {
  color: var(--ve9c-primary);
  transform: translateY(-2px);
}

.ve9c-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.ve9c-bottom-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}

/* Footer */
.ve9c-footer {
  background: var(--ve9c-dark);
  border-top: 1px solid rgba(50, 205, 50, 0.2);
  padding: var(--ve9c-spacing-lg) 0 var(--ve9c-spacing-xl);
  margin-top: var(--ve9c-spacing-lg);
}

.ve9c-footer-content {
  text-align: center;
}

.ve9c-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ve9c-spacing-md);
  margin-bottom: var(--ve9c-spacing-md);
}

.ve9c-footer-link {
  color: var(--ve9c-text-light);
  text-decoration: none;
  transition: var(--ve9c-transition);
}

.ve9c-footer-link:hover {
  color: var(--ve9c-primary);
}

.ve9c-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: var(--ve9c-spacing-md) 0;
}

.ve9c-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--ve9c-transition);
}

.ve9c-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ve9c-footer-text {
  color: var(--ve9c-gray);
  font-size: var(--ve9c-font-size-xs);
  margin-top: var(--ve9c-spacing-sm);
}

/* Utility classes */
.ve9c-text-center {
  text-align: center;
}

.ve9c-text-left {
  text-align: left;
}

.ve9c-text-right {
  text-align: right;
}

.ve9c-mt-sm {
  margin-top: var(--ve9c-spacing-sm);
}

.ve9c-mt-md {
  margin-top: var(--ve9c-spacing-md);
}

.ve9c-mt-lg {
  margin-top: var(--ve9c-spacing-lg);
}

.ve9c-mb-sm {
  margin-bottom: var(--ve9c-spacing-sm);
}

.ve9c-mb-md {
  margin-bottom: var(--ve9c-spacing-md);
}

.ve9c-mb-lg {
  margin-bottom: var(--ve9c-spacing-lg);
}

.ve9c-hidden {
  display: none;
}

.ve9c-flex {
  display: flex;
}

.ve9c-flex-col {
  flex-direction: column;
}

.ve9c-items-center {
  align-items: center;
}

.ve9c-justify-center {
  justify-content: center;
}

.ve9c-justify-between {
  justify-content: space-between;
}

.ve9c-gap-sm {
  gap: var(--ve9c-spacing-sm);
}

.ve9c-gap-md {
  gap: var(--ve9c-spacing-md);
}

/* Responsive design */
@media (min-width: 769px) {
  .ve9c-bottom-nav {
    display: none;
  }

  .ve9c-main {
    padding-bottom: 0;
  }

  .ve9c-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .ve9c-carousel-inner {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .ve9c-container {
    padding: 0 var(--ve9c-spacing-xs);
  }

  .ve9c-games-grid {
    gap: 0.5rem;
  }

  .ve9c-game-name {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes ve9c-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ve9c-fade-in {
  animation: ve9c-fadeIn 0.5s ease forwards;
}

@keyframes ve9c-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.ve9c-pulse {
  animation: ve9c-pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.ve9c-btn:focus,
.ve9c-menu-toggle:focus,
.ve9c-carousel-btn:focus,
.ve9c-bottom-nav-item:focus {
  outline: 2px solid var(--ve9c-primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --ve9c-primary: #00FF00;
    --ve9c-secondary: #FFFF00;
    --ve9c-accent: #FF69B4;
  }
}