/* ===========================================================
   1xbet-ph.click basefiles stylesheet
   All custom classes use the "uifa-" dynamic prefix.
   Mobile-first design with desktop progressive enhancement.
   =========================================================== */

:root {
  --uifa-bg: #0a1228;
  --uifa-bg-2: #0f1a3a;
  --uifa-surface: #152251;
  --uifa-surface-2: #1c2d63;
  --uifa-primary: #00d1ff;
  --uifa-secondary: #ffb800;
  --uifa-accent: #ff3b6b;
  --uifa-text: #eaf0ff;
  --uifa-muted: #94a3c4;
  --uifa-border: rgba(0, 209, 255, 0.18);
  --uifa-gold: #ffd96b;
  --uifa-radius: 14px;
  --uifa-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--uifa-bg);
  color: var(--uifa-text);
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--uifa-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.uifa-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ---------- Header ---------- */
.uifa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #08102a 0%, #142257 100%);
  border-bottom: 1px solid var(--uifa-border);
  box-shadow: var(--uifa-shadow);
}

.uifa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  max-width: 430px;
  margin: 0 auto;
}

.uifa-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--uifa-text);
  letter-spacing: 0.5px;
}

.uifa-logo i { color: var(--uifa-primary); font-size: 24px; }
.uifa-logo .uifa-logo-tag {
  font-size: 11px;
  color: var(--uifa-gold);
  font-weight: 600;
}

.uifa-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uifa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.uifa-btn:active { transform: scale(0.96); }

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

.uifa-btn-register {
  background: linear-gradient(135deg, var(--uifa-accent), #ff7b3d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 59, 107, 0.35);
}

.uifa-menu-trigger {
  background: var(--uifa-surface);
  color: var(--uifa-text);
  border: 1px solid var(--uifa-border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
#uifa-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(160deg, #0a1430, #142257);
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--uifa-border);
}

#uifa-mobile-menu.uifa-menu-open { right: 0; }

#uifa-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

#uifa-menu-backdrop.uifa-backdrop-show {
  opacity: 1;
  visibility: visible;
}

.uifa-no-scroll { overflow: hidden; }

.uifa-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--uifa-surface);
  color: var(--uifa-text);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}

.uifa-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  color: var(--uifa-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 15px;
}

.uifa-menu-link i { color: var(--uifa-primary); font-size: 18px; }

/* ---------- Hero / Carousel ---------- */
.uifa-hero {
  position: relative;
  margin: 14px 0 18px;
  border-radius: var(--uifa-radius);
  overflow: hidden;
  box-shadow: var(--uifa-shadow);
}

.uifa-hero-slide {
  display: none;
  position: relative;
}

.uifa-hero-slide.uifa-hero-active { display: block; }

.uifa-hero-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.uifa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 42, 0.25) 0%, rgba(8, 16, 42, 0.85) 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.uifa-hero-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}

.uifa-hero-text {
  margin: 0 0 12px;
  color: #d6e2ff;
  font-size: 13px;
}

.uifa-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.uifa-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

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

/* ---------- Section title ---------- */
.uifa-section {
  margin: 22px 0 8px;
}

.uifa-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--uifa-text);
}

.uifa-section-title i { color: var(--uifa-gold); }
.uifa-section-title .uifa-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--uifa-primary);
  font-weight: 600;
}

/* ---------- Filter tabs ---------- */
.uifa-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.uifa-filter-tab {
  flex: 0 0 auto;
  background: var(--uifa-surface);
  color: var(--uifa-muted);
  border: 1px solid var(--uifa-border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.uifa-filter-tab.uifa-tab-active {
  background: linear-gradient(135deg, var(--uifa-primary), #0a8fd1);
  color: #06122b;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.uifa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.uifa-card {
  position: relative;
  background: var(--uifa-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--uifa-border);
  transition: transform 0.15s ease;
}

.uifa-card:active { transform: scale(0.97); }

.uifa-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.uifa-card-name {
  padding: 6px 8px 8px;
  font-size: 11px;
  text-align: center;
  color: var(--uifa-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uifa-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 59, 107, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Featured ---------- */
.uifa-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.uifa-featured-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--uifa-border);
  background: var(--uifa-surface);
}

.uifa-featured-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.uifa-featured-body {
  padding: 12px;
}

.uifa-featured-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.uifa-featured-desc {
  font-size: 12px;
  color: var(--uifa-muted);
  margin: 0 0 10px;
}

.uifa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--uifa-accent), #ff7b3d);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* ---------- Promo strip ---------- */
.uifa-promo {
  background: linear-gradient(135deg, #1a2c66, #2a1d5a);
  border: 1px solid var(--uifa-border);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  text-align: center;
}

.uifa-promo h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--uifa-gold);
}

.uifa-promo p {
  margin: 0 0 12px;
  color: var(--uifa-text);
  font-size: 13px;
}

/* ---------- SEO content ---------- */
.uifa-content {
  background: var(--uifa-surface);
  border: 1px solid var(--uifa-border);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}

.uifa-content h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--uifa-gold);
}

.uifa-content h3 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: var(--uifa-primary);
}

.uifa-content p {
  font-size: 13px;
  color: var(--uifa-text);
  margin: 0 0 10px;
}

.uifa-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.uifa-content li {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--uifa-text);
}

/* ---------- FAQ ---------- */
.uifa-faq-item {
  background: var(--uifa-surface);
  border: 1px solid var(--uifa-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.uifa-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--uifa-text);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.uifa-faq-q i { color: var(--uifa-primary); transition: transform 0.2s; }

.uifa-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: max-height 0.25s ease, padding 0.25s ease;
  font-size: 13px;
  color: var(--uifa-muted);
}

.uifa-faq-item.uifa-faq-open .uifa-faq-a {
  max-height: 360px;
  padding: 0 14px 14px;
}

.uifa-faq-item.uifa-faq-open .uifa-faq-q i { transform: rotate(180deg); }

/* ---------- Footer ---------- */
.uifa-footer {
  background: linear-gradient(180deg, #0a1430, #050a1c);
  border-top: 1px solid var(--uifa-border);
  padding: 22px 0 90px;
  margin-top: 24px;
}

.uifa-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.uifa-footer h4 {
  font-size: 14px;
  color: var(--uifa-gold);
  margin: 0 0 8px;
}

.uifa-footer a {
  display: block;
  font-size: 12px;
  color: var(--uifa-muted);
  padding: 3px 0;
}

.uifa-footer-bottom {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--uifa-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.uifa-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

.uifa-partners span {
  background: var(--uifa-surface);
  border: 1px solid var(--uifa-border);
  color: var(--uifa-muted);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ---------- Mobile bottom nav ---------- */
.uifa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #0a1430, #050a1c);
  border-top: 1px solid var(--uifa-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 0 6px;
}

.uifa-bottom-nav button,
.uifa-bottom-nav a {
  flex: 1;
  background: none;
  border: none;
  color: var(--uifa-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 54px;
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
}

.uifa-bottom-nav button i,
.uifa-bottom-nav a i { font-size: 22px; }

.uifa-bottom-nav .uifa-nav-current { color: var(--uifa-primary); }

.uifa-bottom-nav .uifa-nav-cta {
  background: linear-gradient(135deg, var(--uifa-accent), #ff7b3d);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -22px;
  box-shadow: 0 6px 16px rgba(255, 59, 107, 0.45);
}

.uifa-bottom-nav .uifa-nav-cta i { font-size: 24px; }

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: #06102a; }
  .uifa-container, .uifa-header-inner { max-width: 1100px; }
  .uifa-bottom-nav { display: none; }
  .uifa-grid { grid-template-columns: repeat(6, 1fr); }
  .uifa-featured { grid-template-columns: repeat(3, 1fr); }
  .uifa-hero-slide img { height: 320px; }
  .uifa-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .uifa-footer { padding-bottom: 30px; }
}
