/**
 * taya365link - Main Stylesheet
 * All classes use gb03- prefix for namespace isolation
 * Color palette: #880E4F | #FFFFFF | #1E1E1E | #F8F8FF | #DDA0DD | #9966CC
 * Root font: 62.5% for rem-based sizing
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --gb03-primary: #880E4F;
  --gb03-white: #FFFFFF;
  --gb03-dark: #1E1E1E;
  --gb03-ghost: #F8F8FF;
  --gb03-plum: #DDA0DD;
  --gb03-purple: #9966CC;
  --gb03-primary-dark: #6a0a3c;
  --gb03-primary-light: #a8326e;
  --gb03-gradient: linear-gradient(135deg, #880E4F 0%, #9966CC 100%);
  --gb03-gradient-dark: linear-gradient(135deg, #1E1E1E 0%, #2a1a2e 100%);
  --gb03-shadow: 0 2px 12px rgba(136, 14, 79, 0.25);
  --gb03-radius: 8px;
  --gb03-radius-lg: 16px;
  --gb03-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gb03-dark);
  color: var(--gb03-white);
  line-height: 1.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gb03-plum);
  text-decoration: none;
  transition: var(--gb03-transition);
}

a:hover {
  color: var(--gb03-white);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.gb03-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gb03-gradient-dark);
  border-bottom: 1px solid rgba(136, 14, 79, 0.3);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gb03-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb03-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gb03-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb03-white);
  letter-spacing: 0.5px;
}

.gb03-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb03-btn-register {
  background: var(--gb03-primary);
  color: var(--gb03-white);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gb03-transition);
  white-space: nowrap;
}

.gb03-btn-register:hover {
  background: var(--gb03-primary-light);
  transform: scale(1.05);
}

.gb03-btn-login {
  background: transparent;
  color: var(--gb03-white);
  border: 1px solid var(--gb03-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gb03-transition);
  white-space: nowrap;
}

.gb03-btn-login:hover {
  background: rgba(136, 14, 79, 0.2);
  transform: scale(1.05);
}

.gb03-menu-toggle {
  background: none;
  border: none;
  color: var(--gb03-white);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Mobile Menu
   ============================================ */
.gb03-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--gb03-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 70px 1.6rem 2rem;
  overflow-y: auto;
  border-left: 1px solid rgba(136, 14, 79, 0.3);
}

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

.gb03-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--gb03-ghost);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--gb03-transition);
}

.gb03-mobile-menu a:hover {
  color: var(--gb03-plum);
  padding-left: 8px;
}

.gb03-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: var(--gb03-transition);
}

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

.gb03-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gb03-white);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ============================================
   Main Content Area
   ============================================ */
.gb03-main {
  padding-top: 56px;
  min-height: 100vh;
}

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

.gb03-section {
  padding: 2rem 0;
}

.gb03-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gb03-white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gb03-primary);
}

.gb03-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gb03-plum);
  margin: 1.6rem 0 1rem;
}

/* ============================================
   Carousel
   ============================================ */
.gb03-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--gb03-radius-lg);
  margin: 1.2rem 0;
}

.gb03-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

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

.gb03-carousel-slide.gb03-slide-active {
  opacity: 1;
}

.gb03-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--gb03-radius-lg);
}

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

.gb03-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--gb03-transition);
  border: none;
}

.gb03-carousel-dot.gb03-dot-active {
  background: var(--gb03-primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   Game Grid
   ============================================ */
.gb03-game-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb03-white);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb03-game-category-title i {
  color: var(--gb03-primary-light);
}

.gb03-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.2rem;
}

.gb03-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--gb03-transition);
  border-radius: var(--gb03-radius);
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.gb03-game-item:hover {
  background: rgba(136, 14, 79, 0.15);
  transform: translateY(-2px);
}

.gb03-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--gb03-radius);
  margin-bottom: 4px;
}

.gb03-game-item span {
  font-size: 1rem;
  color: var(--gb03-ghost);
  display: block;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   Content Cards & Modules
   ============================================ */
.gb03-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(42, 26, 46, 0.9));
  border: 1px solid rgba(136, 14, 79, 0.2);
  border-radius: var(--gb03-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
}

.gb03-card p {
  font-size: 1.3rem;
  color: var(--gb03-ghost);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

.gb03-card ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

.gb03-card li {
  font-size: 1.3rem;
  color: var(--gb03-ghost);
  line-height: 1.8rem;
  margin-bottom: 0.4rem;
}

.gb03-promo-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gb03-primary-light);
  cursor: pointer;
  transition: var(--gb03-transition);
}

.gb03-promo-text:hover {
  color: var(--gb03-plum);
}

.gb03-promo-btn {
  display: inline-block;
  background: var(--gb03-gradient);
  color: var(--gb03-white);
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--gb03-transition);
  text-align: center;
}

.gb03-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--gb03-shadow);
}

/* ============================================
   Footer
   ============================================ */
.gb03-footer {
  background: var(--gb03-dark);
  border-top: 1px solid rgba(136, 14, 79, 0.3);
  padding: 2rem 1.2rem 3rem;
  text-align: center;
}

.gb03-footer-brand {
  font-size: 1.3rem;
  color: var(--gb03-ghost);
  line-height: 1.8rem;
  margin-bottom: 1.6rem;
  opacity: 0.8;
}

.gb03-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.6rem;
}

.gb03-footer-links a {
  font-size: 1.1rem;
  color: var(--gb03-plum);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(136, 14, 79, 0.1);
  transition: var(--gb03-transition);
}

.gb03-footer-links a:hover {
  background: rgba(136, 14, 79, 0.25);
  color: var(--gb03-white);
}

.gb03-footer-copy {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */
.gb03-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
  border-top: 1px solid rgba(136, 14, 79, 0.35);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.gb03-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--gb03-transition);
  padding: 4px 0;
  position: relative;
}

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

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

.gb03-bottom-nav-btn:hover {
  color: var(--gb03-plum);
  transform: scale(1.08);
}

.gb03-bottom-nav-btn.gb03-nav-active {
  color: var(--gb03-primary-light);
}

.gb03-bottom-nav-btn.gb03-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gb03-primary);
  border-radius: 0 0 3px 3px;
}

/* ============================================
   Help Page Styles
   ============================================ */
.gb03-help-content {
  padding: 1.6rem 0;
}

.gb03-help-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gb03-white);
  margin: 2rem 0 1rem;
}

.gb03-help-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gb03-plum);
  margin: 1.6rem 0 0.8rem;
}

.gb03-help-content p {
  font-size: 1.3rem;
  color: var(--gb03-ghost);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

.gb03-help-content ol,
.gb03-help-content ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.gb03-help-content li {
  font-size: 1.3rem;
  color: var(--gb03-ghost);
  line-height: 1.8rem;
  margin-bottom: 0.6rem;
}

.gb03-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(136, 14, 79, 0.15);
  border-radius: var(--gb03-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.gb03-faq-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--gb03-white);
  margin-bottom: 0.6rem;
}

.gb03-faq-item p {
  font-size: 1.2rem;
  color: var(--gb03-ghost);
  line-height: 1.6rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.gb03-text-center { text-align: center; }
.gb03-text-primary { color: var(--gb03-primary); }
.gb03-text-plum { color: var(--gb03-plum); }
.gb03-text-white { color: var(--gb03-white); }
.gb03-mt-1 { margin-top: 1rem; }
.gb03-mt-2 { margin-top: 2rem; }
.gb03-mb-1 { margin-bottom: 1rem; }
.gb03-mb-2 { margin-bottom: 2rem; }
.gb03-hidden { display: none; }

.gb03-divider {
  border: none;
  height: 1px;
  background: rgba(136, 14, 79, 0.2);
  margin: 2rem 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 769px) {
  .gb03-bottom-nav {
    display: none;
  }
  .gb03-container {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .gb03-main {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .gb03-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gb03-header-logo span {
    font-size: 1.3rem;
  }
}
