/* 28bet login - theme.css
   All custom classes use prefix pg42- */

:root {
  --pg42-primary: #8B0000;
  --pg42-secondary: #FFDEAD;
  --pg42-coral: #F08080;
  --pg42-bg: #262626;
  --pg42-bg2: #1c1c1c;
  --pg42-aqua: #AFEEEE;
  --pg42-text: #FFDEAD;
  --pg42-text-soft: #F08080;
  --pg42-white: #ffffff;
  --pg42-muted: #cfc3b0;
  --pg42-radius: 12px;
  --pg42-shadow: 0 6px 20px rgba(0,0,0,0.35);
  --pg42-header-h: 56px;
  --pg42-nav-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", system-ui, sans-serif;
  background: var(--pg42-bg);
  color: var(--pg42-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--pg42-aqua); text-decoration: none; }

/* ============ HEADER ============ */
.pg42-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg42-primary), #5e0000);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 2px solid var(--pg42-secondary);
  min-height: var(--pg42-header-h);
}
.pg42-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg42-secondary);
  font-weight: 700;
  font-size: 1.6rem;
}
.pg42-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg42-header-actions { display: flex; align-items: center; gap: 8px; }
.pg42-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
  min-height: 36px;
}
.pg42-btn:active { transform: scale(0.96); }
.pg42-btn-login { background: var(--pg42-secondary); color: var(--pg42-primary); }
.pg42-btn-register { background: var(--pg42-aqua); color: #0b3b3b; }
.pg42-menu-btn {
  background: transparent;
  border: none;
  color: var(--pg42-secondary);
  font-size: 2rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}

/* ============ MOBILE MENU ============ */
.pg42-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--pg42-bg2);
  padding: 16px;
  z-index: 9999;
  transition: right .25s ease;
  overflow-y: auto;
  border-left: 3px solid var(--pg42-primary);
}
.pg42-mobile-menu.pg42-open { right: 0; }
.pg42-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; color: var(--pg42-secondary);
}
.pg42-menu-head h3 { margin: 0; font-size: 1.6rem; }
.pg42-menu-close {
  background: transparent; border: none; color: var(--pg42-coral);
  font-size: 2.2rem; cursor: pointer;
}
.pg42-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid #3a3a3a;
  color: var(--pg42-text);
  font-size: 1.4rem;
}
.pg42-mobile-menu a:hover { color: var(--pg42-aqua); }
.pg42-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; display: none;
}
.pg42-overlay.pg42-open { display: block; }

/* ============ HERO ============ */
.pg42-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--pg42-radius) var(--pg42-radius);
  margin-bottom: 12px;
}
.pg42-hero-slide {
  display: none;
  position: relative;
  background: linear-gradient(120deg, #3a0000, #1a1a1a);
  padding: 22px 16px;
  min-height: 180px;
}
.pg42-hero-slide.pg42-active { display: block; }
.pg42-hero-slide h2 {
  color: var(--pg42-secondary); margin: 0 0 8px; font-size: 2rem;
}
.pg42-hero-slide p { color: var(--pg42-white); margin: 0 0 12px; font-size: 1.35rem; }
.pg42-hero-cta { background: var(--pg42-aqua); color: #0b3b3b; }
.pg42-hero-dots {
  display: flex; gap: 6px; justify-content: center;
  padding: 6px 0 10px;
}
.pg42-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #555; cursor: pointer;
}
.pg42-hero-dot.pg42-active { background: var(--pg42-aqua); }

/* ============ LAYOUT ============ */
.pg42-container { padding: 0 12px; }
.pg42-section { margin: 18px 0; }
.pg42-section-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--pg42-secondary);
  font-size: 1.7rem;
  border-left: 4px solid var(--pg42-coral);
  padding-left: 10px;
  margin-bottom: 12px;
}
.pg42-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 360px) { .pg42-grid { grid-template-columns: repeat(2, 1fr); } }

.pg42-card {
  background: var(--pg42-bg2);
  border-radius: var(--pg42-radius);
  overflow: hidden;
  box-shadow: var(--pg42-shadow);
  position: relative;
  cursor: pointer;
  border: 1px solid #3a3a3a;
  transition: transform .15s ease;
}
.pg42-card:active { transform: scale(0.97); }
.pg42-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg42-card-name {
  padding: 6px 4px;
  font-size: 1.15rem;
  color: var(--pg42-text);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg42-card-tag {
  position: absolute; top: 4px; left: 4px;
  background: var(--pg42-primary);
  color: var(--pg42-secondary);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============ FILTER TABS ============ */
.pg42-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.pg42-filter-tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #3a3a3a;
  color: var(--pg42-text);
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid #4a4a4a;
  white-space: nowrap;
}
.pg42-filter-tab.pg42-active {
  background: var(--pg42-primary);
  color: var(--pg42-secondary);
  border-color: var(--pg42-secondary);
}

/* ============ CONTENT / SEO TEXT ============ */
.pg42-content p { color: var(--pg42-muted); font-size: 1.35rem; margin: 0 0 10px; }
.pg42-content h3 { color: var(--pg42-coral); font-size: 1.6rem; margin: 14px 0 8px; }
.pg42-content a { color: var(--pg42-aqua); }
.pg42-promo-text {
  color: var(--pg42-coral); font-weight: 700;
}
.pg42-cta-banner {
  background: linear-gradient(90deg, var(--pg42-primary), #6a0000);
  border-radius: var(--pg42-radius);
  padding: 14px;
  text-align: center;
  margin: 18px 0;
}
.pg42-cta-banner h3 { color: var(--pg42-secondary); margin: 0 0 8px; }
.pg42-cta-banner p { color: var(--pg42-white); margin: 0 0 10px; }

/* ============ FOOTER ============ */
.pg42-footer {
  background: var(--pg42-bg2);
  padding: 18px 12px 20px;
  border-top: 2px solid var(--pg42-primary);
  margin-top: 18px;
}
.pg42-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pg42-footer h4 { color: var(--pg42-coral); margin: 0 0 8px; font-size: 1.3rem; }
.pg42-footer a { display: block; color: var(--pg42-muted); font-size: 1.2rem; padding: 3px 0; }
.pg42-footer a:hover { color: var(--pg42-aqua); }
.pg42-footer-bottom {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #3a3a3a;
  text-align: center;
  color: var(--pg42-muted);
  font-size: 1.15rem;
}

/* ============ MOBILE BOTTOM NAV ============ */
.pg42-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c1c1c, #000);
  border-top: 2px solid var(--pg42-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--pg42-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg42-bottom-nav button,
.pg42-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: var(--pg42-nav-h);
  background: transparent;
  border: none;
  color: var(--pg42-text-soft);
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.pg42-bottom-nav button:active,
.pg42-bottom-nav a:active { transform: scale(0.92); }
.pg42-bottom-nav .pg42-bn-icon {
  font-size: 22px;
  line-height: 1;
}
.pg42-bottom-nav .pg42-bn-label { font-size: 1.05rem; }
.pg42-bottom-nav .pg42-bn-active { color: var(--pg42-aqua); }

/* Desktop hide bottom nav */
@media (min-width: 769px) {
  .pg42-bottom-nav { display: none; }
}

/* Main content bottom padding for mobile nav clearance */
@media (max-width: 768px) {
  main, .pg42-main { padding-bottom: calc(var(--pg42-nav-h) + 16px); }
}

/* Desktop full width */
@media (min-width: 431px) {
  body {
    max-width: 430px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    min-height: 100vh;
  }
}
