/**
 * PH799 App - Universal CSS Stylesheet
 * Prefix: w206b-
 * Color Scheme: Warm cream/beige tones on dark backgrounds
 */

/* CSS Variables */
:root {
  --w206b-primary: #FFEBCD;
  --w206b-primary-light: #FFF8DC;
  --w206b-bg-dark: #2F2F2F;
  --w206b-bg-medium: #333333;
  --w206b-text-light: #FFFFFF;
  --w206b-text-gray: #D0D0D0;
  --w206b-accent: #708090;
  --w206b-accent-light: #A9A9A9;
  --w206b-border: #4A4A4A;
  --w206b-shadow: rgba(0, 0, 0, 0.5);
  --w206b-header-height: 70px;
  --w206b-bottom-nav-height: 60px;
  --w206b-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--w206b-bg-dark);
  color: var(--w206b-text-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.w206b-mobile {
  padding-bottom: var(--w206b-bottom-nav-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--w206b-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px var(--w206b-shadow);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--w206b-text-gray);
  margin-bottom: 1rem;
}

a {
  color: var(--w206b-primary);
  text-decoration: none;
  transition: var(--w206b-transition);
}

a:hover {
  color: var(--w206b-primary-light);
  text-shadow: 0 0 8px rgba(255, 235, 205, 0.5);
}

/* Header Navigation */
.w206b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w206b-header-height);
  background: linear-gradient(135deg, var(--w206b-bg-dark) 0%, var(--w206b-bg-medium) 100%);
  border-bottom: 2px solid var(--w206b-primary);
  z-index: 1000;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px var(--w206b-shadow);
}

.w206b-logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
}

.w206b-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--w206b-primary) 0%, var(--w206b-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--w206b-bg-dark);
  font-size: 1.5rem;
  box-shadow: 0 4px 8px var(--w206b-shadow);
}

.w206b-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--w206b-primary);
  text-shadow: 0 2px 4px var(--w206b-shadow);
}

.w206b-nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.w206b-header-btn {
  background: linear-gradient(135deg, var(--w206b-primary) 0%, var(--w206b-primary-light) 100%);
  color: var(--w206b-bg-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--w206b-transition);
  box-shadow: 0 4px 8px var(--w206b-shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.w206b-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--w206b-shadow);
  background: var(--w206b-primary-light);
}

.w206b-header-btn:active {
  transform: translateY(0);
}

.w206b-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  z-index: 1001;
}

.w206b-hamburger span {
  width: 100%;
  height: 3px;
  background: var(--w206b-primary);
  border-radius: 2px;
  transition: var(--w206b-transition);
}

.w206b-hamburger.w206b-active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.w206b-hamburger.w206b-active span:nth-child(2) {
  opacity: 0;
}

.w206b-hamburger.w206b-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation Menu */
.w206b-desktop-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: 2rem;
}

.w206b-menu-link {
  color: var(--w206b-text-gray);
  font-size: 0.95rem;
  transition: var(--w206b-transition);
  position: relative;
}

.w206b-menu-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--w206b-primary);
  transition: var(--w206b-transition);
}

.w206b-menu-link:hover {
  color: var(--w206b-primary);
}

.w206b-menu-link:hover::after {
  width: 100%;
}

/* Mobile Navigation Menu */
.w206b-mobile-menu {
  display: none;
  position: fixed;
  top: var(--w206b-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--w206b-bg-dark);
  z-index: 999;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.w206b-mobile-menu.w206b-menu-open {
  transform: translateX(0);
}

.w206b-mobile-menu-link {
  display: block;
  padding: 1rem;
  color: var(--w206b-text-gray);
  border-bottom: 1px solid var(--w206b-border);
  transition: var(--w206b-transition);
}

.w206b-mobile-menu-link:hover {
  background: var(--w206b-bg-medium);
  color: var(--w206b-primary);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  padding-top: var(--w206b-header-height);
  min-height: 100vh;
}

.w206b-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w206b-section {
  padding: 3rem 1rem;
  border-bottom: 1px solid var(--w206b-border);
}

.w206b-section:last-child {
  border-bottom: none;
}

/* Carousel */
.w206b-carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--w206b-shadow);
}

.w206b-carousel-slide {
  display: none;
  width: 100%;
  height: 300px;
  background: var(--w206b-bg-medium);
  position: relative;
}

.w206b-carousel-slide.w206b-active {
  display: block;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.w206b-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w206b-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.w206b-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 235, 205, 0.5);
  cursor: pointer;
  transition: var(--w206b-transition);
  border: 2px solid var(--w206b-primary);
}

.w206b-carousel-dot.w206b-active {
  background: var(--w206b-primary);
  transform: scale(1.2);
}

.w206b-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--w206b-primary);
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--w206b-transition);
  z-index: 10;
}

.w206b-carousel-prev {
  left: 1rem;
}

.w206b-carousel-next {
  right: 1rem;
}

.w206b-carousel-nav:hover {
  background: var(--w206b-primary);
  color: var(--w206b-bg-dark);
}

/* Game Tabs and Categories */
.w206b-game-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  padding: 0 1rem;
  scroll-behavior: smooth;
}

.w206b-tab-btn {
  background: var(--w206b-bg-medium);
  color: var(--w206b-text-gray);
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--w206b-transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.w206b-tab-btn:hover {
  border-color: var(--w206b-primary);
}

.w206b-tab-btn.w206b-active {
  background: linear-gradient(135deg, var(--w206b-primary) 0%, var(--w206b-primary-light) 100%);
  color: var(--w206b-bg-dark);
  border-color: var(--w206b-primary);
}

/* Game Grid */
.w206b-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.w206b-game-card {
  background: var(--w206b-bg-medium);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--w206b-transition);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 8px var(--w206b-shadow);
}

.w206b-game-card:hover {
  transform: translateY(-8px);
  border-color: var(--w206b-primary);
  box-shadow: 0 8px 16px var(--w206b-shadow);
}

.w206b-game-card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--w206b-bg-dark);
}

.w206b-game-card-name {
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--w206b-text-light);
  text-align: center;
  background: var(--w206b-bg-dark);
}

.w206b-games-container {
  display: none;
}

.w206b-games-container.w206b-visible {
  display: block;
}

/* Feature Cards */
.w206b-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.w206b-feature-card {
  background: linear-gradient(135deg, var(--w206b-bg-medium) 0%, var(--w206b-bg-dark) 100%);
  border: 2px solid var(--w206b-primary);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--w206b-transition);
  box-shadow: 0 4px 8px var(--w206b-shadow);
}

.w206b-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--w206b-shadow);
  border-color: var(--w206b-primary-light);
}

.w206b-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--w206b-primary);
}

.w206b-feature-card h3 {
  margin-bottom: 0.75rem;
}

.w206b-feature-card p {
  font-size: 0.9rem;
  color: var(--w206b-text-gray);
}

/* Buttons */
.w206b-btn {
  background: linear-gradient(135deg, var(--w206b-primary) 0%, var(--w206b-primary-light) 100%);
  color: var(--w206b-bg-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w206b-transition);
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.w206b-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--w206b-shadow);
}

.w206b-btn:active {
  transform: translateY(0);
}

.w206b-btn-secondary {
  background: var(--w206b-bg-medium);
  color: var(--w206b-primary);
  border: 2px solid var(--w206b-primary);
}

.w206b-btn-secondary:hover {
  background: var(--w206b-primary);
  color: var(--w206b-bg-dark);
}

/* Promo Links */
.w206b-promo-link {
  color: var(--w206b-primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.w206b-promo-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--w206b-primary);
  transform: scaleX(0);
  transition: var(--w206b-transition);
}

.w206b-promo-link:hover::after {
  transform: scaleX(1);
}

/* Bottom Navigation */
.w206b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w206b-bottom-nav-height);
  background: linear-gradient(to top, var(--w206b-bg-dark), var(--w206b-bg-medium));
  border-top: 2px solid var(--w206b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 12px var(--w206b-shadow);
}

.w206b-bottom-nav-link,
.w206b-bottom-nav-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  color: var(--w206b-text-gray);
  cursor: pointer;
  transition: var(--w206b-transition);
  border: none;
  background: none;
  text-decoration: none;
  font-size: 0.75rem;
}

.w206b-bottom-nav-link:hover,
.w206b-bottom-nav-promo:hover {
  color: var(--w206b-primary);
  transform: scale(1.1);
}

.w206b-bottom-nav-icon {
  font-size: 24px;
}

/* Footer */
.w206b-footer {
  background: var(--w206b-bg-dark);
  border-top: 2px solid var(--w206b-primary);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.w206b-footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.w206b-footer-section {
  margin-bottom: 2rem;
}

.w206b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.w206b-footer-link {
  color: var(--w206b-text-gray);
  font-size: 0.9rem;
  transition: var(--w206b-transition);
}

.w206b-footer-link:hover {
  color: var(--w206b-primary);
}

.w206b-footer-divider {
  height: 1px;
  background: var(--w206b-border);
  margin: 1.5rem 0;
}

.w206b-footer-bottom {
  text-align: center;
  color: var(--w206b-accent-light);
  font-size: 0.85rem;
}

.w206b-partner-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.w206b-partner-logo {
  width: 60px;
  height: 60px;
  background: var(--w206b-bg-medium);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w206b-border);
}

.w206b-partner-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --w206b-header-height: 60px;
  }

  .w206b-header {
    height: var(--w206b-header-height);
    padding: 0 0.75rem;
  }

  .w206b-hamburger {
    display: flex;
  }

  .w206b-nav-buttons {
    gap: 0.5rem;
  }

  .w206b-header-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .w206b-desktop-menu {
    display: none;
  }

  .w206b-mobile-menu {
    display: flex;
    flex-direction: column;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .w206b-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .w206b-game-card {
    border-radius: 8px;
  }

  .w206b-game-card-image {
    height: 120px;
  }

  .w206b-feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .w206b-carousel-slide {
    height: 200px;
  }

  .w206b-carousel-nav {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .w206b-section {
    padding: 2rem 0.75rem;
  }

  main {
    padding-bottom: calc(var(--w206b-header-height) + var(--w206b-bottom-nav-height));
  }
}

@media (max-width: 480px) {
  :root {
    --w206b-header-height: 55px;
    --w206b-bottom-nav-height: 56px;
  }

  .w206b-logo {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .w206b-site-name {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .w206b-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .w206b-game-card-image {
    height: 100px;
  }

  .w206b-header-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
  }

  .w206b-carousel-slide {
    height: 150px;
  }
}

/* Print Styles */
@media print {
  .w206b-header,
  .w206b-bottom-nav,
  .w206b-carousel-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
