/**
 * Boss77 CSS Styles
 * Mobile-first responsive design for gaming website
 */

/* CSS Variables */
:root {
  --wfec5-primary: #B22222;
  --wfec5-secondary: #FF69B4;
  --wfec5-accent: #FF1493;
  --wfec5-bg: #1C2833;
  --wfec5-text: #F0FDFF;
  --wfec5-text-secondary: #B0C4DE;
  --wfec5-border: #34495E;
  --wfec5-shadow: rgba(0, 0, 0, 0.3);
  --wfec5-gradient: linear-gradient(135deg, #B22222 0%, #FF1493 100%);

  /* Typography */
  --wfec5-font-size-xs: 1rem; /* 10px */
  --wfec5-font-size-sm: 1.2rem; /* 12px */
  --wfec5-font-size-base: 1.4rem; /* 14px */
  --wfec5-font-size-lg: 1.6rem; /* 16px */
  --wfec5-font-size-xl: 1.8rem; /* 18px */
  --wfec5-font-size-2xl: 2rem; /* 20px */
  --wfec5-font-size-3xl: 2.4rem; /* 24px */

  /* Spacing */
  --wfec5-space-xs: 0.4rem;
  --wfec5-space-sm: 0.8rem;
  --wfec5-space-md: 1.2rem;
  --wfec5-space-lg: 1.6rem;
  --wfec5-space-xl: 2rem;
  --wfec5-space-2xl: 2.4rem;

  /* Border Radius */
  --wfec5-radius-sm: 0.4rem;
  --wfec5-radius-md: 0.8rem;
  --wfec5-radius-lg: 1.2rem;
  --wfec5-radius-full: 50%;

  /* Transitions */
  --wfec5-transition: all 0.3s ease;
  --wfec5-transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--wfec5-font-size-base);
  line-height: 1.5;
  color: var(--wfec5-text);
  background: var(--wfec5-bg);
  overflow-x: hidden;
  position: relative;
}

/* Container */
.wfec5-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--wfec5-space-md);
  width: 100%;
}

.wfec5-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header */
.wfec5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--wfec5-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wfec5-border);
  z-index: 1000;
  padding: var(--wfec5-space-md) 0;
}

.wfec5-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--wfec5-space-md);
}

.wfec5-logo {
  display: flex;
  align-items: center;
  gap: var(--wfec5-space-sm);
  text-decoration: none;
  color: var(--wfec5-text);
}

.wfec5-logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--wfec5-text);
  border-radius: var(--wfec5-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--wfec5-primary);
  font-size: var(--wfec5-font-size-sm);
}

.wfec5-logo-text {
  font-size: var(--wfec5-font-size-xl);
  font-weight: 700;
  color: var(--wfec5-text);
}

.wfec5-header-actions {
  display: flex;
  gap: var(--wfec5-space-sm);
  align-items: center;
}

/* Buttons */
.wfec5-btn {
  padding: var(--wfec5-space-sm) var(--wfec5-space-lg);
  border: none;
  border-radius: var(--wfec5-radius-md);
  font-size: var(--wfec5-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--wfec5-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem; /* Touch-friendly height */
  min-width: 6rem;
  white-space: nowrap;
}

.wfec5-btn-primary {
  background: var(--wfec5-primary);
  color: var(--wfec5-text);
  border: 2px solid var(--wfec5-primary);
}

.wfec5-btn-primary:hover {
  background: transparent;
  color: var(--wfec5-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--wfec5-shadow);
}

.wfec5-btn-secondary {
  background: transparent;
  color: var(--wfec5-text);
  border: 2px solid var(--wfec5-text);
}

.wfec5-btn-secondary:hover {
  background: var(--wfec5-text);
  color: var(--wfec5-primary);
  transform: translateY(-1px);
}

.wfec5-btn-accent {
  background: var(--wfec5-accent);
  color: var(--wfec5-text);
  border: 2px solid var(--wfec5-accent);
}

.wfec5-btn-accent:hover {
  background: transparent;
  color: var(--wfec5-accent);
  transform: translateY(-1px);
}

/* Navigation */
.wfec5-nav-toggle {
  background: none;
  border: none;
  color: var(--wfec5-text);
  font-size: var(--wfec5-font-size-2xl);
  cursor: pointer;
  padding: var(--wfec5-space-sm);
  border-radius: var(--wfec5-radius-sm);
  transition: var(--wfec5-transition-fast);
}

.wfec5-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.wfec5-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--wfec5-bg);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: var(--wfec5-space-xl);
  overflow-y: auto;
}

.wfec5-mobile-menu.active {
  right: 0;
}

.wfec5-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(--wfec5-transition);
}

.wfec5-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wfec5-menu-close {
  position: absolute;
  top: var(--wfec5-space-md);
  right: var(--wfec5-space-md);
  background: none;
  border: none;
  color: var(--wfec5-text);
  font-size: var(--wfec5-font-size-3xl);
  cursor: pointer;
  padding: var(--wfec5-space-sm);
}

.wfec5-menu-list {
  list-style: none;
  margin-top: var(--wfec5-space-2xl);
}

.wfec5-menu-item {
  margin-bottom: var(--wfec5-space-md);
}

.wfec5-menu-link {
  color: var(--wfec5-text);
  text-decoration: none;
  font-size: var(--wfec5-font-size-lg);
  padding: var(--wfec5-space-md) 0;
  display: block;
  transition: var(--wfec5-transition-fast);
  border-bottom: 1px solid var(--wfec5-border);
}

.wfec5-menu-link:hover {
  color: var(--wfec5-secondary);
  padding-left: var(--wfec5-space-sm);
}

/* Main Content */
.wfec5-main {
  margin-top: 7rem; /* Space for fixed header */
  min-height: calc(100vh - 7rem - 8rem); /* Minus header and bottom nav */
}

/* Hero Section */
.wfec5-hero {
  position: relative;
  margin-bottom: var(--wfec5-space-2xl);
}

.wfec5-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--wfec5-radius-lg);
  margin-bottom: var(--wfec5-space-xl);
}

.wfec5-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.wfec5-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.wfec5-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--wfec5-radius-lg);
}

.wfec5-carousel-dots {
  position: absolute;
  bottom: var(--wfec5-space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--wfec5-space-xs);
}

.wfec5-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--wfec5-radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--wfec5-transition-fast);
}

.wfec5-carousel-dot.active {
  background: var(--wfec5-text);
  width: 24px;
  border-radius: 4px;
}

/* Typography */
.wfec5-title {
  font-size: var(--wfec5-font-size-3xl);
  font-weight: 700;
  color: var(--wfec5-text);
  margin-bottom: var(--wfec5-space-md);
  line-height: 1.3;
}

.wfec5-title-large {
  font-size: 2.8rem; /* 28px */
  font-weight: 800;
  background: var(--wfec5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--wfec5-space-lg);
}

.wfec5-subtitle {
  font-size: var(--wfec5-font-size-xl);
  font-weight: 600;
  color: var(--wfec5-secondary);
  margin-bottom: var(--wfec5-space-sm);
}

.wfec5-text {
  font-size: var(--wfec5-font-size-base);
  color: var(--wfec5-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--wfec5-space-md);
}

/* Game Grid */
.wfec5-games-section {
  margin-bottom: var(--wfec5-space-2xl);
}

.wfec5-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wfec5-space-lg);
}

.wfec5-section-title {
  font-size: var(--wfec5-font-size-xl);
  font-weight: 700;
  color: var(--wfec5-text);
  display: flex;
  align-items: center;
  gap: var(--wfec5-space-sm);
}

.wfec5-section-icon {
  color: var(--wfec5-secondary);
  font-size: var(--wfec5-font-size-xl);
}

.wfec5-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--wfec5-space-sm);
  margin-bottom: var(--wfec5-space-lg);
}

.wfec5-game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wfec5-border);
  border-radius: var(--wfec5-radius-md);
  padding: var(--wfec5-space-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--wfec5-transition);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wfec5-game-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--wfec5-secondary);
  transform: translateY(-2px);
}

.wfec5-game-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: var(--wfec5-space-xs);
  border-radius: var(--wfec5-radius-sm);
}

.wfec5-game-name {
  font-size: var(--wfec5-font-size-xs);
  color: var(--wfec5-text);
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Content Sections */
.wfec5-content-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wfec5-border);
  border-radius: var(--wfec5-radius-lg);
  padding: var(--wfec5-space-lg);
  margin-bottom: var(--wfec5-space-xl);
}

.wfec5-content-section h2 {
  font-size: var(--wfec5-font-size-xl);
  color: var(--wfec5-secondary);
  margin-bottom: var(--wfec5-space-md);
  font-weight: 700;
}

.wfec5-content-section h3 {
  font-size: var(--wfec5-font-size-lg);
  color: var(--wfec5-text);
  margin-bottom: var(--wfec5-space-sm);
  font-weight: 600;
}

.wfec5-content-section p {
  color: var(--wfec5-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--wfec5-space-md);
}

.wfec5-content-section ul {
  color: var(--wfec5-text-secondary);
  padding-left: var(--wfec5-space-lg);
  margin-bottom: var(--wfec5-space-md);
}

.wfec5-content-section li {
  margin-bottom: var(--wfec5-space-xs);
  line-height: 1.5;
}

/* Footer */
.wfec5-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(28, 40, 51, 0.8) 100%);
  padding: var(--wfec5-space-2xl) 0 var(--wfec5-space-xl);
  margin-top: var(--wfec5-space-2xl);
  border-top: 1px solid var(--wfec5-border);
}

.wfec5-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--wfec5-space-md);
}

.wfec5-footer-section {
  margin-bottom: var(--wfec5-space-xl);
}

.wfec5-footer-title {
  font-size: var(--wfec5-font-size-lg);
  color: var(--wfec5-text);
  margin-bottom: var(--wfec5-space-md);
  font-weight: 600;
}

.wfec5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfec5-space-md);
  margin-bottom: var(--wfec5-space-lg);
}

.wfec5-footer-link {
  color: var(--wfec5-text-secondary);
  text-decoration: none;
  font-size: var(--wfec5-font-size-sm);
  transition: var(--wfec5-transition-fast);
}

.wfec5-footer-link:hover {
  color: var(--wfec5-secondary);
}

.wfec5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfec5-space-md);
  justify-content: center;
  margin: var(--wfec5-space-lg) 0;
}

.wfec5-partner {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--wfec5-transition);
}

.wfec5-partner:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wfec5-copyright {
  text-align: center;
  color: var(--wfec5-text-secondary);
  font-size: var(--wfec5-font-size-xs);
  margin-top: var(--wfec5-space-lg);
  padding-top: var(--wfec5-space-md);
  border-top: 1px solid var(--wfec5-border);
}

/* Bottom Navigation */
.wfec5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wfec5-bg);
  border-top: 1px solid var(--wfec5-border);
  z-index: 1000;
  padding: var(--wfec5-space-xs) 0;
  backdrop-filter: blur(10px);
}

.wfec5-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--wfec5-space-sm);
}

.wfec5-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--wfec5-space-xs);
  color: var(--wfec5-text-secondary);
  text-decoration: none;
  transition: var(--wfec5-transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: var(--wfec5-radius-md);
}

.wfec5-bottom-nav-item:hover,
.wfec5-bottom-nav-item.active {
  color: var(--wfec5-secondary);
  background: rgba(255, 105, 180, 0.1);
  transform: translateY(-2px);
}

.wfec5-bottom-nav-icon {
  font-size: 2.4rem; /* 24px */
  margin-bottom: var(--wfec5-space-xs);
  transition: var(--wfec5-transition-fast);
}

.wfec5-bottom-nav-item:hover .wfec5-bottom-nav-icon,
.wfec5-bottom-nav-item.active .wfec5-bottom-nav-icon {
  transform: scale(1.1);
}

.wfec5-bottom-nav-text {
  font-size: var(--wfec5-font-size-xs);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Utility Classes */
.wfec5-text-center {
  text-align: center;
}

.wfec5-text-gradient {
  background: var(--wfec5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wfec5-mb-sm {
  margin-bottom: var(--wfec5-space-sm);
}

.wfec5-mb-md {
  margin-bottom: var(--wfec5-space-md);
}

.wfec5-mb-lg {
  margin-bottom: var(--wfec5-space-lg);
}

.wfec5-mt-lg {
  margin-top: var(--wfec5-space-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wfec5-main {
    padding-bottom: 8rem; /* Space for bottom nav */
  }
}

@media (min-width: 769px) {
  .wfec5-bottom-nav {
    display: none;
  }

  .wfec5-wrapper {
    padding-bottom: 0;
  }

  .wfec5-main {
    min-height: calc(100vh - 7rem); /* Just minus header */
  }
}

/* Animations */
@keyframes wfec5-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wfec5-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes wfec5-bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.wfec5-animate-fadeIn {
  animation: wfec5-fadeIn 0.6s ease-out;
}

.wfec5-animate-pulse {
  animation: wfec5-pulse 2s infinite;
}

.wfec5-animate-bounce {
  animation: wfec5-bounce 1s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.wfec5-btn:focus,
.wfec5-nav-toggle:focus,
.wfec5-menu-link:focus,
.wfec5-bottom-nav-item:focus {
  outline: 2px solid var(--wfec5-secondary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --wfec5-border: #ffffff;
    --wfec5-text-secondary: #ffffff;
  }
}