/* =========================================================
   Melbet Log In - theme.css
   Prefix: pgfc-
   Palette: #2C3E50 (dark slate) | #880E4F (magenta) |
            #FF91A4 (pink) | #00CED1 (turquoise) |
            #20B2AA (sea green) | #CCCCCC (light gray)
   ========================================================= */

:root {
  --pgfc-bg: #1c2733;
  --pgfc-bg-2: #2C3E50;
  --pgfc-bg-3: #243441;
  --pgfc-card: #2A3B4C;
  --pgfc-brand: #880E4F;
  --pgfc-brand-2: #B8145F;
  --pgfc-pink: #FF91A4;
  --pgfc-cyan: #00CED1;
  --pgfc-sea: #20B2AA;
  --pgfc-text: #FFFFFF;
  --pgfc-muted: #CCCCCC;
  --pgfc-line: rgba(204, 204, 204, 0.14);
  --pgfc-gold: #F2C14E;
  --pgfc-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pgfc-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 0%, #243441 0%, #1c2733 55%, #14202b 100%);
  color: var(--pgfc-text);
  line-height: 1.55;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--pgfc-pink); text-decoration: none; }
a:hover { color: var(--pgfc-cyan); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.pgfc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #14202b 0%, #2C3E50 60%, #880E4F 130%);
  border-bottom: 1px solid var(--pgfc-line);
  box-shadow: var(--pgfc-shadow);
}
.pgfc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
  color: #fff;
}
.pgfc-logo .pgfc-logo-badge {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pgfc-cyan), var(--pgfc-brand));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.5rem;
  box-shadow: 0 0 12px rgba(0, 206, 209, 0.5);
}
.pgfc-logo small { display:block; font-size: 1rem; font-weight: 500; color: var(--pgfc-muted); letter-spacing: 0.5px; }

.pgfc-head-actions { display: flex; align-items: center; gap: 8px; }
.pgfc-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.pgfc-btn:active { transform: scale(0.95); }
.pgfc-btn-login {
  background: transparent;
  color: var(--pgfc-cyan);
  border: 1px solid var(--pgfc-cyan);
}
.pgfc-btn-login:hover { background: rgba(0,206,209,0.12); }
.pgfc-btn-register {
  background: linear-gradient(135deg, var(--pgfc-brand) 0%, var(--pgfc-pink) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(136, 14, 79, 0.45);
}
.pgfc-btn-register:hover { box-shadow: 0 8px 20px rgba(255, 145, 164, 0.5); }

.pgfc-menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--pgfc-line);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---------- Mobile menu ---------- */
.pgfc-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 43, 0.97);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .28s ease;
  padding: 70px 20px 30px;
  overflow-y: auto;
}
.pgfc-mobile-menu.pgfc-open { transform: translateX(0); }
.pgfc-mobile-menu .pgfc-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pgfc-brand);
  color: #fff; border: none; cursor: pointer;
  font-size: 1.8rem;
}
.pgfc-mobile-menu nav { display: grid; gap: 8px; }
.pgfc-mobile-menu nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--pgfc-line);
  color: #fff; font-weight: 600;
}
.pgfc-mobile-menu nav a:hover { background: rgba(0,206,209,0.12); color: var(--pgfc-cyan); }
.pgfc-mobile-menu nav a i { color: var(--pgfc-pink); font-size: 1.8rem; width: 24px; text-align: center; }

/* ---------- Hero / Carousel ---------- */
.pgfc-hero {
  position: relative;
  margin: 14px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pgfc-shadow);
}
.pgfc-carousel { position: relative; }
.pgfc-slides { display: block; }
.pgfc-slide {
  position: relative;
  display: none;
}
.pgfc-slide.pgfc-active { display: block; animation: pgfc-fade .7s ease; }
@keyframes pgfc-fade { from { opacity: 0; } to { opacity: 1; } }
.pgfc-slide img { width: 100%; height: 200px; object-fit: cover; }
.pgfc-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,43,0.05) 0%, rgba(20,32,43,0.85) 100%);
  padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pgfc-slide-overlay h2 { font-size: 2.1rem; color: #fff; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.pgfc-slide-overlay p { color: var(--pgfc-muted); font-size: 1.25rem; margin-bottom: 10px; }
.pgfc-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pgfc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
}
.pgfc-dot.pgfc-active { background: var(--pgfc-cyan); width: 22px; border-radius: 4px; }

/* ---------- Section base ---------- */
.pgfc-section { padding: 14px; }
.pgfc-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pgfc-section-title {
  font-size: 1.85rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: #fff;
}
.pgfc-section-title i { color: var(--pgfc-gold); }
.pgfc-section-link { font-size: 1.2rem; color: var(--pgfc-cyan); font-weight: 600; }

/* ---------- Category chips ---------- */
.pgfc-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 14px 12px;
  scrollbar-width: none;
}
.pgfc-chips::-webkit-scrollbar { display: none; }
.pgfc-chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--pgfc-line);
  color: var(--pgfc-muted);
  font-size: 1.25rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.pgfc-chip.pgfc-active, .pgfc-chip:hover {
  background: linear-gradient(135deg, var(--pgfc-brand), var(--pgfc-pink));
  color: #fff; border-color: transparent;
}

/* ---------- Game grid ---------- */
.pgfc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pgfc-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pgfc-card);
  border: 1px solid var(--pgfc-line);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.pgfc-card:hover { transform: translateY(-3px); box-shadow: var(--pgfc-shadow); }
.pgfc-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #14202b;
}
.pgfc-card-body { padding: 6px 8px 8px; }
.pgfc-card-title {
  font-size: 1.1rem; font-weight: 600;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.pgfc-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(136, 14, 79, 0.9);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  padding: 2px 6px; border-radius: 6px;
}
.pgfc-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,32,43,0.6);
  color: #fff; font-size: 2.4rem;
  opacity: 0; transition: opacity .2s ease;
}
.pgfc-card:hover .pgfc-card-play { opacity: 1; }

/* ---------- Featured ---------- */
.pgfc-featured {
  background: linear-gradient(135deg, rgba(136,14,79,0.18), rgba(0,206,209,0.12));
  border: 1px solid var(--pgfc-line);
  border-radius: 16px;
  padding: 14px;
}
.pgfc-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.pgfc-featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pgfc-line);
  min-height: 110px;
}
.pgfc-featured-card img { width: 100%; height: 100%; object-fit: cover; }
.pgfc-featured-card .pgfc-feat-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,32,43,0.9));
  padding: 16px 10px 8px;
  font-size: 1.15rem; font-weight: 700; color: #fff;
}

/* ---------- Promo strip ---------- */
.pgfc-promo-strip {
  margin: 16px 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #880E4F, #FF91A4);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--pgfc-shadow);
}
.pgfc-promo-strip .pgfc-promo-icon {
  font-size: 2.8rem; color: var(--pgfc-gold);
}
.pgfc-promo-strip .pgfc-promo-text { flex: 1; }
.pgfc-promo-strip h3 { font-size: 1.5rem; color: #fff; }
.pgfc-promo-strip p { font-size: 1.15rem; color: rgba(255,255,255,0.85); }

/* ---------- Long-form SEO content ---------- */
.pgfc-article {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--pgfc-line);
  border-radius: 14px;
  padding: 16px;
  margin: 14px;
}
.pgfc-article h2 {
  font-size: 1.9rem; margin-bottom: 8px;
  color: var(--pgfc-cyan);
}
.pgfc-article h3 {
  font-size: 1.5rem; margin: 14px 0 6px;
  color: var(--pgfc-pink);
}
.pgfc-article p {
  font-size: 1.3rem; color: var(--pgfc-muted);
  margin-bottom: 10px; line-height: 1.65;
}
.pgfc-article ul { margin: 6px 0 12px 20px; }
.pgfc-article li { color: var(--pgfc-muted); font-size: 1.3rem; margin-bottom: 4px; }
.pgfc-article strong { color: #fff; }

/* ---------- FAQ ---------- */
.pgfc-faq { margin: 14px; }
.pgfc-faq-item {
  border: 1px solid var(--pgfc-line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.pgfc-faq-q {
  width: 100%;
  text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 14px;
  color: #fff; font-weight: 700; font-size: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: inherit;
}
.pgfc-faq-q i { color: var(--pgfc-cyan); transition: transform .2s ease; }
.pgfc-faq-item.pgfc-open .pgfc-faq-q i { transform: rotate(180deg); }
.pgfc-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--pgfc-muted); font-size: 1.25rem; line-height: 1.6;
}
.pgfc-faq-item.pgfc-open .pgfc-faq-a { max-height: 320px; padding: 0 14px 14px; }

/* ---------- CTA banner ---------- */
.pgfc-cta {
  margin: 16px 14px;
  padding: 22px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, #00CED1, #20B2AA 50%, #2C3E50);
  box-shadow: var(--pgfc-shadow);
}
.pgfc-cta h3 { font-size: 1.9rem; color: #fff; margin-bottom: 6px; }
.pgfc-cta p { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 14px; }
.pgfc-cta .pgfc-btn-register { font-size: 1.4rem; padding: 10px 26px; }

/* ---------- Footer ---------- */
.pgfc-footer {
  background: #14202b;
  border-top: 1px solid var(--pgfc-line);
  padding: 22px 14px 110px;
  margin-top: 16px;
}
.pgfc-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 18px;
}
.pgfc-footer-col h4 {
  font-size: 1.35rem; color: var(--pgfc-cyan); margin-bottom: 8px; font-weight: 700;
}
.pgfc-footer-col a {
  display: block;
  color: var(--pgfc-muted); font-size: 1.2rem;
  padding: 4px 0;
}
.pgfc-footer-bottom {
  text-align: center;
  color: var(--pgfc-muted); font-size: 1.15rem;
  padding-top: 14px; border-top: 1px solid var(--pgfc-line);
}
.pgfc-footer-bottom p { margin-bottom: 4px; }
.pgfc-footer-warning {
  background: rgba(136,14,79,0.15);
  border-left: 3px solid var(--pgfc-brand);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--pgfc-muted);
  margin-top: 14px;
}

/* ---------- Mobile bottom nav ---------- */
.pgfc-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 64px;
  background: linear-gradient(180deg, #243441, #14202b);
  border-top: 1px solid var(--pgfc-line);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.pgfc-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-width: 60px; min-height: 60px;
  color: var(--pgfc-muted);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  background: none; border: none;
  font-family: inherit;
  position: relative;
  text-decoration: none;
  transition: color .2s ease;
}
.pgfc-nav-item i { font-size: 2.2rem; }
.pgfc-nav-item .material-icons-outlined,
.pgfc-nav-item .material-icons { font-size: 2.4rem; }
.pgfc-nav-item:hover { color: var(--pgfc-cyan); }
.pgfc-nav-item.pgfc-active { color: var(--pgfc-pink); }
.pgfc-nav-item.pgfc-active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--pgfc-pink);
}
.pgfc-nav-promo {
  background: linear-gradient(135deg, var(--pgfc-brand), var(--pgfc-pink));
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(136,14,79,0.5);
}
.pgfc-nav-promo i { font-size: 2rem; }

/* ---------- Utility ---------- */
.pgfc-container { padding: 0 14px; }
.pgfc-text-pink { color: var(--pgfc-pink); }
.pgfc-text-cyan { color: var(--pgfc-cyan); }
.pgfc-hide { display: none !important; }

/* ---------- Mobile bottom padding for nav clearance ---------- */
main { padding-bottom: 80px; }
@media (max-width: 768px) {
  main { padding-bottom: 90px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .pgfc-bottom-nav { display: none; }
  .pgfc-grid { grid-template-columns: repeat(6, 1fr); }
  .pgfc-featured-grid { grid-template-columns: 2fr 1fr 1fr; }
  .pgfc-footer { padding-bottom: 30px; }
  main { padding-bottom: 30px; }
}
