/**
 * GK444 Layout Stylesheet
 * Class prefix: uif8-
 * Color palette: #4682B4 | #0E1621 | #C0C0C0 | #000080 | #87CEEB
 * Dark bg: #0E1621, #000080 | Light text: #87CEEB, #C0C0C0 | Accent: #4682B4
 */

/* CSS Variables */
:root {
  --uif8-primary: #4682B4;
  --uif8-bg: #0E1621;
  --uif8-bg-deep: #000080;
  --uif8-text: #C0C0C0;
  --uif8-accent: #87CEEB;
  --uif8-white: #f0f4f8;
  --uif8-gold: #FFD700;
  --uif8-border: rgba(70, 130, 180, 0.3);
  --uif8-shadow: rgba(0, 0, 0, 0.4);
  --uif8-radius: 8px;
  --uif8-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--uif8-font);
  background: var(--uif8-bg);
  color: var(--uif8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

/* ===== HEADER ===== */
.uif8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.2rem;
  background: linear-gradient(135deg, #0a0f1a 0%, #000080 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--uif8-border);
}
.uif8-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.uif8-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
  object-fit: contain;
}
.uif8-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--uif8-accent);
  letter-spacing: 0.5px;
}
.uif8-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.uif8-btn-register {
  background: linear-gradient(135deg, var(--uif8-primary), #5a9fd4);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.uif8-btn-register:hover { transform: scale(1.04); }
.uif8-btn-login {
  background: transparent;
  color: var(--uif8-accent);
  border: 1.5px solid var(--uif8-primary);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.uif8-btn-login:hover {
  background: rgba(70, 130, 180, 0.15);
}
.uif8-menu-btn {
  background: none;
  border: none;
  color: var(--uif8-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.uif8-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #0a1020 0%, #000060 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.uif8-menu-active { right: 0 !important; }
.uif8-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.uif8-overlay-active { display: block !important; }
.uif8-menu-close {
  background: none;
  border: none;
  color: var(--uif8-accent);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.uif8-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uif8-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--uif8-border);
}
.uif8-menu-links {
  list-style: none;
  padding: 0;
}
.uif8-menu-links li {
  margin-bottom: 0.3rem;
}
.uif8-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--uif8-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.uif8-menu-links a:hover {
  background: rgba(70, 130, 180, 0.15);
  color: var(--uif8-accent);
}
.uif8-menu-links a span.uif8-menu-icon {
  font-size: 1.8rem;
  width: 2.4rem;
  text-align: center;
}

/* ===== CAROUSEL ===== */
.uif8-carousel {
  position: relative;
  width: 100%;
  margin-top: 5.2rem;
  overflow: hidden;
  border-radius: 0 0 var(--uif8-radius) var(--uif8-radius);
}
.uif8-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.uif8-slide-active { display: block !important; }
.uif8-slide img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 18rem;
  object-fit: cover;
}
.uif8-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.uif8-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
}
.uif8-dot-active { background: var(--uif8-primary) !important; }

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 5.2rem;
  padding-bottom: 1rem;
  min-height: 60vh;
}
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

/* Section Title */
.uif8-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--uif8-white);
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--uif8-primary);
  line-height: 1.3;
}
.uif8-section-title span {
  color: var(--uif8-accent);
}

/* ===== GAME GRID ===== */
.uif8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
}
.uif8-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s;
  background: rgba(70, 130, 180, 0.06);
}
.uif8-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--uif8-shadow);
}
.uif8-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--uif8-border);
}
.uif8-game-card .uif8-game-name {
  font-size: 1rem;
  color: var(--uif8-text);
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CONTENT SECTIONS ===== */
.uif8-content-block {
  background: linear-gradient(135deg, rgba(0,0,128,0.15) 0%, rgba(14,22,33,0.9) 100%);
  border: 1px solid var(--uif8-border);
  border-radius: var(--uif8-radius);
  padding: 1.2rem;
  margin: 1rem 0;
}
.uif8-content-block h2 {
  font-size: 1.6rem;
  color: var(--uif8-accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.uif8-content-block h3 {
  font-size: 1.4rem;
  color: var(--uif8-primary);
  margin: 0.8rem 0 0.4rem;
  font-weight: 600;
}
.uif8-content-block p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--uif8-text);
  margin-bottom: 0.6rem;
}
.uif8-content-block ul, .uif8-content-block ol {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}
.uif8-content-block li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--uif8-text);
  margin-bottom: 0.3rem;
}

/* Promo text link */
.uif8-promo-link {
  color: var(--uif8-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}
.uif8-promo-link:hover {
  color: var(--uif8-primary);
}

/* Promo button */
.uif8-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--uif8-primary), #3a6d9e);
  color: #fff;
  border: none;
  padding: 1rem 2.4rem;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 0.8rem 0;
}
.uif8-btn-promo:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(70, 130, 180, 0.4);
}

/* Winner showcase */
.uif8-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(70, 130, 180, 0.12);
}
.uif8-winner-item:last-child { border-bottom: none; }
.uif8-winner-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--uif8-primary);
}
.uif8-winner-info { flex: 1; }
.uif8-winner-name {
  font-size: 1.2rem;
  color: var(--uif8-accent);
  font-weight: 600;
}
.uif8-winner-detail {
  font-size: 1.1rem;
  color: var(--uif8-text);
}
.uif8-winner-amount {
  font-size: 1.3rem;
  color: var(--uif8-gold);
  font-weight: 700;
}

/* Payment icons */
.uif8-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
}
.uif8-payment-item {
  background: rgba(70, 130, 180, 0.1);
  border: 1px solid var(--uif8-border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--uif8-text);
}

/* RTP table */
.uif8-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.uif8-rtp-table th, .uif8-rtp-table td {
  padding: 0.5rem 0.6rem;
  font-size: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--uif8-border);
}
.uif8-rtp-table th {
  color: var(--uif8-accent);
  font-weight: 600;
  background: rgba(70, 130, 180, 0.08);
}
.uif8-rtp-table td { color: var(--uif8-text); }
.uif8-rtp-high { color: #4CAF50; font-weight: 600; }
.uif8-rtp-mid { color: #FFC107; font-weight: 600; }

/* Testimonials */
.uif8-testimonial {
  background: rgba(0, 0, 128, 0.12);
  border-left: 3px solid var(--uif8-primary);
  border-radius: 0 6px 6px 0;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
}
.uif8-testimonial-text {
  font-size: 1.2rem;
  color: var(--uif8-text);
  font-style: italic;
  margin-bottom: 0.4rem;
}
.uif8-testimonial-author {
  font-size: 1.1rem;
  color: var(--uif8-accent);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.uif8-footer {
  background: linear-gradient(180deg, #0a0f1a 0%, #000040 100%);
  border-top: 1px solid var(--uif8-border);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 2rem;
}
.uif8-footer-brand {
  font-size: 1.3rem;
  color: var(--uif8-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.uif8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.uif8-footer-links a {
  color: var(--uif8-accent);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.uif8-footer-links a:hover {
  background: rgba(70, 130, 180, 0.15);
}
.uif8-footer-copy {
  font-size: 1.1rem;
  color: rgba(192, 192, 192, 0.5);
  text-align: center;
  margin-top: 0.8rem;
}
.uif8-footer-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.uif8-footer-partners span {
  font-size: 1.1rem;
  color: rgba(192, 192, 192, 0.4);
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(70, 130, 180, 0.15);
  border-radius: 4px;
}

/* ===== BOTTOM NAV ===== */
.uif8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #0a0f1a 0%, #000050 100%);
  border-top: 1.5px solid var(--uif8-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.uif8-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(--uif8-text);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 0.2rem 0;
}
.uif8-bottom-btn:hover, .uif8-bottom-btn:active {
  color: var(--uif8-accent);
  transform: scale(1.08);
}
.uif8-bottom-btn-active {
  color: var(--uif8-primary) !important;
}
.uif8-bottom-btn-active .uif8-bnav-icon {
  background: rgba(70, 130, 180, 0.15);
  border-radius: 8px;
}
.uif8-bnav-icon {
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.2rem;
  transition: background 0.15s;
}
.uif8-bnav-label {
  font-size: 1rem;
  margin-top: 0.1rem;
  line-height: 1.1;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .uif8-bottom-nav { display: none; }
}

/* ===== UTILITIES ===== */
.uif8-text-center { text-align: center; }
.uif8-mt-1 { margin-top: 0.5rem; }
.uif8-mt-2 { margin-top: 1rem; }
.uif8-mb-1 { margin-bottom: 0.5rem; }
.uif8-mb-2 { margin-bottom: 1rem; }
.uif8-hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 360px) {
  .uif8-game-grid { grid-template-columns: repeat(3, 1fr); }
  .uif8-section-title { font-size: 1.6rem; }
}
@media (min-width: 769px) {
  body { border-left: 1px solid var(--uif8-border); border-right: 1px solid var(--uif8-border); }
}

/* Category label */
.uif8-cat-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--uif8-accent);
  padding: 0.6rem 1rem;
  margin-top: 0.8rem;
  background: linear-gradient(90deg, rgba(70,130,180,0.12) 0%, transparent 100%);
  border-radius: 6px 6px 0 0;
}

/* App download section */
.uif8-app-section {
  background: linear-gradient(135deg, #000080, #0E1621);
  border-radius: var(--uif8-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--uif8-border);
  margin: 1rem 0;
}
.uif8-app-section h3 {
  color: var(--uif8-accent);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.uif8-app-section p {
  color: var(--uif8-text);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

/* FAQ styles */
.uif8-faq-item {
  background: rgba(0, 0, 128, 0.1);
  border: 1px solid var(--uif8-border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
}
.uif8-faq-q {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--uif8-accent);
  margin-bottom: 0.3rem;
}
.uif8-faq-a {
  font-size: 1.2rem;
  color: var(--uif8-text);
  line-height: 1.5;
}
