/**
 * SpinPH99 - Theme Stylesheet
 * All classes use w730a prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --w730a-primary: #36454F;
  --w730a-accent: #DC143C;
  --w730a-pink: #FFC0CB;
  --w730a-dark: #1C2833;
  --w730a-blue: #6495ED;
  --w730a-white: #FFFFFF;
  --w730a-gray: #E8E8E8;
  --w730a-text: #333333;
  --w730a-text-light: #666666;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--w730a-text);
  background-color: var(--w730a-gray);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
}

/* Container */
.w730a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.w730a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--w730a-primary) 0%, var(--w730a-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.w730a-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w730a-white);
}

.w730a-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.w730a-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w730a-white);
}

.w730a-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.w730a-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.w730a-btn-register {
  background: linear-gradient(135deg, var(--w730a-accent) 0%, #B01030 100%);
  color: var(--w730a-white);
}

.w730a-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.w730a-btn-login {
  background: transparent;
  color: var(--w730a-white);
  border: 2px solid var(--w730a-blue);
}

.w730a-btn-login:hover {
  background: var(--w730a-blue);
  color: var(--w730a-white);
}

.w730a-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--w730a-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.w730a-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 60px);
  background: var(--w730a-primary);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.w730a-mobile-menu.w730a-menu-open {
  left: 50%;
  transform: translateX(-50%);
}

.w730a-menu-item {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--w730a-white);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.w730a-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.w730a-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 140px);
}

/* Carousel */
.w730a-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  margin-bottom: 2rem;
}

.w730a-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.w730a-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.w730a-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.w730a-section {
  background: var(--w730a-white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.w730a-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w730a-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Grid */
.w730a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w730a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.w730a-game-item:hover {
  transform: scale(1.05);
}

.w730a-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.w730a-game-name {
  font-size: 1.1rem;
  color: var(--w730a-text);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.w730a-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w730a-accent);
  margin: 2rem 0 1rem 0;
  padding-left: 0.5rem;
  border-left: 4px solid var(--w730a-blue);
}

/* Card Styles */
.w730a-card {
  background: var(--w730a-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.w730a-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w730a-primary);
  margin-bottom: 1rem;
}

.w730a-card-content {
  font-size: 1.4rem;
  color: var(--w730a-text-light);
  line-height: 1.8;
}

.w730a-card-content p {
  margin-bottom: 1rem;
}

/* Text Links */
.w730a-link {
  color: var(--w730a-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.w730a-link:hover {
  color: var(--w730a-blue);
  text-decoration: underline;
}

/* Bottom Navigation */
.w730a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--w730a-dark) 0%, var(--w730a-primary) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.w730a-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--w730a-white);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.w730a-nav-btn:hover,
.w730a-nav-btn.w730a-active {
  color: var(--w730a-pink);
  transform: scale(1.1);
}

.w730a-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.w730a-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

.w730a-touch-active {
  transform: scale(0.95);
}

/* Footer */
.w730a-footer {
  background: var(--w730a-primary);
  color: var(--w730a-white);
  padding: 3rem 1rem 8rem 1rem;
  margin-top: 2rem;
}

.w730a-footer-section {
  margin-bottom: 2rem;
}

.w730a-footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--w730a-pink);
}

.w730a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.w730a-footer-link {
  color: var(--w730a-white);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.w730a-footer-link:hover {
  background: var(--w730a-accent);
  transform: translateY(-2px);
}

.w730a-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w730a-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.w730a-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.w730a-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w730a-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .w730a-bottom-nav {
    display: none;
  }

  .w730a-main {
    padding-bottom: 2rem;
  }

  .w730a-menu-toggle {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .w730a-menu-toggle {
    display: block;
  }

  .w730a-main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.w730a-text-center {
  text-align: center;
}

.w730a-mt-1 {
  margin-top: 1rem;
}

.w730a-mb-1 {
  margin-bottom: 1rem;
}

.w730a-mb-2 {
  margin-bottom: 2rem;
}

.w730a-p-2 {
  padding: 2rem;
}
