/**
 * niceph 25 - CSS Styles
 * All classes use v4e8- prefix for namespace isolation
 * Color Palette: #1A1A1A (dark), #BAFFC9 (light green), #FA8072 (salmon)
 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --v4e8-primary: #FA8072;
  --v4e8-primary-dark: #e86b5d;
  --v4e8-secondary: #BAFFC9;
  --v4e8-bg-dark: #1A1A1A;
  --v4e8-bg-darker: #0f0f0f;
  --v4e8-bg-light: #2a2a2a;
  --v4e8-text-light: #BAFFC9;
  --v4e8-text-white: #ffffff;
  --v4e8-text-gray: #b0b0b0;
  --v4e8-shadow: 0 4px 12px rgba(186, 255, 201, 0.1);
}

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(--v4e8-text-light);
  background-color: var(--v4e8-bg-dark);
  min-height: 100vh;
}

/* Container */
.v4e8-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.v4e8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--v4e8-bg-darker);
  border-bottom: 2px solid var(--v4e8-primary);
  z-index: 1000;
  box-shadow: var(--v4e8-shadow);
}

.v4e8-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.v4e8-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v4e8-text-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.v4e8-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v4e8-header-actions {
  display: flex;
  gap: 0.8rem;
}

.v4e8-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.v4e8-btn-primary {
  background: linear-gradient(135deg, var(--v4e8-primary), var(--v4e8-primary-dark));
  color: var(--v4e8-text-white);
}

.v4e8-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 128, 114, 0.4);
}

.v4e8-btn-secondary {
  background: transparent;
  color: var(--v4e8-text-light);
  border: 2px solid var(--v4e8-secondary);
}

.v4e8-btn-secondary:hover {
  background-color: var(--v4e8-secondary);
  color: var(--v4e8-bg-dark);
}

.v4e8-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.v4e8-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--v4e8-text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.v4e8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v4e8-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.v4e8-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--v4e8-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--v4e8-primary);
}

.v4e8-mobile-menu.active {
  right: 0;
}

.v4e8-mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--v4e8-bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v4e8-mobile-menu-header h3 {
  color: var(--v4e8-text-white);
  font-size: 1.8rem;
}

.v4e8-close-menu {
  background: none;
  border: none;
  color: var(--v4e8-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v4e8-mobile-menu-nav {
  padding: 1rem 0;
}

.v4e8-mobile-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v4e8-text-light);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.v4e8-mobile-menu-nav a:hover {
  background-color: var(--v4e8-bg-light);
  border-left-color: var(--v4e8-primary);
  color: var(--v4e8-text-white);
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 80px;
}

/* Slider */
.v4e8-slider {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.v4e8-slide {
  display: none;
  width: 100%;
}

.v4e8-slide.active {
  display: block;
}

.v4e8-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v4e8-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v4e8-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v4e8-slider-dot.active {
  background-color: var(--v4e8-primary);
  transform: scale(1.2);
}

/* Headings */
h1 {
  color: var(--v4e8-text-white);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

h2 {
  color: var(--v4e8-primary);
  font-size: 1.9rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

h3 {
  color: var(--v4e8-text-white);
  font-size: 1.6rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

/* Sections */
.v4e8-section {
  background-color: var(--v4e8-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Game Grid */
.v4e8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v4e8-game-item {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.v4e8-game-item:hover {
  transform: scale(1.05);
}

.v4e8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--v4e8-bg-darker);
  margin-bottom: 0.3rem;
}

.v4e8-game-name {
  color: var(--v4e8-text-light);
  font-size: 1.1rem;
  text-align: center;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Title */
.v4e8-category-title {
  color: var(--v4e8-primary);
  font-size: 1.7rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Text Links */
.v4e8-text-link {
  color: var(--v4e8-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v4e8-text-link:hover {
  color: var(--v4e8-secondary);
  text-decoration: underline;
}

/* Lists */
.v4e8-list {
  list-style: none;
  padding-left: 0;
}

.v4e8-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v4e8-bg-darker);
  position: relative;
  padding-left: 1.5rem;
}

.v4e8-list li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--v4e8-primary);
  font-weight: bold;
}

/* Footer */
.v4e8-footer {
  background-color: var(--v4e8-bg-darker);
  border-top: 2px solid var(--v4e8-primary);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.v4e8-footer-description {
  text-align: center;
  color: var(--v4e8-text-gray);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.v4e8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v4e8-footer-links a {
  color: var(--v4e8-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--v4e8-bg-light);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v4e8-footer-links a:hover {
  background-color: var(--v4e8-primary);
  border-color: var(--v4e8-primary);
  color: var(--v4e8-text-white);
}

.v4e8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v4e8-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v4e8-partners img:hover {
  opacity: 1;
}

.v4e8-copyright {
  text-align: center;
  color: var(--v4e8-text-gray);
  font-size: 1.1rem;
}

/* Bottom Navigation */
.v4e8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v4e8-bg-darker) 0%, var(--v4e8-bg-dark) 100%);
  border-top: 2px solid var(--v4e8-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.v4e8-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--v4e8-text-gray);
  font-size: 1rem;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.v4e8-bottom-nav a:hover {
  color: var(--v4e8-primary);
  background-color: rgba(250, 128, 114, 0.1);
}

.v4e8-bottom-nav a.active {
  color: var(--v4e8-primary);
}

.v4e8-bottom-nav a.active:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--v4e8-primary);
  border-radius: 0 0 3px 3px;
}

.v4e8-bottom-nav-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.v4e8-bottom-nav a:hover .v4e8-bottom-nav-icon {
  transform: scale(1.1);
}

/* Responsive: Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v4e8-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.v4e8-text-center {
  text-align: center;
}

.v4e8-mt-1 { margin-top: 1rem; }
.v4e8-mt-2 { margin-top: 2rem; }
.v4e8-mb-1 { margin-bottom: 1rem; }
.v4e8-mb-2 { margin-bottom: 2rem; }

/* Animations */
@keyframes v4e8-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v4e8-animate-fadeIn {
  animation: v4e8-fadeIn 0.5s ease;
}
