/**
 * Nustar Game APK - Theme Stylesheet
 * All classes use "sde3-" prefix for namespace isolation
 * Color palette: #8B7355, #D2691E, #FFEFD5, #3A3A3A
 * @version 1.0.0
 */

/* CSS Variables */
:root {
  --sde3-primary: #D2691E;
  --sde3-secondary: #8B7355;
  --sde3-bg-dark: #3A3A3A;
  --sde3-bg-darker: #2C2C2C;
  --sde3-bg-card: #3D3D3D;
  --sde3-text-light: #FFEFD5;
  --sde3-text-gold: #D2691E;
  --sde3-text-muted: #B8A898;
  --sde3-accent: #E8943A;
  --sde3-border: #5A4A3A;
  --sde3-success: #4CAF50;
  --sde3-gradient: linear-gradient(135deg, #8B7355 0%, #D2691E 100%);
  --sde3-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --sde3-radius: 8px;
}

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

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--sde3-text-light);
  background-color: var(--sde3-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sde3-accent); text-decoration: none; }
a:hover { color: var(--sde3-text-light); }
img { max-width: 100%; height: auto; display: block; }

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

.sde3-wrapper {
  padding: 1.5rem 0;
}

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

.sde3-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.sde3-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 4px;
}

.sde3-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sde3-text-gold);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.sde3-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sde3-btn-register,
.sde3-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sde3-btn-register {
  background: var(--sde3-gradient);
  color: var(--sde3-text-light);
}

.sde3-btn-register:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.sde3-btn-login {
  background: transparent;
  color: var(--sde3-accent);
  border: 1px solid var(--sde3-accent);
}

.sde3-btn-login:hover {
  background: rgba(210,105,30,0.15);
}

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

#sde3-menu-btn.sde3-btn-active .material-icons {
  color: var(--sde3-accent);
}

/* Mobile Menu */
.sde3-mobile-menu {
  position: fixed;
  top: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--sde3-bg-darker);
  border-bottom: 2px solid var(--sde3-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sde3-mobile-menu.sde3-menu-active {
  max-height: 50rem;
}

.sde3-mobile-menu ul {
  list-style: none;
  padding: 0.8rem 0;
}

.sde3-mobile-menu li a {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--sde3-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(139,115,85,0.15);
  transition: background 0.2s;
}

.sde3-mobile-menu li a:hover {
  background: rgba(210,105,30,0.12);
  color: var(--sde3-accent);
}

/* Bottom Navigation */
.sde3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--sde3-bg-darker);
  border-top: 1px solid var(--sde3-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}

.sde3-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--sde3-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.3rem;
  gap: 0.2rem;
}

.sde3-bottom-btn:hover,
.sde3-bottom-btn:active {
  color: var(--sde3-accent);
  transform: scale(1.08);
}

.sde3-bottom-btn .sde3-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

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

.sde3-bottom-btn.sde3-active {
  color: var(--sde3-primary);
}

.sde3-bottom-btn.sde3-active .sde3-nav-icon {
  color: var(--sde3-accent);
}

/* Hero Slider */
.sde3-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 5.2rem;
  border-radius: 0 0 var(--sde3-radius) var(--sde3-radius);
}

.sde3-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.sde3-slide.sde3-slide-active {
  display: block;
}

.sde3-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sde3-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.sde3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,239,213,0.4);
}

.sde3-dot.sde3-dot-active {
  background: var(--sde3-primary);
  width: 18px;
  border-radius: 4px;
}

/* Section Titles */
.sde3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sde3-text-gold);
  margin: 2rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--sde3-primary);
  line-height: 1.3;
}

.sde3-section-subtitle {
  font-size: 1.4rem;
  color: var(--sde3-text-muted);
  margin-bottom: 1rem;
}

/* Game Grid */
.sde3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.sde3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.4rem;
  border-radius: var(--sde3-radius);
  background: var(--sde3-bg-card);
}

.sde3-game-item:hover {
  transform: scale(1.04);
  background: var(--sde3-bg-darker);
}

.sde3-game-item img {
  width: 6rem;
  height: 6rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.sde3-game-item span {
  font-size: 1rem;
  color: var(--sde3-text-light);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Content Cards */
.sde3-card {
  background: var(--sde3-bg-card);
  border-radius: var(--sde3-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--sde3-border);
  box-shadow: var(--sde3-shadow);
}

.sde3-card h2,
.sde3-card h3 {
  color: var(--sde3-text-gold);
  margin-bottom: 0.8rem;
}

.sde3-card p {
  color: var(--sde3-text-light);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Promo Buttons */
.sde3-promo-btn {
  display: inline-block;
  background: var(--sde3-gradient);
  color: var(--sde3-text-light);
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.sde3-promo-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sde3-promo-text {
  color: var(--sde3-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.sde3-promo-text:hover {
  color: var(--sde3-text-light);
  text-decoration: underline;
}

/* Footer */
.sde3-footer {
  background: var(--sde3-bg-darker);
  padding: 2rem 1.2rem 8rem;
  border-top: 1px solid var(--sde3-border);
  text-align: center;
}

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

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

.sde3-footer-links a {
  color: var(--sde3-accent);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  background: rgba(139,115,85,0.15);
  border-radius: 3px;
  transition: background 0.2s;
}

.sde3-footer-links a:hover {
  background: rgba(210,105,30,0.25);
}

.sde3-footer-copy {
  font-size: 1.1rem;
  color: var(--sde3-text-muted);
  margin-top: 1rem;
}

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

/* Content Text */
.sde3-content-text {
  color: var(--sde3-text-light);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Highlight Box */
.sde3-highlight {
  background: linear-gradient(135deg, rgba(139,115,85,0.2), rgba(210,105,30,0.15));
  border-left: 3px solid var(--sde3-primary);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--sde3-radius) var(--sde3-radius) 0;
  margin: 1rem 0;
}

/* Testimonial */
.sde3-testimonial {
  background: var(--sde3-bg-card);
  border-radius: var(--sde3-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--sde3-primary);
}

.sde3-testimonial-text {
  font-style: italic;
  color: var(--sde3-text-light);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.sde3-testimonial-author {
  font-size: 1.1rem;
  color: var(--sde3-text-muted);
}

/* Winner Item */
.sde3-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(139,115,85,0.15);
}

.sde3-winner-name {
  font-weight: 600;
  color: var(--sde3-text-light);
  font-size: 1.3rem;
}

.sde3-winner-amount {
  color: var(--sde3-accent);
  font-weight: 700;
  font-size: 1.4rem;
}

/* Payment Icons */
.sde3-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sde3-payment-item {
  background: var(--sde3-bg-card);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  color: var(--sde3-text-light);
  border: 1px solid var(--sde3-border);
}

/* Category Badge */
.sde3-cat-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.sde3-cat-badge-live { background: #c62828; color: #fff; }
.sde3-cat-badge-hot { background: #E65100; color: #fff; }
.sde3-cat-badge-slot { background: #1565C0; color: #fff; }
.sde3-cat-badge-cards { background: #2E7D32; color: #fff; }
.sde3-cat-badge-fishing { background: #00838F; color: #fff; }

/* FAQ Item */
.sde3-faq-item {
  background: var(--sde3-bg-card);
  border-radius: var(--sde3-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--sde3-border);
}

.sde3-faq-q {
  font-weight: 700;
  color: var(--sde3-accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.sde3-faq-a {
  color: var(--sde3-text-light);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Feature Grid */
.sde3-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.sde3-feature-item {
  background: var(--sde3-bg-card);
  border-radius: var(--sde3-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--sde3-border);
}

.sde3-feature-item h3 {
  color: var(--sde3-accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.sde3-feature-item p {
  color: var(--sde3-text-muted);
  font-size: 1.1rem;
}

/* Main Content Padding for Mobile Nav */
@media (max-width: 768px) {
  .sde3-main-content {
    padding-bottom: 80px;
  }
}

/* Desktop: Hide Bottom Nav, Show Desktop Nav */
@media (min-width: 769px) {
  .sde3-bottom-nav {
    display: none;
  }
}
