/* ===========================================================
   PT Gaming APK - design.css
   Mobile-first styles for ptgamingapk.homes
   All custom classes use the "uife-" prefix.
   =========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --uife-bg: #000080;            /* deep navy background */
  --uife-bg-2: #0b0b3b;          /* darker navy */
  --uife-bg-3: #15154a;
  --uife-surface: #1c1c54;
  --uife-card: #23235f;
  --uife-primary: #FFE135;       /* brand yellow accent */
  --uife-secondary: #6495ED;     /* cornflower blue */
  --uife-text: #E9ECEF;          /* near-white text */
  --uife-text-muted: #b9b9d8;
  --uife-dark: #333333;
  --uife-gray: #4A4A4A;
  --uife-light: #E9ECEF;
  --uife-success: #28c76f;
  --uife-danger: #ea5455;
  --uife-border: rgba(255,225,53,0.18);
  --uife-radius: 14px;
  --uife-shadow: 0 6px 22px rgba(0,0,0,0.35);
  --uife-header-h: 60px;
  --uife-bottomnav-h: 62px;
  --uife-gradient: linear-gradient(135deg, #000080 0%, #15154a 55%, #23235f 100%);
  --uife-yellow-gradient: linear-gradient(135deg, #FFE135 0%, #ffd000 100%);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, Arial, sans-serif;
  background: var(--uife-bg);
  color: var(--uife-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--uife-primary); text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.uife-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.uife-container { padding: 2rem 1.2rem; }
.uife-main { padding-top: calc(var(--uife-header-h) + 1rem); padding-bottom: calc(var(--uife-bottomnav-h) + 2rem); }

/* ---------- Header ---------- */
.uife-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--uife-header-h);
  background: rgba(0,0,40,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--uife-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.uife-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--uife-text); font-weight: 800; font-size: 1.6rem;
}
.uife-logo img { width: 30px; height: 30px; border-radius: 6px; }
.uife-logo .uife-logo-accent { color: var(--uife-primary); }

.uife-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.uife-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.7rem 1.2rem; border-radius: 30px;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 38px; line-height: 1;
}
.uife-btn:active { transform: scale(0.96); }
.uife-btn-primary {
  background: var(--uife-yellow-gradient);
  color: #000080;
  box-shadow: 0 4px 12px rgba(255,225,53,0.35);
}
.uife-btn-secondary {
  background: transparent;
  color: var(--uife-primary);
  border: 1.5px solid var(--uife-primary);
}
.uife-btn-block {
  display: flex; width: 100%; justify-content: center;
  padding: 1.1rem 1rem; font-size: 1.5rem; font-weight: 800;
}

.uife-menu-toggle {
  background: transparent; border: none; color: var(--uife-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile slide menu ---------- */
.uife-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 340px; height: 100vh;
  background: var(--uife-bg-2);
  border-left: 2px solid var(--uife-primary);
  z-index: 9999;
  padding: 2rem 1.5rem;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.uife-mobile-menu.uife-open { right: 0; }
.uife-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.uife-menu-backdrop.uife-open { opacity: 1; pointer-events: auto; }
.uife-menu-close {
  background: transparent; border: none; color: var(--uife-primary);
  font-size: 2.4rem; position: absolute; top: 1rem; right: 1.2rem; cursor: pointer;
}
.uife-mobile-menu h3 { color: var(--uife-primary); margin: 1.5rem 0 0.8rem; font-size: 1.4rem; letter-spacing: 0.5px; }
.uife-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid rgba(255,225,53,0.12);
  color: var(--uife-text);
  font-size: 1.4rem; font-weight: 600;
}
.uife-mobile-menu a:active { background: rgba(255,225,53,0.08); }

/* ---------- Hero / Carousel ---------- */
.uife-hero { position: relative; margin: 1rem 0; border-radius: var(--uife-radius); overflow: hidden; box-shadow: var(--uife-shadow); }
.uife-carousel { position: relative; overflow: hidden; border-radius: var(--uife-radius); }
.uife-carousel-track { display: flex; transition: transform 0.5s ease; }
.uife-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.uife-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.uife-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,40,0.92), transparent);
  color: var(--uife-text);
}
.uife-carousel-caption strong { color: var(--uife-primary); display: block; font-size: 1.5rem; }
.uife-carousel-dots { display: flex; justify-content: center; gap: 0.4rem; padding: 0.6rem 0; }
.uife-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,225,53,0.35); cursor: pointer;
}
.uife-carousel-dots span.uife-active { background: var(--uife-primary); width: 20px; border-radius: 4px; }

/* ---------- Section headings ---------- */
.uife-section { padding: 1.6rem 0; }
.uife-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; font-weight: 800;
  color: var(--uife-text);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--uife-border);
}
.uife-section-title i, .uife-section-title span.material-symbols-outlined {
  color: var(--uife-primary); font-size: 2rem;
}
.uife-section-title .uife-accent { color: var(--uife-primary); }

/* ---------- Game grid ---------- */
.uife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.uife-grid-4 { grid-template-columns: repeat(4, 1fr); }
.uife-game-card {
  background: var(--uife-card);
  border: 1px solid var(--uife-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  text-align: center;
  padding: 0.5rem;
}
.uife-game-card:active { transform: scale(0.96); }
.uife-game-card img {
  width: 100%; height: 80px; object-fit: cover; border-radius: 8px;
}
.uife-game-card .uife-game-name {
  display: block;
  font-size: 1.1rem;
  color: var(--uife-text);
  margin-top: 0.4rem;
  font-weight: 600;
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
}
.uife-game-card:hover img { box-shadow: 0 4px 14px rgba(255,225,53,0.25); }

/* ---------- Cards / content blocks ---------- */
.uife-card {
  background: var(--uife-surface);
  border: 1px solid var(--uife-border);
  border-radius: var(--uife-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--uife-shadow);
}
.uife-card h2 { font-size: 1.7rem; color: var(--uife-primary); margin-bottom: 0.6rem; }
.uife-card h3 { font-size: 1.4rem; color: var(--uife-secondary); margin: 0.8rem 0 0.4rem; }
.uife-card p { margin-bottom: 0.8rem; color: var(--uife-text); }
.uife-card ul { padding-left: 1.4rem; }
.uife-card li { margin-bottom: 0.4rem; list-style: disc; color: var(--uife-text-muted); }

.uife-text-link { color: var(--uife-primary); font-weight: 700; border-bottom: 1px dashed var(--uife-primary); }
.uife-prose p { margin-bottom: 0.9rem; line-height: 1.6rem; color: var(--uife-text); }
.uife-prose strong { color: var(--uife-primary); }

/* ---------- Banner / promo strip ---------- */
.uife-promo-strip {
  background: var(--uife-yellow-gradient);
  color: #000080;
  border-radius: var(--uife-radius);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin: 1rem 0; font-weight: 800;
  box-shadow: var(--uife-shadow);
}
.uife-promo-strip .uife-strip-text { font-size: 1.3rem; line-height: 1.3rem; }
.uife-promo-strip button {
  background: #000080; color: var(--uife-primary);
  border: none; border-radius: 30px;
  padding: 0.7rem 1.1rem; font-size: 1.2rem; font-weight: 800; cursor: pointer;
}

/* ---------- FAQ ---------- */
.uife-faq-item {
  border: 1px solid var(--uife-border);
  border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden;
  background: var(--uife-card);
}
.uife-faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--uife-text); font-weight: 700; font-size: 1.35rem;
  padding: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.uife-faq-q i { color: var(--uife-primary); transition: transform 0.2s ease; }
.uife-faq-a { padding: 0 1rem 1rem; color: var(--uife-text-muted); display: none; }
.uife-faq-item.uife-open .uife-faq-a { display: block; }
.uife-faq-item.uife-open .uife-faq-q i { transform: rotate(180deg); }

/* ---------- Testimonials ---------- */
.uife-testimonial { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem; border-bottom: 1px solid var(--uife-border); }
.uife-testimonial:last-child { border-bottom: none; }
.uife-testimonial .uife-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--uife-secondary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.uife-testimonial .uife-stars { color: var(--uife-primary); font-size: 1.1rem; }

/* ---------- Winners strip ---------- */
.uife-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--uife-border);
  font-size: 1.25rem;
}
.uife-winner:last-child { border-bottom: none; }
.uife-winner .uife-winner-name { color: var(--uife-text); font-weight: 700; }
.uife-winner .uife-winner-amount { color: var(--uife-primary); font-weight: 800; }

/* ---------- Payment methods ---------- */
.uife-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.uife-pay-item {
  background: var(--uife-card);
  border-radius: 8px; padding: 0.8rem 0.4rem;
  text-align: center; font-size: 1.1rem;
  border: 1px solid var(--uife-border);
  color: var(--uife-text);
}
.uife-pay-item i, .uife-pay-item span.material-symbols-outlined { color: var(--uife-secondary); font-size: 1.8rem; }

/* ---------- Steps ---------- */
.uife-step { display: flex; gap: 0.8rem; margin-bottom: 1rem; }
.uife-step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--uife-yellow-gradient); color: #000080;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.uife-step-body h4 { font-size: 1.35rem; color: var(--uife-primary); margin-bottom: 0.2rem; }
.uife-step-body p { font-size: 1.3rem; color: var(--uife-text-muted); }

/* ---------- RTP table ---------- */
.uife-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.uife-rtp-table th, .uife-rtp-table td {
  border: 1px solid var(--uife-border); padding: 0.6rem 0.5rem; text-align: left;
}
.uife-rtp-table th { background: var(--uife-primary); color: #000080; }
.uife-rtp-table td.uife-rtp-high { color: var(--uife-success); font-weight: 700; }

/* ---------- Footer ---------- */
.uife-footer {
  background: var(--uife-bg-2);
  border-top: 2px solid var(--uife-primary);
  padding: 2rem 1.2rem calc(var(--uife-bottomnav-h) + 1.5rem);
  margin-top: 2rem;
}
.uife-footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1rem; }
.uife-footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.uife-footer-brand strong { color: var(--uife-primary); font-size: 1.5rem; }
.uife-footer p { color: var(--uife-text-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.uife-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0; }
.uife-footer-links a {
  color: var(--uife-text); font-size: 1.2rem; padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255,225,53,0.18);
}
.uife-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.uife-footer-promos button {
  flex: 1 1 45%;
  background: var(--uife-yellow-gradient); color: #000080;
  border: none; border-radius: 20px; padding: 0.7rem 0.6rem;
  font-size: 1.2rem; font-weight: 800; cursor: pointer;
}
.uife-footer-copy { font-size: 1.1rem; color: var(--uife-text-muted); text-align: center; border-top: 1px solid var(--uife-border); padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.uife-bottomnav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--uife-bottomnav-h);
  background: rgba(0,0,40,0.98);
  border-top: 2px solid var(--uife-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  padding: 0.3rem 0.2rem;
}
.uife-bottomnav-btn {
  flex: 1;
  background: transparent; border: none;
  color: var(--uife-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1rem; gap: 0.2rem;
  padding: 0.3rem; min-width: 60px; min-height: 56px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}
.uife-bottomnav-btn i,
.uife-bottomnav-btn span.material-symbols-outlined {
  font-size: 2.2rem;
}
.uife-bottomnav-btn:active { transform: scale(0.9); }
.uife-bottomnav-btn.uife-active { color: var(--uife-primary); }
.uife-bottomnav-btn.uife-promo { color: var(--uife-primary); }
.uife-bottomnav-btn.uife-promo i { text-shadow: 0 0 8px rgba(255,225,53,0.5); }
.uife-bottomnav-btn .uife-badge {
  position: absolute; top: 4px; transform: translateX(14px);
  background: var(--uife-danger); color: #fff;
  font-size: 0.9rem; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.uife-bottomnav-btn { position: relative; }

/* ---------- Utilities ---------- */
.uife-hide-desktop { display: block; }
.uife-text-center { text-align: center; }
.uife-mt-1 { margin-top: 0.5rem; }
.uife-mt-2 { margin-top: 1rem; }
.uife-highlight { color: var(--uife-primary); font-weight: 700; }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .uife-bottomnav { display: none; }
  .uife-menu-toggle { display: none; }
  body { max-width: 430px; }
  .uife-footer { padding-bottom: 2rem; }
}

/* small screen tweaks */
@media (max-width: 360px) {
  .uife-grid { grid-template-columns: repeat(2, 1fr); }
  .uife-footer-links { grid-template-columns: 1fr; }
}
