/**
 * Paldo Plus - Theme Stylesheet
 * Prefix: w12db- (classes), --w12db- (variables)
 * Mobile-first design, max-width 430px
 */
:root {
  --w12db-primary: #D2691E;
  --w12db-bg: #2E4057;
  --w12db-bg-light: #3a5068;
  --w12db-bg-dark: #1e2d3d;
  --w12db-text: #f0e6d8;
  --w12db-text-muted: #a8b4c2;
  --w12db-accent: #e8a04e;
  --w12db-accent-light: #f0c078;
  --w12db-danger: #d44;
  --w12db-success: #2ecc71;
  --w12db-white: #fff;
  --w12db-border: rgba(210,105,30,0.3);
  --w12db-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --w12db-radius: 8px;
  --w12db-radius-lg: 12px;
  --w12db-header-h: 52px;
  --w12db-bottom-nav-h: 60px;
}

/* Base reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w12db-bg);
  color: var(--w12db-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--w12db-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--w12db-accent-light); }

img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.w12db-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w12db-header-h);
  background: var(--w12db-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--w12db-border);
}

.w12db-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w12db-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w12db-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w12db-primary);
  letter-spacing: 0.5px;
}

.w12db-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w12db-btn-register,
.w12db-btn-login {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--w12db-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.w12db-btn-register {
  background: var(--w12db-primary);
  color: var(--w12db-white);
}
.w12db-btn-register:hover {
  background: var(--w12db-accent);
  transform: scale(1.03);
}

.w12db-btn-login {
  background: transparent;
  color: var(--w12db-primary);
  border: 1px solid var(--w12db-primary);
}
.w12db-btn-login:hover {
  background: rgba(210,105,30,0.15);
}

.w12db-menu-btn {
  background: none;
  border: none;
  color: var(--w12db-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ========== SIDE MENU ========== */
.w12db-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.w12db-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w12db-side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--w12db-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 0;
  border-left: 1px solid var(--w12db-border);
}
.w12db-menu-active {
  right: 0;
}

.w12db-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--w12db-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w12db-menu-header img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w12db-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w12db-primary);
}

.w12db-menu-nav {
  list-style: none;
  padding: 1rem 0;
}

.w12db-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  color: var(--w12db-text);
  font-size: 1.4rem;
  transition: all 0.2s;
}
.w12db-menu-nav li a:hover {
  background: rgba(210,105,30,0.1);
  color: var(--w12db-primary);
}

.w12db-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--w12db-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

/* ========== CAROUSEL ========== */
.w12db-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: var(--w12db-header-h);
}

.w12db-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w12db-slide-active {
  opacity: 1;
}

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

.w12db-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.w12db-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.w12db-dot-active {
  background: var(--w12db-primary);
  width: 20px;
  border-radius: 4px;
}

/* ========== MAIN CONTENT ========== */
.w12db-main {
  padding: 1rem;
  padding-bottom: calc(var(--w12db-bottom-nav-h) + 2rem);
}

.w12db-section {
  margin-bottom: 2rem;
}

.w12db-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w12db-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w12db-border);
}

.w12db-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w12db-accent);
  margin-bottom: 1rem;
  line-height: 1.6rem;
  text-align: center;
  padding: 1rem 0;
}

/* ========== GAME GRID ========== */
.w12db-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w12db-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.w12db-game-item:hover {
  transform: scale(1.05);
}
.w12db-game-item:active {
  transform: scale(0.95);
}

.w12db-game-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--w12db-radius);
  object-fit: cover;
  border: 2px solid var(--w12db-border);
  margin-bottom: 0.3rem;
  background: var(--w12db-bg-light);
}

.w12db-game-name {
  font-size: 1rem;
  color: var(--w12db-text-muted);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.w12db-category-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w12db-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w12db-primary);
}

/* ========== CARDS & BUTTONS ========== */
.w12db-card {
  background: var(--w12db-bg-light);
  border-radius: var(--w12db-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w12db-border);
}

.w12db-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w12db-primary);
  margin-bottom: 0.8rem;
}

.w12db-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--w12db-text-muted);
}

.w12db-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--w12db-primary), var(--w12db-accent));
  color: var(--w12db-white);
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: var(--w12db-radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
  width: 100%;
}
.w12db-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(210,105,30,0.4);
}

.w12db-text-link {
  color: var(--w12db-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.w12db-text-link:hover {
  color: var(--w12db-accent-light);
}

/* ========== FOOTER ========== */
.w12db-footer {
  background: var(--w12db-bg-dark);
  padding: 2rem 1rem;
  padding-bottom: calc(var(--w12db-bottom-nav-h) + 2rem);
  border-top: 1px solid var(--w12db-border);
}

.w12db-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.w12db-footer-brand p {
  font-size: 1.2rem;
  color: var(--w12db-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
}

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

.w12db-footer-links a {
  font-size: 1.1rem;
  color: var(--w12db-text-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--w12db-border);
  border-radius: 4px;
  transition: all 0.2s;
}
.w12db-footer-links a:hover {
  color: var(--w12db-primary);
  border-color: var(--w12db-primary);
}

.w12db-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w12db-text-muted);
  opacity: 0.7;
}

/* ========== BOTTOM NAVIGATION ========== */
.w12db-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w12db-bottom-nav-h);
  background: var(--w12db-bg-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--w12db-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.w12db-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--w12db-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  position: relative;
}
.w12db-bottom-nav-btn:hover {
  color: var(--w12db-primary);
}
.w12db-bottom-nav-btn:active {
  transform: scale(0.9);
}
.w12db-nav-btn-active {
  color: var(--w12db-primary) !important;
}
.w12db-nav-btn-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--w12db-primary);
  border-radius: 0 0 3px 3px;
}

.w12db-bottom-nav-btn i,
.w12db-bottom-nav-btn .material-icons,
.w12db-bottom-nav-btn .bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.w12db-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* ========== UTILITIES ========== */
.w12db-text-center { text-align: center; }
.w12db-text-primary { color: var(--w12db-primary); }
.w12db-text-accent { color: var(--w12db-accent); }
.w12db-mt-1 { margin-top: 1rem; }
.w12db-mb-1 { margin-bottom: 1rem; }
.w12db-p-1 { padding: 1rem; }

.w12db-promo-banner {
  background: linear-gradient(135deg, var(--w12db-primary), #b85c1a);
  border-radius: var(--w12db-radius-lg);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.w12db-promo-banner:hover {
  transform: scale(1.01);
}
.w12db-promo-banner h3 {
  color: var(--w12db-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.w12db-promo-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .w12db-main {
    padding-bottom: calc(var(--w12db-bottom-nav-h) + 2rem);
  }
  .w12db-footer {
    padding-bottom: calc(var(--w12db-bottom-nav-h) + 2rem);
  }
}

@media (min-width: 769px) {
  .w12db-bottom-nav {
    display: none;
  }
  .w12db-main {
    padding-bottom: 2rem;
  }
  .w12db-footer {
    padding-bottom: 2rem;
  }
}
