/**
 * phwi - Main Stylesheet
 * All classes use w0f6c- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --w0f6c-primary: #008B8B;
  --w0f6c-secondary: #FF91A4;
  --w0f6c-light: #E0FFFF;
  --w0f6c-dark: #1C2833;
  --w0f6c-accent: #00B8D4;
  --w0f6c-text-dark: #2C3E50;
  --w0f6c-text-light: #ECF0F1;
  --w0f6c-gradient: linear-gradient(135deg, #008B8B 0%, #00B8D4 100%);
  --w0f6c-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --w0f6c-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset & 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--w0f6c-dark);
  background: linear-gradient(to bottom, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding-bottom: 70px;
}

/* Container */
.w0f6c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.w0f6c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w0f6c-dark);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: var(--w0f6c-shadow);
}

.w0f6c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.w0f6c-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--w0f6c-primary);
  text-decoration: none;
  flex: 1;
}

.w0f6c-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.w0f6c-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w0f6c-light);
}

.w0f6c-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.w0f6c-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.w0f6c-btn-register {
  background: var(--w0f6c-secondary);
  color: white;
}

.w0f6c-btn-register:hover {
  background: #ff7a92;
  transform: translateY(-2px);
  box-shadow: var(--w0f6c-shadow);
}

.w0f6c-btn-login {
  background: var(--w0f6c-primary);
  color: white;
}

.w0f6c-btn-login:hover {
  background: #007a7a;
  transform: translateY(-2px);
  box-shadow: var(--w0f6c-shadow);
}

.w0f6c-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--w0f6c-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.w0f6c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w0f6c-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w0f6c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w0f6c-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 4rem 1.5rem 2rem;
}

.w0f6c-menu-open {
  right: 0;
}

.w0f6c-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w0f6c-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w0f6c-light);
}

.w0f6c-menu-close {
  background: none;
  border: none;
  color: var(--w0f6c-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.w0f6c-menu-links {
  list-style: none;
}

.w0f6c-menu-links li {
  margin-bottom: 0.5rem;
}

.w0f6c-menu-links a {
  display: block;
  padding: 1rem;
  color: var(--w0f6c-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.w0f6c-menu-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

/* Main Content */
.w0f6c-main {
  margin-top: 70px;
  padding: 1.5rem 0;
}

/* Carousel */
.w0f6c-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--w0f6c-shadow-lg);
  aspect-ratio: 16 / 9;
}

.w0f6c-carousel-slides {
  position: relative;
  height: 100%;
}

.w0f6c-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w0f6c-slide-active {
  opacity: 1;
  position: relative;
}

.w0f6c-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w0f6c-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.w0f6c-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w0f6c-dot-active {
  background: var(--w0f6c-secondary);
  transform: scale(1.2);
}

/* Hero Section */
.w0f6c-hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background: var(--w0f6c-light);
  border-radius: 16px;
  box-shadow: var(--w0f6c-shadow);
}

.w0f6c-hero h1 {
  font-size: 2.4rem;
  color: var(--w0f6c-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.w0f6c-hero p {
  font-size: 1.4rem;
  color: var(--w0f6c-text-dark);
  margin-bottom: 1.5rem;
}

.w0f6c-cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--w0f6c-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--w0f6c-shadow-lg);
  transition: all 0.3s ease;
}

.w0f6c-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 139, 139, 0.3);
}

/* Section Styles */
.w0f6c-section {
  margin-bottom: 2.5rem;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--w0f6c-shadow);
}

.w0f6c-section-title {
  font-size: 2rem;
  color: var(--w0f6c-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.w0f6c-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--w0f6c-secondary);
  border-radius: 2px;
}

/* Game Grid */
.w0f6c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.w0f6c-game-item {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.w0f6c-game-item:hover {
  transform: scale(1.05);
}

.w0f6c-game-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--w0f6c-shadow);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.w0f6c-game-name {
  font-size: 1rem;
  color: var(--w0f6c-dark);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.w0f6c-game-category {
  margin-bottom: 1.5rem;
}

.w0f6c-category-title {
  font-size: 1.6rem;
  color: var(--w0f6c-accent);
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Feature Cards */
.w0f6c-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.w0f6c-feature-card {
  background: var(--w0f6c-light);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.w0f6c-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--w0f6c-shadow-lg);
  background: white;
}

.w0f6c-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.w0f6c-feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--w0f6c-primary);
  margin-bottom: 0.5rem;
}

.w0f6c-feature-desc {
  font-size: 1.1rem;
  color: var(--w0f6c-text-dark);
  line-height: 1.4;
}

/* Promo Links */
.w0f6c-promo-link {
  color: var(--w0f6c-secondary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w0f6c-promo-link:hover {
  color: var(--w0f6c-primary);
  text-decoration: underline;
}

/* FAQ Section */
.w0f6c-faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.w0f6c-faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w0f6c-primary);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.w0f6c-faq-answer {
  font-size: 1.3rem;
  color: var(--w0f6c-text-dark);
  line-height: 1.6;
}

/* Footer */
.w0f6c-footer {
  background: var(--w0f6c-dark);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.w0f6c-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.w0f6c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.w0f6c-footer-link {
  color: var(--w0f6c-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.w0f6c-footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--w0f6c-secondary);
}

.w0f6c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.w0f6c-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.w0f6c-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.w0f6c-footer-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Bottom Navigation */
.w0f6c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w0f6c-dark);
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.w0f6c-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.w0f6c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w0f6c-light);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}

.w0f6c-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.w0f6c-nav-active {
  color: var(--w0f6c-secondary);
}

.w0f6c-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.w0f6c-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Animations */
@keyframes w0f6cFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w0f6c-animate-on-scroll {
  opacity: 0;
}

.w0f6c-animate-in {
  animation: w0f6cFadeIn 0.6s ease forwards;
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .w0f6c-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .w0f6c-menu-toggle {
    display: block;
  }

  .w0f6c-header-buttons {
    display: none;
  }
}

/* Utility Classes */
.w0f6c-text-center {
  text-align: center;
}

.w0f6c-mb-1 {
  margin-bottom: 1rem;
}

.w0f6c-mb-2 {
  margin-bottom: 2rem;
}

.w0f6c-text-primary {
  color: var(--w0f6c-primary);
}

.w0f6c-text-secondary {
  color: var(--w0f6c-secondary);
}
