/* PHMapalad CSS Styles - Mobile First Design */
/* Color Palette: #DEE2E6 | #DEB887 | #800080 | #0E1621 */

/* CSS Variables */
:root {
  --v73b-primary: #800080;
  --v73b-secondary: #DEB887;
  --v73b-accent: #DEE2E6;
  --v73b-dark: #0E1621;
  --v73b-text-light: #DEE2E6;
  --v73b-text-dark: #0E1621;
  --v73b-gradient: linear-gradient(135deg, #800080 0%, #DEB887 100%);
  --v73b-shadow: 0 4px 6px rgba(14, 22, 33, 0.1);
  --v73b-transition: all 0.3s ease;
  --v73b-border-radius: 8px;
  --v73b-spacing-xs: 0.5rem;
  --v73b-spacing-sm: 1rem;
  --v73b-spacing-md: 1.5rem;
  --v73b-spacing-lg: 2rem;
  --v73b-spacing-xl: 3rem;
}

/* Base Reset */
* {
  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.4rem;
  line-height: 1.5;
  color: var(--v73b-text-light);
  background: linear-gradient(135deg, var(--v73b-dark) 0%, #1a1a2e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container and Layout */
.v73b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--v73b-spacing-sm);
  width: 100%;
}

.v73b-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

.v73b-main {
  flex: 1;
  padding: var(--v73b-spacing-md) 0;
}

/* Header and Navigation */
.v73b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 22, 33, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(222, 226, 230, 0.1);
}

.v73b-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--v73b-spacing-sm) 0;
  height: 60px;
}

.v73b-logo {
  display: flex;
  align-items: center;
  gap: var(--v73b-spacing-xs);
  text-decoration: none;
  color: var(--v73b-text-light);
  font-weight: 600;
  font-size: 1.8rem;
}

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

.v73b-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--v73b-spacing-xs);
}

.v73b-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--v73b-spacing-xs);
  cursor: pointer;
  transition: var(--v73b-transition);
}

.v73b-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--v73b-secondary);
  transition: var(--v73b-transition);
}

.v73b-hamburger.v73b-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.v73b-hamburger.v73b-active span:nth-child(2) {
  opacity: 0;
}

.v73b-hamburger.v73b-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.v73b-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(14, 22, 33, 0.98);
  backdrop-filter: blur(15px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.v73b-mobile-menu.v73b-active {
  transform: translateY(0);
}

.v73b-nav-menu {
  list-style: none;
  padding: var(--v73b-spacing-md);
}

.v73b-nav-item {
  margin-bottom: var(--v73b-spacing-sm);
}

.v73b-nav-link {
  display: block;
  padding: var(--v73b-spacing-sm);
  color: var(--v73b-text-light);
  text-decoration: none;
  border-radius: var(--v73b-border-radius);
  transition: var(--v73b-transition);
  background: none;
  border: none;
  font-size: 1.4rem;
  width: 100%;
  text-align: left;
}

.v73b-nav-link:hover {
  background: rgba(128, 0, 128, 0.1);
  color: var(--v73b-secondary);
}

.v73b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--v73b-transition);
  z-index: 998;
}

.v73b-menu-overlay.v73b-active {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.v73b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--v73b-spacing-xs);
  padding: var(--v73b-spacing-sm) var(--v73b-spacing-md);
  border: none;
  border-radius: var(--v73b-border-radius);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v73b-transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  line-height: 1.2;
}

.v73b-btn-primary {
  background: var(--v73b-gradient);
  color: white;
  border: 1px solid var(--v73b-primary);
}

.v73b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(128, 0, 128, 0.3);
}

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

.v73b-btn-outline:hover {
  background: var(--v73b-secondary);
  color: var(--v73b-dark);
}

.v73b-btn-large {
  padding: var(--v73b-spacing-md) var(--v73b-spacing-xl);
  font-size: 1.6rem;
  min-height: 52px;
}

/* Ripple Effect */
.v73b-ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transform: scale(0);
  pointer-events: none;
}

.v73b-ripple-active {
  animation: v73b-ripple-animation 0.6s ease-out;
}

@keyframes v73b-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Hero Section */
.v73b-hero {
  background: var(--v73b-gradient);
  padding: var(--v73b-spacing-xl) 0;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.v73b-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
  animation: v73b-grain 20s linear infinite;
  opacity: 0.3;
}

@keyframes v73b-grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100px, -100px); }
}

.v73b-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: var(--v73b-spacing-md);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.v73b-hero p {
  font-size: 1.6rem;
  margin-bottom: var(--v73b-spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* Carousel */
.v73b-carousel {
  position: relative;
  margin: var(--v73b-spacing-lg) 0;
  border-radius: var(--v73b-border-radius);
  overflow: hidden;
}

.v73b-slides {
  position: relative;
  height: 200px;
}

.v73b-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v73b-slide.v73b-active {
  opacity: 1;
}

.v73b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v73b-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--v73b-spacing-xs);
  padding: var(--v73b-spacing-sm) 0;
}

.v73b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(222, 226, 230, 0.3);
  cursor: pointer;
  transition: var(--v73b-transition);
}

.v73b-dot.v73b-active {
  background: var(--v73b-secondary);
  transform: scale(1.2);
}

/* Game Grid */
.v73b-game-section {
  margin: var(--v73b-spacing-lg) 0;
}

.v73b-section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--v73b-secondary);
  margin-bottom: var(--v73b-spacing-md);
  text-align: center;
}

.v73b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v73b-spacing-sm);
  margin-bottom: var(--v73b-spacing-lg);
}

.v73b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--v73b-spacing-sm);
  background: rgba(222, 226, 230, 0.05);
  border-radius: var(--v73b-border-radius);
  transition: var(--v73b-transition);
  text-decoration: none;
  color: var(--v73b-text-light);
  border: 1px solid rgba(222, 226, 230, 0.1);
}

.v73b-game-item:hover {
  background: rgba(128, 0, 128, 0.1);
  transform: translateY(-2px);
  border-color: var(--v73b-secondary);
}

.v73b-game-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  margin-bottom: var(--v73b-spacing-xs);
  transition: var(--v73b-transition);
  opacity: 0;
}

.v73b-game-item img.v73b-loaded {
  opacity: 1;
}

.v73b-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Sections */
.v73b-section {
  margin: var(--v73b-spacing-lg) 0;
  padding: var(--v73b-spacing-lg) 0;
}

.v73b-card {
  background: rgba(222, 226, 230, 0.03);
  border-radius: var(--v73b-border-radius);
  padding: var(--v73b-spacing-lg);
  margin-bottom: var(--v73b-spacing-md);
  border: 1px solid rgba(222, 226, 230, 0.1);
  backdrop-filter: blur(5px);
}

.v73b-card h2 {
  font-size: 2rem;
  color: var(--v73b-secondary);
  margin-bottom: var(--v73b-spacing-md);
}

.v73b-card h3 {
  font-size: 1.6rem;
  color: var(--v73b-accent);
  margin-bottom: var(--v73b-spacing-sm);
}

.v73b-card p {
  margin-bottom: var(--v73b-spacing-sm);
  line-height: 1.6;
}

.v73b-card ul {
  list-style: none;
  padding-left: var(--v73b-spacing-md);
}

.v73b-card li {
  position: relative;
  margin-bottom: var(--v73b-spacing-xs);
}

.v73b-card li::before {
  content: '→';
  position: absolute;
  left: -var(--v73b-spacing-md);
  color: var(--v73b-secondary);
  font-weight: bold;
}

/* Stats Grid */
.v73b-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--v73b-spacing-md);
  margin: var(--v73b-spacing-lg) 0;
}

.v73b-stat-item {
  text-align: center;
  padding: var(--v73b-spacing-md);
  background: rgba(128, 0, 128, 0.1);
  border-radius: var(--v73b-border-radius);
  border: 1px solid rgba(128, 0, 128, 0.2);
}

.v73b-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v73b-secondary);
  display: block;
}

.v73b-stat-label {
  font-size: 1.2rem;
  color: var(--v73b-text-light);
  opacity: 0.8;
}

/* Footer */
.v73b-footer {
  background: var(--v73b-dark);
  padding: var(--v73b-spacing-xl) 0 var(--v73b-spacing-lg);
  border-top: 1px solid rgba(222, 226, 230, 0.1);
}

.v73b-footer-content {
  text-align: center;
}

.v73b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--v73b-spacing-md);
  margin-bottom: var(--v73b-spacing-lg);
}

.v73b-footer-link {
  color: var(--v73b-accent);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--v73b-transition);
  background: none;
  border: none;
  cursor: pointer;
}

.v73b-footer-link:hover {
  color: var(--v73b-secondary);
}

.v73b-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--v73b-spacing-sm);
  margin-bottom: var(--v73b-spacing-lg);
}

.v73b-partner-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  opacity: 0.6;
  transition: var(--v73b-transition);
}

.v73b-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v73b-copyright {
  font-size: 1.2rem;
  color: rgba(222, 226, 230, 0.6);
  line-height: 1.4;
}

/* Bottom Navigation */
.v73b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 22, 33, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(222, 226, 230, 0.1);
  height: 64px;
}

.v73b-bottom-nav-container {
  display: flex;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.v73b-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(222, 226, 230, 0.6);
  transition: var(--v73b-transition);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  position: relative;
}

.v73b-bottom-nav-item:hover,
.v73b-bottom-nav-item.v73b-active {
  color: var(--v73b-secondary);
}

.v73b-bottom-nav-item.v73b-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--v73b-secondary);
  border-radius: 0 0 2px 2px;
}

.v73b-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.v73b-nav-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

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

.v73b-animate.v73b-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.v73b-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(222, 226, 230, 0.2);
  border-radius: 50%;
  border-top-color: var(--v73b-secondary);
  animation: v73b-spin 1s linear infinite;
}

@keyframes v73b-spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.v73b-text-center { text-align: center; }
.v73b-text-left { text-align: left; }
.v73b-text-right { text-align: right; }
.v73b-mb-sm { margin-bottom: var(--v73b-spacing-sm); }
.v73b-mb-md { margin-bottom: var(--v73b-spacing-md); }
.v73b-mb-lg { margin-bottom: var(--v73b-spacing-lg); }
.v73b-mt-sm { margin-top: var(--v73b-spacing-sm); }
.v73b-mt-md { margin-top: var(--v73b-spacing-md); }
.v73b-mt-lg { margin-top: var(--v73b-spacing-lg); }

/* Responsive Adjustments */
@media (max-width: 375px) {
  .v73b-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .v73b-hero h1 {
    font-size: 2.4rem;
  }
  
  .v73b-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) {
  .v73b-container {
    max-width: 768px;
  }
  
  .v73b-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .v73b-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}