/**
 * Buenas Gaming Platform - Main Stylesheet
 * Mobile-first responsive design
 * Color scheme: #BDB76B (gold), #141414 (dark), #FFEBCD (cream), #EEE8AA (pale)
 */

/* =============================================
   CSS VARIABLES & ROOT SETTINGS
   ============================================= */
:root {
  --wf7fd-primary: #BDB76B;
  --wf7fd-dark: #141414;
  --wf7fd-light: #FFEBCD;
  --wf7fd-accent: #EEE8AA;
  --wf7fd-bg-main: #1a1a1a;
  --wf7fd-bg-card: #242424;
  --wf7fd-text-primary: #FFEBCD;
  --wf7fd-text-secondary: #EEE8AA;
  --wf7fd-border: rgba(189, 183, 107, 0.2);
  --wf7fd-shadow: rgba(0, 0, 0, 0.5);
  --wf7fd-transition: all 0.3s ease;
  --wf7fd-radius: 8px;
  --wf7fd-radius-sm: 4px;
  --wf7fd-radius-lg: 12px;
  --wf7fd-spacing-xs: 0.5rem;
  --wf7fd-spacing-sm: 1rem;
  --wf7fd-spacing-md: 1.5rem;
  --wf7fd-spacing-lg: 2rem;
  --wf7fd-spacing-xl: 3rem;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--wf7fd-text-primary);
  background-color: var(--wf7fd-bg-main);
  overflow-x: hidden;
}

body.wf7fd-touch {
  -webkit-tap-highlight-color: rgba(189, 183, 107, 0.3);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--wf7fd-primary);
  text-decoration: none;
  transition: var(--wf7fd-transition);
}

a:hover {
  color: var(--wf7fd-accent);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.wf7fd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wf7fd-border);
  box-shadow: 0 2px 10px var(--wf7fd-shadow);
}

.wf7fd-header-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wf7fd-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wf7fd-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.wf7fd-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wf7fd-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wf7fd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wf7fd-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--wf7fd-radius);
  cursor: pointer;
  transition: var(--wf7fd-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wf7fd-btn-primary {
  background: linear-gradient(135deg, var(--wf7fd-primary) 0%, #a89a5c 100%);
  color: var(--wf7fd-dark);
  box-shadow: 0 4px 12px rgba(189, 183, 107, 0.3);
}

.wf7fd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(189, 183, 107, 0.4);
}

.wf7fd-btn-secondary {
  background: transparent;
  color: var(--wf7fd-primary);
  border: 2px solid var(--wf7fd-primary);
}

.wf7fd-btn-secondary:hover {
  background: var(--wf7fd-primary);
  color: var(--wf7fd-dark);
}

.wf7fd-btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
}

.wf7fd-hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.wf7fd-hamburger span {
  width: 24px;
  height: 3px;
  background: var(--wf7fd-primary);
  border-radius: 2px;
  transition: var(--wf7fd-transition);
}

.wf7fd-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.wf7fd-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.wf7fd-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.wf7fd-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
  box-shadow: -4px 0 20px var(--wf7fd-shadow);
}

.wf7fd-menu-active {
  right: 0;
}

.wf7fd-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wf7fd-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wf7fd-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wf7fd-menu-item {
  border-bottom: 1px solid rgba(189, 183, 107, 0.1);
}

.wf7fd-menu-link {
  display: block;
  padding: 1.4rem 0;
  color: var(--wf7fd-text-primary);
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--wf7fd-transition);
}

.wf7fd-menu-link:hover {
  color: var(--wf7fd-primary);
  padding-left: 1rem;
}

/* Desktop Navigation */
.wf7fd-desktop-nav {
  display: none;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.wf7fd-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

.wf7fd-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wf7fd-section {
  padding: var(--wf7fd-spacing-lg) 0;
}

.wf7fd-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wf7fd-primary);
  margin-bottom: var(--wf7fd-spacing-md);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wf7fd-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wf7fd-accent);
  margin-bottom: var(--wf7fd-spacing-sm);
}

/* =============================================
   CAROUSEL / HERO SLIDER
   ============================================= */
.wf7fd-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--wf7fd-radius-lg);
  margin-bottom: var(--wf7fd-spacing-lg);
}

.wf7fd-carousel-inner {
  position: relative;
  width: 100%;
  height: 220px;
}

.wf7fd-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
}

.wf7fd-slide-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.wf7fd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.wf7fd-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.wf7fd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--wf7fd-transition);
}

.wf7fd-dot-active {
  background: var(--wf7fd-primary);
  width: 24px;
  border-radius: 5px;
}

/* =============================================
   GAME GRID
   ============================================= */
.wf7fd-games-wrapper {
  margin-bottom: var(--wf7fd-spacing-lg);
}

.wf7fd-games-category {
  margin-bottom: var(--wf7fd-spacing-xl);
}

.wf7fd-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--wf7fd-spacing-md);
  padding: 1rem;
  background: linear-gradient(135deg, rgba(189, 183, 107, 0.1) 0%, rgba(189, 183, 107, 0.05) 100%);
  border-left: 4px solid var(--wf7fd-primary);
  border-radius: var(--wf7fd-radius);
}

.wf7fd-category-icon {
  font-size: 2.4rem;
  color: var(--wf7fd-primary);
}

.wf7fd-category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wf7fd-text-primary);
  text-transform: capitalize;
}

.wf7fd-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.wf7fd-game-card {
  background: var(--wf7fd-bg-card);
  border-radius: var(--wf7fd-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--wf7fd-transition);
  border: 1px solid rgba(189, 183, 107, 0.1);
}

.wf7fd-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(189, 183, 107, 0.2);
  border-color: var(--wf7fd-primary);
}

.wf7fd-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.wf7fd-game-name {
  padding: 0.8rem 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wf7fd-text-secondary);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =============================================
   CONTENT CARDS & MODULES
   ============================================= */
.wf7fd-card {
  background: var(--wf7fd-bg-card);
  border-radius: var(--wf7fd-radius-lg);
  padding: var(--wf7fd-spacing-md);
  margin-bottom: var(--wf7fd-spacing-md);
  border: 1px solid var(--wf7fd-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wf7fd-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wf7fd-primary);
  margin-bottom: var(--wf7fd-spacing-sm);
}

.wf7fd-card-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--wf7fd-text-secondary);
  margin-bottom: var(--wf7fd-spacing-sm);
}

.wf7fd-card-text strong {
  color: var(--wf7fd-primary);
  font-weight: 600;
}

.wf7fd-list {
  list-style: none;
  padding-left: 0;
}

.wf7fd-list-item {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--wf7fd-text-secondary);
  font-size: 1.5rem;
  line-height: 1.6;
}

.wf7fd-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wf7fd-primary);
  font-weight: 700;
}

/* =============================================
   BOTTOM NAVIGATION (MOBILE)
   ============================================= */
.wf7fd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  backdrop-filter: blur(15px);
  border-top: 2px solid var(--wf7fd-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  height: 64px;
}

.wf7fd-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.wf7fd-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: var(--wf7fd-transition);
  gap: 4px;
}

.wf7fd-bottom-nav-item:hover {
  transform: scale(1.1);
}

.wf7fd-bottom-nav-icon {
  font-size: 24px;
  color: var(--wf7fd-accent);
  transition: var(--wf7fd-transition);
}

.wf7fd-bottom-nav-text {
  font-size: 1.1rem;
  color: var(--wf7fd-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf7fd-nav-active .wf7fd-bottom-nav-icon {
  color: var(--wf7fd-primary);
  transform: scale(1.15);
}

.wf7fd-nav-active .wf7fd-bottom-nav-text {
  color: var(--wf7fd-primary);
}

/* =============================================
   FOOTER
   ============================================= */
.wf7fd-footer {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-top: 1px solid var(--wf7fd-border);
  padding: var(--wf7fd-spacing-lg) 0 100px;
  margin-top: var(--wf7fd-spacing-xl);
}

.wf7fd-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wf7fd-footer-section {
  margin-bottom: var(--wf7fd-spacing-lg);
}

.wf7fd-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wf7fd-primary);
  margin-bottom: var(--wf7fd-spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf7fd-footer-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wf7fd-text-secondary);
  margin-bottom: var(--wf7fd-spacing-sm);
}

.wf7fd-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: var(--wf7fd-spacing-md);
}

.wf7fd-footer-link {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--wf7fd-text-secondary);
  padding: 0.6rem 0;
  transition: var(--wf7fd-transition);
}

.wf7fd-footer-link:hover {
  color: var(--wf7fd-primary);
  padding-left: 0.5rem;
}

.wf7fd-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: var(--wf7fd-spacing-md);
}

.wf7fd-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--wf7fd-transition);
  border-radius: var(--wf7fd-radius-sm);
}

.wf7fd-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.wf7fd-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(255, 235, 205, 0.6);
  padding-top: var(--wf7fd-spacing-md);
  border-top: 1px solid rgba(189, 183, 107, 0.1);
}

/* =============================================
   FAQ / ACCORDION
   ============================================= */
.wf7fd-faq-item {
  background: var(--wf7fd-bg-card);
  border-radius: var(--wf7fd-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--wf7fd-border);
}

.wf7fd-faq-question {
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wf7fd-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wf7fd-faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--wf7fd-text-secondary);
}

/* =============================================
   TABLES
   ============================================= */
.wf7fd-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--wf7fd-spacing-md);
}

.wf7fd-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wf7fd-bg-card);
  border-radius: var(--wf7fd-radius);
  overflow: hidden;
}

.wf7fd-table thead {
  background: linear-gradient(135deg, var(--wf7fd-primary) 0%, #a89a5c 100%);
}

.wf7fd-table th {
  padding: 1.2rem;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wf7fd-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf7fd-table td {
  padding: 1.2rem;
  font-size: 1.4rem;
  color: var(--wf7fd-text-secondary);
  border-bottom: 1px solid rgba(189, 183, 107, 0.1);
}

.wf7fd-table tbody tr:hover {
  background: rgba(189, 183, 107, 0.05);
}

/* =============================================
   BADGES & TAGS
   ============================================= */
.wf7fd-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: var(--wf7fd-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf7fd-badge-primary {
  background: var(--wf7fd-primary);
  color: var(--wf7fd-dark);
}

.wf7fd-badge-secondary {
  background: rgba(189, 183, 107, 0.2);
  color: var(--wf7fd-primary);
  border: 1px solid var(--wf7fd-primary);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.wf7fd-text-center {
  text-align: center;
}

.wf7fd-text-left {
  text-align: left;
}

.wf7fd-text-right {
  text-align: right;
}

.wf7fd-mb-sm {
  margin-bottom: var(--wf7fd-spacing-sm);
}

.wf7fd-mb-md {
  margin-bottom: var(--wf7fd-spacing-md);
}

.wf7fd-mb-lg {
  margin-bottom: var(--wf7fd-spacing-lg);
}

.wf7fd-mt-sm {
  margin-top: var(--wf7fd-spacing-sm);
}

.wf7fd-mt-md {
  margin-top: var(--wf7fd-spacing-md);
}

.wf7fd-mt-lg {
  margin-top: var(--wf7fd-spacing-lg);
}

.wf7fd-hidden {
  display: none !important;
}

.wf7fd-visible {
  display: block !important;
}

/* =============================================
   RESPONSIVE - DESKTOP
   ============================================= */
@media (min-width: 769px) {
  .wf7fd-bottom-nav {
    display: none;
  }

  .wf7fd-main {
    padding-bottom: 0;
  }

  .wf7fd-footer {
    padding-bottom: var(--wf7fd-spacing-lg);
  }

  .wf7fd-desktop-nav {
    display: flex;
    gap: 2rem;
  }

  .wf7fd-hamburger {
    display: none;
  }

  .wf7fd-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .wf7fd-partners-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media (max-width: 768px) {
  html {
    font-size: 56%;
  }

  .wf7fd-main {
    padding-bottom: 80px;
  }

  .wf7fd-section {
    padding: var(--wf7fd-spacing-md) 0;
  }

  .wf7fd-carousel-inner {
    height: 180px;
  }
}

@media (max-width: 380px) {
  .wf7fd-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wf7fd-header-container {
    padding: 1rem;
  }

  .wf7fd-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes wf7fd-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wf7fd-slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes wf7fd-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.wf7fd-animate-fade {
  animation: wf7fd-fadeIn 0.6s ease-out;
}

.wf7fd-animate-slide {
  animation: wf7fd-slideIn 0.4s ease-out;
}

.wf7fd-pulse {
  animation: wf7fd-pulse 2s ease-in-out infinite;
}
