/**
 * PGPH88 - Main Stylesheet
 * All classes use prefix: w832f-
 * Mobile-first responsive design
 * Version: 1.0.0
 */

/* CSS 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #FFDEAD;
  background-color: #0E1621;
  overflow-x: hidden;
  min-width: 320px;
  max-width: 100%;
}

/* CSS Variables */
:root {
  --w832f-primary: #FFDEAD;
  --w832f-secondary: #BC8F8F;
  --w832f-accent: #A0522D;
  --w832f-bg: #0E1621;
  --w832f-bg-light: #1a2633;
  --w832f-text: #FFDEAD;
  --w832f-text-muted: #BC8F8F;
  --w832f-border: #A0522D;
  --w832f-shadow: rgba(160, 82, 45, 0.3);
  --w832f-success: #4CAF50;
  --w832f-warning: #FFC107;
  --w832f-danger: #F44336;
}

/* Container */
.w832f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.w832f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #1a2633 100%);
  border-bottom: 2px solid var(--w832f-accent);
  box-shadow: 0 2px 10px var(--w832f-shadow);
  transition: transform 0.3s ease;
}

.w832f-header-hidden {
  transform: translateY(-100%);
}

.w832f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.w832f-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--w832f-primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.w832f-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.w832f-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.w832f-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.w832f-btn-primary {
  background: linear-gradient(135deg, var(--w832f-accent) 0%, var(--w832f-secondary) 100%);
  color: #fff;
}

.w832f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--w832f-shadow);
}

.w832f-btn-secondary {
  background: transparent;
  color: var(--w832f-primary);
  border: 2px solid var(--w832f-primary);
}

.w832f-btn-secondary:hover {
  background: var(--w832f-primary);
  color: var(--w832f-bg);
}

.w832f-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.w832f-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--w832f-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.w832f-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--w832f-bg-light);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.w832f-menu-open {
  left: 0;
}

.w832f-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--w832f-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.w832f-menu-nav {
  padding: 0 1rem;
}

.w832f-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--w832f-text);
  text-decoration: none;
  border-bottom: 1px solid var(--w832f-border);
  transition: all 0.3s ease;
}

.w832f-menu-nav a:hover {
  background: var(--w832f-accent);
  color: #fff;
  padding-left: 1.5rem;
}

.w832f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w832f-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.w832f-main {
  margin-top: 70px;
  min-height: calc(100vh - 200px);
  padding-bottom: 80px;
}

/* Carousel */
.w832f-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.w832f-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.w832f-carousel-slide {
  min-width: 100%;
  height: 200px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w832f-slide-active {
  opacity: 1;
}

.w832f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w832f-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w832f-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w832f-dot-active {
  background: var(--w832f-primary);
  transform: scale(1.2);
}

/* Sections */
.w832f-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--w832f-border);
}

.w832f-section-title {
  font-size: 2rem;
  color: var(--w832f-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w832f-section-subtitle {
  font-size: 1.6rem;
  color: var(--w832f-secondary);
  margin-bottom: 1rem;
}

/* Game Grid */
.w832f-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w832f-game-card {
  background: var(--w832f-bg-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.w832f-game-card:hover {
  border-color: var(--w832f-accent);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px var(--w832f-shadow);
}

.w832f-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w832f-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--w832f-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.w832f-card {
  background: var(--w832f-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--w832f-border);
}

.w832f-card-title {
  font-size: 1.8rem;
  color: var(--w832f-primary);
  margin-bottom: 1rem;
}

.w832f-card-content {
  color: var(--w832f-text);
  line-height: 1.6;
}

/* Promotional Links */
.w832f-promo-link {
  color: var(--w832f-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.w832f-promo-link:hover {
  color: var(--w832f-accent);
  border-bottom-color: var(--w832f-accent);
}

/* Footer */
.w832f-footer {
  background: var(--w832f-bg-light);
  padding: 2rem 0 7rem;
  border-top: 2px solid var(--w832f-accent);
  margin-top: 2rem;
}

.w832f-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.w832f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w832f-footer-links a {
  color: var(--w832f-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.w832f-footer-links a:hover {
  color: var(--w832f-primary);
}

.w832f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w832f-partners img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w832f-partners img:hover {
  opacity: 1;
}

.w832f-copyright {
  color: var(--w832f-text-muted);
  font-size: 1.2rem;
  text-align: center;
}

/* Bottom Navigation (Mobile) */
.w832f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--w832f-accent) 0%, var(--w832f-bg) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--w832f-border);
  box-shadow: 0 -2px 10px var(--w832f-shadow);
}

.w832f-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w832f-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.w832f-nav-item:hover,
.w832f-nav-item.w832f-nav-active {
  color: var(--w832f-accent);
  transform: scale(1.1);
}

.w832f-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.w832f-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive Design */
@media (min-width: 769px) {
  .w832f-bottom-nav {
    display: none;
  }

  .w832f-main {
    padding-bottom: 2rem;
  }

  .w832f-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .w832f-carousel {
    height: 300px;
  }

  .w832f-carousel-slide {
    height: 300px;
  }
}

/* Utility Classes */
.w832f-text-center {
  text-align: center;
}

.w832f-mt-1 {
  margin-top: 1rem;
}

.w832f-mt-2 {
  margin-top: 2rem;
}

.w832f-mb-1 {
  margin-bottom: 1rem;
}

.w832f-mb-2 {
  margin-bottom: 2rem;
}

.w832f-p-1 {
  padding: 1rem;
}

.w832f-p-2 {
  padding: 2rem;
}

/* Animations */
@keyframes w832f-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w832f-animate-fadeIn {
  animation: w832f-fadeIn 0.5s ease;
}

/* Touch feedback */
.w832f-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* H1 Styles */
h1 {
  font-size: 2.2rem;
  color: var(--w832f-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

/* H2 Styles */
h2 {
  font-size: 1.8rem;
  color: var(--w832f-secondary);
  margin-bottom: 1rem;
}

/* H3 Styles */
h3 {
  font-size: 1.6rem;
  color: var(--w832f-accent);
  margin-bottom: 0.8rem;
}

/* Paragraph Styles */
p {
  margin-bottom: 1rem;
  color: var(--w832f-text);
}

/* List Styles */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--w832f-text);
}
