/**
 * ph777 - Design Stylesheet
 * Mobile-first responsive design
 * All classes use w497e prefix for namespace isolation
 */

/* CSS Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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: #F0FDFF;
  background-color: #0D1117;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --w497e-primary: #26A69A;
  --w497e-secondary: #AFEEEE;
  --w497e-accent: #DB7093;
  --w497e-bg-dark: #0D1117;
  --w497e-bg-light: #F0FDFF;
  --w497e-text-light: #F0FDFF;
  --w497e-text-dark: #0D1117;
  --w497e-border: rgba(38, 166, 154, 0.3);
  --w497e-shadow: rgba(0, 0, 0, 0.3);
}

/* Container */
.w497e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
.w497e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0D1117 0%, #1a2028 100%);
  border-bottom: 2px solid var(--w497e-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--w497e-shadow);
}

.w497e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.w497e-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--w497e-text-light);
}

.w497e-logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.w497e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w497e-secondary);
  letter-spacing: 0.5px;
}

.w497e-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.w497e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w497e-btn-register {
  background: linear-gradient(135deg, var(--w497e-primary) 0%, #2bb8a9 100%);
  color: var(--w497e-text-light);
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.4);
}

.w497e-btn-register:hover,
.w497e-btn-register:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.6);
}

.w497e-btn-login {
  background: transparent;
  color: var(--w497e-secondary);
  border: 2px solid var(--w497e-secondary);
}

.w497e-btn-login:hover,
.w497e-btn-login:active {
  background: var(--w497e-secondary);
  color: var(--w497e-text-dark);
}

.w497e-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.w497e-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--w497e-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.w497e-menu-toggle:hover span {
  background: var(--w497e-primary);
}

/* Mobile Menu */
.w497e-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #1a2028 0%, #0D1117 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--w497e-primary);
  box-shadow: -2px 0 10px var(--w497e-shadow);
}

.w497e-mobile-menu.w497e-menu-open {
  right: 0;
}

.w497e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--w497e-border);
}

.w497e-menu-close {
  background: transparent;
  border: none;
  color: var(--w497e-secondary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.w497e-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.w497e-menu-list li {
  border-bottom: 1px solid rgba(38, 166, 154, 0.15);
}

.w497e-menu-list a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--w497e-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.w497e-menu-list a:hover {
  background: rgba(38, 166, 154, 0.2);
  color: var(--w497e-secondary);
  padding-left: 2rem;
}

.w497e-menu-list i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  color: var(--w497e-primary);
}

.w497e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w497e-menu-overlay.w497e-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.w497e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 1.5rem;
}

.w497e-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.w497e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w497e-carousel-slide.w497e-slide-active {
  opacity: 1;
  z-index: 1;
}

.w497e-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w497e-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 17, 23, 0.7);
  border: 2px solid var(--w497e-primary);
  color: var(--w497e-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.w497e-carousel-btn:hover {
  background: var(--w497e-primary);
  color: var(--w497e-text-light);
}

.w497e-carousel-prev {
  left: 10px;
}

.w497e-carousel-next {
  right: 10px;
}

.w497e-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.w497e-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w497e-carousel-indicator.w497e-indicator-active {
  background: var(--w497e-primary);
  width: 25px;
  border-radius: 5px;
}

/* Page Title */
.w497e-page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--w497e-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  line-height: 1.3;
}

/* Section */
.w497e-section {
  background: linear-gradient(135deg, rgba(26, 32, 40, 0.8) 0%, rgba(13, 17, 23, 0.9) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--w497e-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.w497e-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w497e-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w497e-section-title i {
  color: var(--w497e-accent);
}

.w497e-section-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--w497e-text-light);
}

.w497e-section-content p {
  margin-bottom: 1rem;
}

.w497e-section-content a {
  color: var(--w497e-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.w497e-section-content a:hover {
  color: var(--w497e-primary);
  text-decoration: underline;
}

/* Game Grid */
.w497e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.w497e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.w497e-game-item:hover {
  transform: scale(1.05);
}

.w497e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 2px solid var(--w497e-border);
  transition: border-color 0.3s ease;
  background: linear-gradient(135deg, #1a2028 0%, #0D1117 100%);
}

.w497e-game-item:hover .w497e-game-icon {
  border-color: var(--w497e-primary);
}

.w497e-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w497e-game-name {
  font-size: 1.1rem;
  color: var(--w497e-text-light);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Promo Links */
.w497e-promo-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--w497e-accent) 0%, #c9587a 100%);
  color: var(--w497e-text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.w497e-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 112, 147, 0.5);
}

/* List Styles */
.w497e-list {
  list-style: none;
  padding: 0;
}

.w497e-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--w497e-border);
  font-size: 1.5rem;
  color: var(--w497e-text-light);
}

.w497e-list li:last-child {
  border-bottom: none;
}

.w497e-list li a {
  color: var(--w497e-accent);
  text-decoration: none;
  font-weight: 600;
}

.w497e-list li a:hover {
  color: var(--w497e-primary);
  text-decoration: underline;
}

/* Footer */
.w497e-footer {
  background: linear-gradient(135deg, #1a2028 0%, #0D1117 100%);
  border-top: 2px solid var(--w497e-primary);
  padding: 2rem 1rem 8rem;
  margin-top: 2rem;
}

.w497e-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.w497e-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w497e-secondary);
  margin-bottom: 1rem;
}

.w497e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w497e-footer-links a {
  color: var(--w497e-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.w497e-footer-links a:hover {
  color: var(--w497e-accent);
  text-decoration: underline;
}

.w497e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w497e-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w497e-partner-logo:hover {
  opacity: 1;
}

.w497e-copyright {
  text-align: center;
  color: rgba(240, 253, 255, 0.6);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w497e-border);
}

/* Mobile Bottom Navigation */
.w497e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, #1a2028 0%, #0D1117 100%);
  border-top: 2px solid var(--w497e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--w497e-shadow);
}

.w497e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: rgba(240, 253, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.w497e-nav-item i,
.w497e-nav-item span.material-icons,
.w497e-nav-item span.iconify {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--w497e-secondary);
}

.w497e-nav-item:hover {
  color: var(--w497e-primary);
  transform: scale(1.1);
}

.w497e-nav-item:hover i,
.w497e-nav-item:hover span.material-icons,
.w497e-nav-item:hover span.iconify {
  color: var(--w497e-accent);
}

.w497e-nav-item span:last-child {
  font-size: 10px;
  font-weight: 500;
}

.w497e-nav-item.active {
  color: var(--w497e-primary);
}

.w497e-nav-item.active i,
.w497e-nav-item.active span.material-icons,
.w497e-nav-item.active span.iconify {
  color: var(--w497e-primary);
}

/* Responsive Design */
@media (min-width: 769px) {
  .w497e-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .w497e-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .w497e-header-actions .w497e-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
  }

  .w497e-carousel {
    height: 180px;
  }
}

/* Utility Classes */
.w497e-text-center {
  text-align: center;
}

.w497e-mt-1 {
  margin-top: 1rem;
}

.w497e-mb-1 {
  margin-bottom: 1rem;
}

.w497e-mt-2 {
  margin-top: 2rem;
}

.w497e-mb-2 {
  margin-bottom: 2rem;
}
