/**
 * PHLBest Design System
 * Class prefix: uide-
 * Color scheme: #1A1A1A (dark), #F8F9FA (light), #2C3E50 (primary), #34495E (secondary)
 */

:root {
  --uide-dark: #1A1A1A;
  --uide-light: #F8F9FA;
  --uide-primary: #2C3E50;
  --uide-secondary: #34495E;
  --uide-accent: #3498DB;
  --uide-success: #27AE60;
  --uide-warning: #F39C12;
  --uide-danger: #E74C3C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--uide-light);
  background-color: var(--uide-dark);
  overflow-x: hidden;
}

.uide-wrapper {
  min-height: 100vh;
  padding-bottom: 70px;
}

.uide-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.uide-header {
  background: linear-gradient(135deg, var(--uide-dark) 0%, var(--uide-primary) 100%);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.uide-header.uide-scrolled {
  padding: 0.8rem 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

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

.uide-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uide-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.uide-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--uide-light);
  letter-spacing: 0.5px;
}

.uide-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uide-btn-header {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uide-btn-register {
  background: var(--uide-accent);
  color: white;
}

.uide-btn-register:hover {
  background: #2980B9;
  transform: translateY(-2px);
}

.uide-btn-login {
  background: transparent;
  color: var(--uide-light);
  border: 2px solid var(--uide-light);
}

.uide-btn-login:hover {
  background: var(--uide-light);
  color: var(--uide-dark);
}

.uide-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.uide-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--uide-light);
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.uide-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--uide-primary);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 1001;
  padding-top: 80px;
}

.uide-mobile-menu.uide-menu-active {
  right: 0;
}

.uide-menu-list {
  list-style: none;
}

.uide-menu-item {
  border-bottom: 1px solid rgba(248, 249, 250, 0.1);
}

.uide-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--uide-light);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.uide-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
}

.uide-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

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

.uide-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--uide-light);
  text-align: center;
  margin-bottom: 2rem;
}

.uide-content-box {
  background: rgba(44, 62, 80, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(248, 249, 250, 0.1);
}

.uide-content-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--uide-light);
  margin-bottom: 1.5rem;
}

.uide-content-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ADB5BD;
  margin-bottom: 1.5rem;
}

/* Button Styles */
.uide-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.uide-btn-primary {
  background: var(--uide-accent);
  color: white;
}

.uide-btn-primary:hover {
  background: #2980B9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.uide-btn-secondary {
  background: var(--uide-secondary);
  color: white;
}

.uide-btn-secondary:hover {
  background: #2C3E50;
  transform: translateY(-2px);
}

.uide-btn-block {
  display: block;
  width: 100%;
}

.uide-mt-2 {
  margin-top: 2rem;
}

/* List Styles */
.uide-list {
  list-style: none;
  padding: 0;
}

.uide-list-item {
  padding: 1.2rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: #ADB5BD;
  font-size: 1.4rem;
  line-height: 1.8;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
}

.uide-list-item:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--uide-success);
  font-weight: 700;
  font-size: 1.6rem;
}

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

.uide-game-item {
  background: rgba(44, 62, 80, 0.3);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(248, 249, 250, 0.1);
}

.uide-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
  border-color: var(--uide-accent);
}

.uide-game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.uide-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uide-game-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--uide-light);
}

/* Footer Styles */
.uide-footer {
  background: var(--uide-primary);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(248, 249, 250, 0.1);
}

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

.uide-footer-link {
  color: var(--uide-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.uide-footer-link:hover {
  color: var(--uide-accent);
}

.uide-copyright {
  text-align: center;
  color: #ADB5BD;
  font-size: 1.2rem;
}

/* Bottom Navigation */
.uide-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--uide-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.uide-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
}

.uide-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--uide-light);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.uide-bottom-nav-item:hover {
  color: var(--uide-accent);
}

.uide-bottom-nav-icon {
  font-size: 2rem;
}

.uide-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Utility Classes */
.uide-text-center {
  text-align: center;
}

.uide-mb-2 {
  margin-bottom: 2rem;
}

.uide-p-2 {
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 375px) {
  html {
    font-size: 55%;
  }
  
  .uide-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
