/**
 * Progressive Jackpot - Core Stylesheet
 * All classes use "uif8-" prefix for namespace isolation
 * Color palette: #E9967A | #FF0000 | #B22222 | #1E1E1E | #A0522D
 * Mobile-first design, max-width 430px
 */

:root {
  --uif8-primary: #E9967A;
  --uif8-accent: #FF0000;
  --uif8-dark-red: #B22222;
  --uif8-bg: #1E1E1E;
  --uif8-brown: #A0522D;
  --uif8-text: #F5E6D3;
  --uif8-text-muted: #C4A882;
  --uif8-card-bg: #2A2220;
  --uif8-card-border: #3D2E28;
  --uif8-gradient-start: #1E1E1E;
  --uif8-gradient-end: #2C1810;
  --uif8-gold: #D4A853;
  --uif8-white: #FFFFFF;
  --uif8-radius: 1.2rem;
  --uif8-radius-sm: 0.8rem;
  --uif8-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.5);
}

/* Base reset and typography */
*, *::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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--uif8-bg);
  color: var(--uif8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* === HEADER === */
.uif8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: linear-gradient(135deg, var(--uif8-bg) 0%, #2C1810 100%);
  border-bottom: 0.2rem solid var(--uif8-brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.uif8-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.uif8-logo-area img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.uif8-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--uif8-gold);
  white-space: nowrap;
}

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

.uif8-btn-register, .uif8-btn-login {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--uif8-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.uif8-btn-register {
  background: linear-gradient(135deg, var(--uif8-accent), var(--uif8-dark-red));
  color: var(--uif8-white);
  box-shadow: 0 0.2rem 0.6rem rgba(255,0,0,0.35);
}

.uif8-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0.3rem 0.8rem rgba(255,0,0,0.5);
}

.uif8-btn-login {
  background: transparent;
  border: 0.15rem solid var(--uif8-primary);
  color: var(--uif8-primary);
}

.uif8-btn-login:hover {
  background: rgba(233,150,122,0.15);
}

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

/* === MOBILE MENU === */
.uif8-mobile-menu {
  display: none;
  position: fixed;
  top: 5.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--uif8-bg);
  border-bottom: 0.2rem solid var(--uif8-brown);
  z-index: 9999;
  padding: 1rem 0;
  animation: uif8-slideDown 0.3s ease;
}

@keyframes uif8-slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-1rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.uif8-mobile-menu a {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--uif8-text);
  font-size: 1.4rem;
  border-bottom: 0.1rem solid var(--uif8-card-border);
  transition: background 0.2s;
}

.uif8-mobile-menu a:hover {
  background: rgba(233,150,122,0.1);
  color: var(--uif8-gold);
}

/* === CAROUSEL === */
.uif8-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  margin-top: 5.6rem;
  background: var(--uif8-card-bg);
}

.uif8-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--uif8-carousel-speed, 0.5s) ease;
  cursor: pointer;
}

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

.uif8-slide-active { opacity: 1; }

.uif8-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.uif8-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.uif8-dot-active {
  background: var(--uif8-accent);
  transform: scale(1.2);
}

/* === MAIN CONTENT === */
.uif8-main {
  padding: 1.5rem 1.2rem;
}

.uif8-section {
  margin-bottom: 2.5rem;
}

.uif8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uif8-gold);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 0.4rem solid var(--uif8-accent);
}

.uif8-section-text {
  font-size: 1.4rem;
  line-height: 1.8rem;
  color: var(--uif8-text-muted);
  margin-bottom: 1rem;
}

/* === GAME GRID === */
.uif8-category-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--uif8-primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--uif8-card-border);
}

.uif8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.uif8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--uif8-radius-sm);
  padding: 0.5rem;
}

.uif8-game-item:hover {
  transform: scale(1.05);
  background: rgba(233,150,122,0.08);
}

.uif8-game-item img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 0.8rem;
  border: 0.15rem solid var(--uif8-card-border);
  margin-bottom: 0.4rem;
  background: var(--uif8-card-bg);
}

.uif8-game-item span {
  font-size: 1.05rem;
  color: var(--uif8-text);
  text-align: center;
  line-height: 1.2;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CARDS & COMPONENTS === */
.uif8-card {
  background: var(--uif8-card-bg);
  border: 0.1rem solid var(--uif8-card-border);
  border-radius: var(--uif8-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.uif8-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--uif8-gold);
  margin-bottom: 1rem;
}

.uif8-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--uif8-accent), var(--uif8-dark-red));
  color: var(--uif8-white);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--uif8-radius-sm);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 0.3rem 0.8rem rgba(255,0,0,0.3);
}

.uif8-promo-btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1rem rgba(255,0,0,0.5);
}

.uif8-promo-link {
  color: var(--uif8-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.uif8-promo-link:hover {
  color: var(--uif8-accent);
}

/* === WINNER TABLE === */
.uif8-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 0.1rem solid var(--uif8-card-border);
  font-size: 1.3rem;
}

.uif8-winner-row:last-child { border-bottom: none; }

.uif8-winner-name { color: var(--uif8-gold); font-weight: 500; }
.uif8-winner-game { color: var(--uif8-text-muted); }
.uif8-winner-amount { color: var(--uif8-accent); font-weight: 700; }

/* === TESTIMONIALS === */
.uif8-testimonial {
  background: linear-gradient(135deg, var(--uif8-card-bg), #352A24);
  border-radius: var(--uif8-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--uif8-gold);
}

.uif8-testimonial-text {
  font-style: italic;
  color: var(--uif8-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.uif8-testimonial-author {
  font-size: 1.2rem;
  color: var(--uif8-gold);
  font-weight: 600;
}

/* === FOOTER === */
.uif8-footer {
  background: linear-gradient(180deg, var(--uif8-bg), #141010);
  border-top: 0.2rem solid var(--uif8-brown);
  padding: 2rem 1.2rem 9rem;
}

.uif8-footer-desc {
  font-size: 1.2rem;
  color: var(--uif8-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.uif8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.uif8-footer-links a {
  font-size: 1.2rem;
  color: var(--uif8-primary);
  padding: 0.4rem 0.8rem;
  background: var(--uif8-card-bg);
  border-radius: var(--uif8-radius-sm);
  transition: all 0.2s;
}

.uif8-footer-links a:hover {
  background: var(--uif8-brown);
  color: var(--uif8-white);
}

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

/* === BOTTOM NAVIGATION === */
.uif8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(135deg, #1A1410, #2C1810);
  border-top: 0.15rem solid var(--uif8-brown);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1.2rem rgba(0,0,0,0.6);
}

.uif8-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--uif8-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 0.8rem;
  padding: 0.4rem;
}

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

.uif8-bottom-btn .material-icons,
.uif8-bottom-btn .fas,
.uif8-bottom-btn .far,
.uif8-bottom-btn .fad,
.uif8-bottom-btn ion-icon,
.uif8-bottom-btn .bi {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

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

.uif8-bottom-btn-active {
  background: rgba(255,0,0,0.1);
  box-shadow: inset 0 -0.2rem 0 var(--uif8-accent);
}

/* === DESKTOP === */
@media (min-width: 769px) {
  .uif8-bottom-nav { display: none; }
  .uif8-footer { padding-bottom: 2rem; }
}

/* === MOBILE BOTTOM PADDING === */
@media (max-width: 768px) {
  .uif8-main { padding-bottom: 8rem; }
  .uif8-footer { padding-bottom: 9rem; }
}

/* === UTILITY === */
.uif8-text-center { text-align: center; }
.uif8-mt-1 { margin-top: 1rem; }
.uif8-mt-2 { margin-top: 2rem; }
.uif8-mb-1 { margin-bottom: 1rem; }
.uif8-mb-2 { margin-bottom: 2rem; }
.uif8-flex-center { display: flex; justify-content: center; align-items: center; }
.uif8-hidden { display: none; }
.uif8-badge {
  display: inline-block;
  background: var(--uif8-accent);
  color: var(--uif8-white);
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
}

/* === PAYMENT ICONS === */
.uif8-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.uif8-payment-item {
  background: var(--uif8-card-bg);
  border: 0.1rem solid var(--uif8-card-border);
  border-radius: var(--uif8-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--uif8-text-muted);
}

/* === APP DOWNLOAD CTA === */
.uif8-app-cta {
  background: linear-gradient(135deg, var(--uif8-dark-red), var(--uif8-brown));
  border-radius: var(--uif8-radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.uif8-app-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uif8-white);
  margin-bottom: 0.8rem;
}

.uif8-app-cta-text {
  font-size: 1.3rem;
  color: var(--uif8-text-muted);
  margin-bottom: 1.5rem;
}

/* === FAQ === */
.uif8-faq-item {
  margin-bottom: 1.2rem;
}

.uif8-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--uif8-gold);
  margin-bottom: 0.4rem;
}

.uif8-faq-a {
  font-size: 1.3rem;
  color: var(--uif8-text-muted);
  line-height: 1.6;
}
