/**
 * OK Play Layout Styles
 * Class prefix: wfa52-
 * All classes use namespacing to avoid conflicts
 */

/* CSS Variables */
:root {
  --wfa52-primary: #FFDEAD;
  --wfa52-secondary: #273746;
  --wfa52-accent: #FFAA00;
  --wfa52-highlight: #FFCC02;
  --wfa52-text-light: #FFDEAD;
  --wfa52-text-dark: #273746;
  --wfa52-bg-dark: #273746;
  --wfa52-bg-light: #1a252f;
  --wfa52-white: #ffffff;
  --wfa52-gray: #6b7280;
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--wfa52-text-light);
  background-color: var(--wfa52-bg-dark);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.wfa52-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.wfa52-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--wfa52-bg-dark) 0%, var(--wfa52-bg-light) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  height: 64px;
}

.wfa52-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 100%;
}

.wfa52-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--wfa52-primary);
}

.wfa52-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.wfa52-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wfa52-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wfa52-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wfa52-auth-buttons {
  display: flex;
  gap: 0.8rem;
}

.wfa52-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.wfa52-btn-register {
  background: linear-gradient(135deg, var(--wfa52-accent) 0%, var(--wfa52-highlight) 100%);
  color: var(--wfa52-bg-dark);
}

.wfa52-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.wfa52-btn-login {
  background: transparent;
  color: var(--wfa52-primary);
  border: 2px solid var(--wfa52-primary);
}

.wfa52-btn-login:hover {
  background: var(--wfa52-primary);
  color: var(--wfa52-bg-dark);
}

.wfa52-btn-cta {
  background: linear-gradient(135deg, var(--wfa52-accent) 0%, var(--wfa52-highlight) 100%);
  color: var(--wfa52-bg-dark);
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.wfa52-btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
}

/* Mobile Menu */
.wfa52-mobile-menu {
  position: fixed;
  top: 64px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: calc(100vh - 64px);
  background: var(--wfa52-bg-light);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.wfa52-mobile-menu.wfa52-menu-open {
  left: 0;
}

.wfa52-menu-section {
  margin-bottom: 2rem;
}

.wfa52-menu-title {
  font-size: 1.2rem;
  color: var(--wfa52-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wfa52-menu-links {
  list-style: none;
}

.wfa52-menu-links li {
  margin-bottom: 0.8rem;
}

.wfa52-menu-links a {
  color: var(--wfa52-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wfa52-menu-links a:hover {
  background: rgba(255, 222, 173, 0.1);
  color: var(--wfa52-accent);
  padding-left: 1.2rem;
}

.wfa52-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--wfa52-text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* Main Content */
.wfa52-main {
  margin-top: 64px;
  padding-bottom: 80px;
}

.wfa52-hero {
  margin: 2rem 0;
}

.wfa52-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wfa52-primary);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.3;
}

.wfa52-hero-text {
  font-size: 1.4rem;
  color: var(--wfa52-text-light);
  text-align: center;
  line-height: 1.6;
  opacity: 0.9;
}

/* Carousel */
.wfa52-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.wfa52-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.wfa52-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wfa52-slide.wfa52-active {
  opacity: 1;
}

.wfa52-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.wfa52-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.wfa52-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wfa52-dot.wfa52-active {
  background: var(--wfa52-accent);
  transform: scale(1.2);
}

/* Section Styles */
.wfa52-section {
  margin: 3rem 0;
}

.wfa52-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wfa52-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.wfa52-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--wfa52-accent) 0%, var(--wfa52-highlight) 100%);
  border-radius: 2px;
}

/* Game Grid */
.wfa52-game-category {
  margin: 2rem 0;
}

.wfa52-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wfa52-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wfa52-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.wfa52-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wfa52-game-item:hover {
  transform: scale(1.05);
}

.wfa52-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wfa52-game-name {
  font-size: 1rem;
  color: var(--wfa52-text-light);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Styles */
.wfa52-card {
  background: var(--wfa52-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wfa52-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wfa52-primary);
  margin-bottom: 1rem;
}

.wfa52-card-text {
  font-size: 1.4rem;
  color: var(--wfa52-text-light);
  line-height: 1.6;
  opacity: 0.9;
}

.wfa52-card-text a {
  color: var(--wfa52-accent);
  text-decoration: none;
  font-weight: 600;
}

.wfa52-card-text a:hover {
  text-decoration: underline;
}

/* Link Styles */
.wfa52-link {
  color: var(--wfa52-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.wfa52-link:hover {
  color: var(--wfa52-highlight);
  text-decoration: underline;
}

/* Bottom Navigation */
.wfa52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--wfa52-bg-light) 0%, var(--wfa52-bg-dark) 100%);
  border-top: 2px solid var(--wfa52-accent);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.wfa52-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--wfa52-text-light);
  transition: all 0.3s ease;
  position: relative;
}

.wfa52-nav-item:hover {
  transform: scale(1.1);
}

.wfa52-nav-item.wfa52-nav-active {
  color: var(--wfa52-accent);
}

.wfa52-nav-item.wfa52-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--wfa52-accent);
  border-radius: 0 0 3px 3px;
}

.wfa52-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.wfa52-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.wfa52-footer {
  background: var(--wfa52-bg-light);
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

.wfa52-footer-links {
  margin-bottom: 2rem;
}

.wfa52-footer-links a {
  color: var(--wfa52-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0.5rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.wfa52-footer-links a:hover {
  color: var(--wfa52-accent);
}

.wfa52-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.wfa52-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wfa52-partner-logo:hover {
  opacity: 1;
}

.wfa52-copyright {
  font-size: 1.2rem;
  color: var(--wfa52-gray);
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 769px) {
  .wfa52-bottom-nav {
    display: none;
  }

  .wfa52-main {
    padding-bottom: 2rem;
  }

  .wfa52-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .wfa52-menu-toggle {
    display: block;
  }

  .wfa52-main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.wfa52-text-center {
  text-align: center;
}

.wfa52-mt-1 { margin-top: 1rem; }
.wfa52-mt-2 { margin-top: 2rem; }
.wfa52-mt-3 { margin-top: 3rem; }
.wfa52-mb-1 { margin-bottom: 1rem; }
.wfa52-mb-2 { margin-bottom: 2rem; }
.wfa52-mb-3 { margin-bottom: 3rem; }

/* Animation */
@keyframes wfa52-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wfa52-animate-fadeIn {
  animation: wfa52-fadeIn 0.5s ease forwards;
}
