/**
 * PJ8 Theme Stylesheet
 * Mobile-first responsive design
 * Color palette: #F08080, #FF8A80, #FFB6C1, #0C0C0C, #D3D3D3
 */

/* CSS Variables */
:root {
  --w629b-primary: #F08080;
  --w629b-primary-light: #FF8A80;
  --w629b-primary-pink: #FFB6C1;
  --w629b-bg-dark: #0C0C0C;
  --w629b-text-light: #D3D3D3;
  --w629b-text-white: #FFFFFF;
  --w629b-gradient: linear-gradient(135deg, #F08080 0%, #FFB6C1 100%);
  --w629b-shadow: 0 4px 12px rgba(240, 128, 128, 0.3);
}

/* 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: var(--w629b-text-light);
  background-color: var(--w629b-bg-dark);
  overflow-x: hidden;
}

/* Container */
.w629b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.w629b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w629b-primary);
  box-shadow: var(--w629b-shadow);
}

.w629b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  max-width: 430px;
  margin: 0 auto;
}

.w629b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w629b-text-white);
}

.w629b-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w629b-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w629b-primary-light);
}

.w629b-header-buttons {
  display: flex;
  gap: 1rem;
}

.w629b-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.w629b-btn-primary {
  background: var(--w629b-gradient);
  color: var(--w629b-text-white);
  box-shadow: 0 2px 8px rgba(240, 128, 128, 0.4);
}

.w629b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.6);
}

.w629b-btn-outline {
  background: transparent;
  color: var(--w629b-primary);
  border: 2px solid var(--w629b-primary);
}

.w629b-btn-outline:hover {
  background: var(--w629b-primary);
  color: var(--w629b-text-white);
}

.w629b-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--w629b-primary);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .w629b-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.w629b-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--w629b-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 2rem;
}

.w629b-mobile-menu.w629b-menu-open {
  right: 0;
}

.w629b-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--w629b-primary-pink);
}

.w629b-menu-close {
  background: none;
  border: none;
  color: var(--w629b-text-white);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.w629b-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.w629b-menu-link {
  color: var(--w629b-text-light);
  text-decoration: none;
  font-size: 1.8rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w629b-menu-link:hover {
  background: rgba(240, 128, 128, 0.1);
  color: var(--w629b-primary);
}

.w629b-menu-link i {
  width: 24px;
  text-align: center;
}

/* Main Content */
main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.w629b-carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.w629b-carousel-slide {
  display: none;
}

.w629b-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.w629b-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.w629b-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w629b-carousel-dot.w629b-active {
  background: var(--w629b-primary);
  width: 30px;
  border-radius: 5px;
}

/* Section */
.w629b-section {
  margin: 3rem 0;
}

.w629b-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w629b-primary-light);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.w629b-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--w629b-gradient);
  border-radius: 2px;
}

/* Game Grid */
.w629b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w629b-game-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.w629b-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.4);
  background: rgba(240, 128, 128, 0.1);
}

.w629b-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w629b-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  color: var(--w629b-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.w629b-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(240, 128, 128, 0.2);
  transition: all 0.3s ease;
}

.w629b-card:hover {
  border-color: var(--w629b-primary);
  box-shadow: var(--w629b-shadow);
}

.w629b-card-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--w629b-primary-light);
  margin-bottom: 1rem;
}

.w629b-card-content {
  color: var(--w629b-text-light);
  line-height: 1.8;
}

/* Links */
.w629b-link {
  color: var(--w629b-primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.w629b-link:hover {
  color: var(--w629b-primary-pink);
  text-decoration: underline;
}

/* Bottom Navigation */
.w629b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--w629b-primary);
  z-index: 1000;
  padding: 0.8rem 0;
}

@media (min-width: 769px) {
  .w629b-bottom-nav {
    display: none;
  }
}

.w629b-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w629b-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--w629b-text-light);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.w629b-nav-item:hover {
  background: rgba(240, 128, 128, 0.1);
  transform: scale(1.05);
}

.w629b-nav-item.w629b-nav-active {
  color: var(--w629b-primary);
}

.w629b-nav-icon {
  font-size: 24px;
}

.w629b-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.w629b-footer {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(240, 128, 128, 0.2);
}

.w629b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w629b-footer-link {
  color: var(--w629b-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.w629b-footer-link:hover {
  background: rgba(240, 128, 128, 0.1);
  color: var(--w629b-primary);
}

.w629b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.w629b-partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.w629b-partner-logo:hover {
  opacity: 1;
}

.w629b-copyright {
  text-align: center;
  color: var(--w629b-text-light);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Animations */
.w629b-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.w629b-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 769px) {
  .w629b-container {
    max-width: 1200px;
  }

  .w629b-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}
