/**
 * Taya77 Layout Stylesheet
 * All classes use wc439- prefix for namespace isolation
 * Color Palette: #00CED1 (teal) | #2C3E50 (dark navy) | #FF5722 (deep orange) | #FA8072 (salmon) | #AD1457 (deep pink)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Custom Properties */
:root {
  --wc439-primary: #00CED1;
  --wc439-secondary: #FF5722;
  --wc439-bg: #2C3E50;
  --wc439-bg-dark: #1a252f;
  --wc439-bg-card: #34495e;
  --wc439-text: #f0f0f0;
  --wc439-text-muted: #b0bec5;
  --wc439-accent: #FA8072;
  --wc439-highlight: #AD1457;
  --wc439-border: rgba(0, 206, 209, 0.2);
  --wc439-shadow: rgba(0, 0, 0, 0.3);
  --wc439-radius: 10px;
  --wc439-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

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

/* ========== HEADER ========== */
.wc439-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wc439-bg) 0%, var(--wc439-bg-dark) 100%);
  border-bottom: 2px solid var(--wc439-primary);
  box-shadow: 0 2px 12px var(--wc439-shadow);
  height: 56px;
}
.wc439-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
}
.wc439-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.wc439-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.wc439-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wc439-primary);
  letter-spacing: 0.5px;
}
.wc439-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wc439-btn-register, .wc439-btn-login {
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--wc439-transition);
  white-space: nowrap;
}
.wc439-btn-register {
  background: linear-gradient(135deg, var(--wc439-secondary), #e64a19);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}
.wc439-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 87, 34, 0.6); }
.wc439-btn-login {
  background: transparent;
  color: var(--wc439-primary);
  border: 2px solid var(--wc439-primary);
}
.wc439-btn-login:hover { background: var(--wc439-primary); color: var(--wc439-bg-dark); }
.wc439-menu-toggle {
  background: none;
  border: none;
  color: var(--wc439-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: var(--wc439-transition);
  display: flex;
  align-items: center;
}
.wc439-menu-toggle:hover { color: var(--wc439-primary); }
.wc439-toggle-active { color: var(--wc439-secondary); }

/* ========== MOBILE MENU ========== */
.wc439-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.wc439-overlay-active { display: block; }
.wc439-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--wc439-bg-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 2px solid var(--wc439-primary);
}
.wc439-menu-active { right: 0; }
.wc439-mobile-menu .wc439-menu-close {
  background: none;
  border: none;
  color: var(--wc439-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1.2rem;
}
.wc439-mobile-menu h3 {
  color: var(--wc439-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--wc439-border);
}
.wc439-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--wc439-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--wc439-transition);
}
.wc439-menu-link:hover { color: var(--wc439-primary); padding-left: 0.5rem; }

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

/* ========== SECTIONS ========== */
.wc439-section {
  padding: 2rem 0;
}
.wc439-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wc439-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--wc439-primary);
  display: inline-block;
}
.wc439-section-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wc439-accent);
  margin: 1.5rem 0 0.8rem;
}

/* ========== GAME GRID ========== */
.wc439-game-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wc439-primary);
  margin: 1.8rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wc439-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wc439-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wc439-transition);
  border-radius: var(--wc439-radius);
  padding: 0.5rem;
  background: var(--wc439-bg-card);
}
.wc439-game-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px var(--wc439-shadow); }
.wc439-game-item img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.wc439-game-item span {
  font-size: 1.1rem;
  color: var(--wc439-text-muted);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========== CARDS ========== */
.wc439-card {
  background: var(--wc439-bg-card);
  border-radius: var(--wc439-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--wc439-border);
}
.wc439-card h3 {
  font-size: 1.6rem;
  color: var(--wc439-primary);
  margin-bottom: 0.8rem;
}
.wc439-card p {
  color: var(--wc439-text-muted);
  line-height: 1.6;
  font-size: 1.4rem;
}

/* ========== BUTTONS ========== */
.wc439-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--wc439-transition);
  border: none;
  text-align: center;
  min-height: 44px;
}
.wc439-btn-primary {
  background: linear-gradient(135deg, var(--wc439-secondary), #e64a19);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4);
}
.wc439-btn-primary:hover { transform: scale(1.05); }
.wc439-btn-accent {
  background: linear-gradient(135deg, var(--wc439-primary), #00a8a8);
  color: var(--wc439-bg-dark);
}
.wc439-btn-accent:hover { transform: scale(1.05); }
.wc439-btn-highlight {
  background: linear-gradient(135deg, var(--wc439-highlight), #c2185b);
  color: #fff;
  box-shadow: 0 3px 10px rgba(173, 20, 87, 0.4);
}
.wc439-btn-highlight:hover { transform: scale(1.05); }

/* ========== CTA BANNER ========== */
.wc439-cta-banner {
  background: linear-gradient(135deg, var(--wc439-secondary), var(--wc439-highlight));
  border-radius: var(--wc439-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.wc439-cta-banner h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.wc439-cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* ========== FOOTER ========== */
.wc439-footer {
  background: var(--wc439-bg-dark);
  padding: 2rem 0;
  border-top: 2px solid var(--wc439-primary);
}
.wc439-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wc439-footer-brand p {
  color: var(--wc439-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}
.wc439-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.wc439-footer-links a {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--wc439-bg-card);
  color: var(--wc439-text);
  font-size: 1.2rem;
  border: 1px solid var(--wc439-border);
}
.wc439-footer-links a:hover { background: var(--wc439-primary); color: var(--wc439-bg-dark); }
.wc439-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wc439-footer-partners img { height: 24px; opacity: 0.7; transition: var(--wc439-transition); }
.wc439-footer-partners img:hover { opacity: 1; }
.wc439-footer-copy {
  text-align: center;
  color: var(--wc439-text-muted);
  font-size: 1.2rem;
  border-top: 1px solid var(--wc439-border);
  padding-top: 1rem;
}

/* ========== BOTTOM NAV ========== */
.wc439-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--wc439-bg), var(--wc439-bg-dark));
  border-top: 2px solid var(--wc439-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -2px 10px var(--wc439-shadow);
}
.wc439-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--wc439-text-muted);
  cursor: pointer;
  transition: var(--wc439-transition);
  padding: 0.3rem;
  border-radius: 8px;
}
.wc439-bottom-btn:hover, .wc439-bottom-btn:focus {
  color: var(--wc439-primary);
  background: rgba(0, 206, 209, 0.1);
}
.wc439-bottom-btn:active { transform: scale(0.92); }
.wc439-bottom-btn .wc439-bnav-icon { font-size: 22px; margin-bottom: 2px; }
.wc439-bottom-btn .wc439-bnav-label { font-size: 1rem; white-space: nowrap; }
.wc439-bottom-btn.wc439-bnav-active { color: var(--wc439-primary); }
.wc439-bottom-btn.wc439-bnav-active .wc439-bnav-icon {
  text-shadow: 0 0 8px rgba(0, 206, 209, 0.6);
}

/* ========== MAIN CONTENT PADDING ========== */
main { padding-top: 56px; }

/* ========== UTILITIES ========== */
.wc439-text-center { text-align: center; }
.wc439-text-primary { color: var(--wc439-primary); }
.wc439-text-accent { color: var(--wc439-accent); }
.wc439-text-highlight { color: var(--wc439-highlight); }
.wc439-text-muted { color: var(--wc439-text-muted); }
.wc439-text-sm { font-size: 1.3rem; }
.wc439-mb-1 { margin-bottom: 0.8rem; }
.wc439-mb-2 { margin-bottom: 1.5rem; }
.wc439-mb-3 { margin-bottom: 2rem; }
.wc439-mt-1 { margin-top: 0.8rem; }
.wc439-mt-2 { margin-top: 1.5rem; }
.wc439-flex-center { display: flex; align-items: center; justify-content: center; }
.wc439-promo-text {
  color: var(--wc439-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--wc439-transition);
}
.wc439-promo-text:hover { color: var(--wc439-accent); text-decoration: underline; }
.wc439-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wc439-border), transparent);
  margin: 1.5rem 0;
}

/* ========== LIST ITEMS ========== */
.wc439-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--wc439-text-muted);
  font-size: 1.4rem;
  line-height: 1.5;
}
.wc439-list-item i { color: var(--wc439-primary); margin-top: 0.3rem; font-size: 1.4rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .wc439-footer { padding-bottom: 70px; }
}
@media (min-width: 769px) {
  .wc439-bottom-nav { display: none; }
  .wc439-menu-toggle { display: none; }
  .wc439-container { max-width: 430px; }
}
