/**
 * tableplus login - Main Stylesheet
 * All classes use ui15- prefix for namespace isolation
 * Color palette: #004D40 | #2D2D2D | #B2DFDB | #DEE2E6
 * Mobile-first design, max-width 430px
 */

/* Root variables */
:root {
  --ui15-primary: #004D40;
  --ui15-primary-dark: #00332B;
  --ui15-secondary: #2D2D2D;
  --ui15-light: #B2DFDB;
  --ui15-lighter: #DEE2E6;
  --ui15-accent: #26A69A;
  --ui15-accent-glow: #00E5A0;
  --ui15-gold: #FFD54F;
  --ui15-danger: #EF5350;
  --ui15-bg: #1A1A2E;
  --ui15-card-bg: #16213E;
  --ui15-text: #E8E8E8;
  --ui15-text-muted: #A0A0B0;
  --ui15-border: rgba(178, 223, 219, 0.15);
  --ui15-radius: 8px;
  --ui15-radius-lg: 12px;
  --ui15-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--ui15-bg);
  color: var(--ui15-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ui15-accent); text-decoration: none; }
a:hover { color: var(--ui15-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.ui15-container {
  width: 100%;
  padding: 0 1.2rem;
  margin: 0 auto;
}
.ui15-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.ui15-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: linear-gradient(135deg, var(--ui15-primary-dark), var(--ui15-primary));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 77, 64, 0.4);
}
.ui15-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ui15-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.ui15-logo-area span {
  color: var(--ui15-gold);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ui15-header-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ui15-btn-register {
  background: linear-gradient(135deg, var(--ui15-gold), #FFC107);
  color: var(--ui15-primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.ui15-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255, 213, 79, 0.5); }
.ui15-btn-login {
  background: transparent;
  color: var(--ui15-light);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--ui15-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.ui15-btn-login:hover { background: rgba(178, 223, 219, 0.15); }
.ui15-menu-toggle {
  background: none;
  border: none;
  color: var(--ui15-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.ui15-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--ui15-primary-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.ui15-menu-active { right: 0; }
.ui15-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ui15-overlay-active { opacity: 1; pointer-events: all; }
.ui15-menu-close {
  background: none;
  border: none;
  color: var(--ui15-light);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.ui15-menu-links {
  list-style: none;
  margin-top: 3rem;
}
.ui15-menu-links li {
  border-bottom: 1px solid rgba(178, 223, 219, 0.1);
}
.ui15-menu-links a {
  display: block;
  padding: 1.2rem 0;
  color: var(--ui15-light);
  font-size: 1.5rem;
  transition: color 0.2s;
}
.ui15-menu-links a:hover { color: var(--ui15-gold); }

/* Bottom Navigation */
.ui15-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--ui15-primary), var(--ui15-primary-dark));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 16px rgba(0, 77, 64, 0.4);
  border-top: 1px solid rgba(178, 223, 219, 0.15);
}
.ui15-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--ui15-light);
  cursor: pointer;
  transition: all 0.2s;
  gap: 2px;
}
.ui15-bottom-btn:hover { color: var(--ui15-gold); }
.ui15-bottom-btn:active { transform: scale(0.9); }
.ui15-bottom-btn .ui15-bnav-icon { font-size: 22px; line-height: 1; }
.ui15-bottom-btn .ui15-bnav-text { font-size: 10px; font-weight: 500; }
.ui15-bottom-btn.ui15-bnav-active { color: var(--ui15-gold); }

/* Main Content */
.ui15-main {
  padding-top: 5.6rem;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  .ui15-main { padding-bottom: 80px; }
}

/* Carousel */
.ui15-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--ui15-radius-lg) var(--ui15-radius-lg);
}
.ui15-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.ui15-slide-active { display: block; }
.ui15-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.ui15-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.ui15-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.ui15-dot-active { background: var(--ui15-gold); transform: scale(1.3); }

/* Section Titles */
.ui15-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ui15-gold);
  margin: 2rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--ui15-accent);
}
.ui15-section-title span { color: var(--ui15-light); }

/* Game Grid */
.ui15-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}
.ui15-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ui15-game-item:hover { transform: translateY(-3px); }
.ui15-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--ui15-radius);
  border: 1.5px solid var(--ui15-border);
  object-fit: cover;
  background: var(--ui15-card-bg);
}
.ui15-game-item span {
  font-size: 1.1rem;
  color: var(--ui15-text-muted);
  margin-top: 0.3rem;
  text-align: center;
  line-height: 1.3rem;
  max-height: 2.6rem;
  overflow: hidden;
}

/* Content Cards */
.ui15-card {
  background: var(--ui15-card-bg);
  border-radius: var(--ui15-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--ui15-border);
}
.ui15-card h2 {
  font-size: 1.6rem;
  color: var(--ui15-gold);
  margin-bottom: 0.8rem;
}
.ui15-card h3 {
  font-size: 1.4rem;
  color: var(--ui15-accent);
  margin-bottom: 0.6rem;
}
.ui15-card p {
  color: var(--ui15-text);
  line-height: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

/* Promo CTA */
.ui15-cta-box {
  background: linear-gradient(135deg, var(--ui15-primary), #00796B);
  border-radius: var(--ui15-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid var(--ui15-accent);
}
.ui15-cta-box p {
  color: var(--ui15-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.ui15-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ui15-gold), #FFC107);
  color: var(--ui15-primary-dark);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.8rem 2.4rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ui15-cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(255, 213, 79, 0.5); }
.ui15-promo-text {
  color: var(--ui15-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.ui15-promo-text:hover { color: var(--ui15-gold); text-decoration: underline; }

/* Footer */
.ui15-footer {
  background: var(--ui15-primary-dark);
  padding: 2rem 1.2rem 3rem;
  margin-top: 2rem;
  border-top: 2px solid var(--ui15-accent);
}
.ui15-footer-brand {
  color: var(--ui15-light);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 1.2rem;
}
.ui15-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.ui15-footer-links a {
  color: var(--ui15-accent);
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--ui15-border);
  border-radius: 15px;
  transition: all 0.2s;
}
.ui15-footer-links a:hover { border-color: var(--ui15-accent); color: var(--ui15-gold); }
.ui15-footer-copy {
  color: var(--ui15-text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
}

/* Utility */
.ui15-text-gold { color: var(--ui15-gold); }
.ui15-text-accent { color: var(--ui15-accent); }
.ui15-text-muted { color: var(--ui15-text-muted); }
.ui15-mt-1 { margin-top: 0.5rem; }
.ui15-mt-2 { margin-top: 1rem; }
.ui15-mb-1 { margin-bottom: 0.5rem; }
.ui15-mb-2 { margin-bottom: 1rem; }
.ui15-text-center { text-align: center; }
.ui15-fw-bold { font-weight: 700; }

/* Responsive - Desktop hide bottom nav */
@media (min-width: 769px) {
  .ui15-bottom-nav { display: none; }
  .ui15-main { padding-bottom: 2rem; }
}

/* Animations */
@keyframes ui15-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ui15-animate { animation: ui15-fadeIn 0.4s ease-out; }

/* H1 styling */
.ui15-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ui15-gold);
  margin: 1.5rem 0 1rem;
  line-height: 2.4rem;
}

/* List styling */
.ui15-list {
  list-style: none;
  padding: 0;
}
.ui15-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ui15-border);
  color: var(--ui15-text);
  font-size: 1.3rem;
  line-height: 1.6rem;
}
.ui15-list li:last-child { border-bottom: none; }

/* Badge */
.ui15-badge {
  display: inline-block;
  background: var(--ui15-accent);
  color: #fff;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Internal link styling */
.ui15-internal-link {
  color: var(--ui15-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.ui15-internal-link:hover { color: var(--ui15-gold); }
