/**
 * 1111bet login - Main Stylesheet
 * Class prefix: pg28-
 * Color palette: #0F0F23 (deep dark blue) | #00FF7F (spring green)
 */

:root {
  --pg28-primary: #00FF7F;
  --pg28-bg: #0F0F23;
  --pg28-bg-alt: #141432;
  --pg28-bg-card: #1a1a3e;
  --pg28-text: #e0e0e0;
  --pg28-text-light: #ffffff;
  --pg28-accent: #00FF7F;
  --pg28-accent2: #00cc66;
  --pg28-border: #2a2a5a;
  --pg28-gold: #FFD700;
  --pg28-red: #ff4757;
  --pg28-radius: 8px;
  --pg28-shadow: 0 2px 12px rgba(0,255,127,0.15);
  --pg28-header-h: 56px;
  --pg28-bottom-h: 60px;
  font-size: 62.5%;
}

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--pg28-bg);
  color: var(--pg28-text);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--pg28-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.pg28-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg28-header-h);
  background: linear-gradient(135deg, #0F0F23 0%, #141432 100%);
  border-bottom: 1px solid var(--pg28-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.pg28-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.pg28-header-logo img {
  width: 32px; height: 32px;
  border-radius: 6px;
}

.pg28-header-logo span {
  color: var(--pg28-primary);
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.pg28-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg28-btn-register, .pg28-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}

.pg28-btn-register {
  background: var(--pg28-primary);
  color: var(--pg28-bg);
}

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

.pg28-btn-register:hover, .pg28-btn-login:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.pg28-menu-toggle {
  background: none;
  border: none;
  color: var(--pg28-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ========== MOBILE MENU ========== */
.pg28-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.pg28-overlay-active { display: block; }

.pg28-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: var(--pg28-bg-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg28-menu-active { right: 0; }

.pg28-mobile-menu-close {
  background: none;
  border: none;
  color: var(--pg28-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}

.pg28-mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pg28-border);
  color: var(--pg28-text-light);
  font-size: 1.5rem;
}

.pg28-mobile-menu a:hover {
  color: var(--pg28-accent);
  text-decoration: none;
}

/* ========== CAROUSEL ========== */
.pg28-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--pg28-header-h);
  overflow: hidden;
}

.pg28-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.pg28-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg28-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.pg28-slide-active { opacity: 1; }

.pg28-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pg28-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.pg28-dot-active { background: var(--pg28-primary); }

/* ========== MAIN CONTENT ========== */
.pg28-main {
  padding: 1.5rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg28-section {
  margin-bottom: 2rem;
}

.pg28-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg28-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg28-accent2);
}

.pg28-section-title i {
  margin-right: 0.5rem;
}

/* ========== GAME GRID ========== */
.pg28-game-cat-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg28-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg28-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.pg28-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  text-align: center;
}

.pg28-game-item:hover { transform: scale(1.05); }

.pg28-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg28-radius);
  border: 1px solid var(--pg28-border);
  margin-bottom: 0.3rem;
}

.pg28-game-item span {
  font-size: 1.1rem;
  color: var(--pg28-text-light);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== CARDS ========== */
.pg28-card {
  background: var(--pg28-bg-card);
  border-radius: var(--pg28-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg28-border);
}

.pg28-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg28-primary);
  margin-bottom: 0.8rem;
}

/* ========== PROMO BUTTONS ========== */
.pg28-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg28-primary), var(--pg28-accent2));
  color: var(--pg28-bg);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.pg28-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,255,127,0.4);
  text-decoration: none;
}

.pg28-promo-text {
  color: var(--pg28-primary);
  font-weight: 700;
  cursor: pointer;
}

.pg28-promo-text:hover {
  text-decoration: underline;
}

/* ========== FAQ ========== */
.pg28-faq-item {
  background: var(--pg28-bg-card);
  border-radius: var(--pg28-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--pg28-border);
}

.pg28-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--pg28-primary);
  font-size: 1.4rem;
}

.pg28-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--pg28-text);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ========== WINNER LIST ========== */
.pg28-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pg28-winner-name { color: var(--pg28-gold); font-weight: 600; }
.pg28-winner-amount { color: var(--pg28-primary); font-weight: 700; }

/* ========== FEATURES ========== */
.pg28-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg28-feature-card {
  background: var(--pg28-bg-card);
  border-radius: var(--pg28-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg28-border);
}

.pg28-feature-card i {
  font-size: 2.4rem;
  color: var(--pg28-primary);
  margin-bottom: 0.5rem;
}

.pg28-feature-card h3 {
  font-size: 1.3rem;
  color: var(--pg28-text-light);
  margin-bottom: 0.3rem;
}

.pg28-feature-card p {
  font-size: 1.1rem;
  color: var(--pg28-text);
}

/* ========== FOOTER ========== */
.pg28-footer {
  background: var(--pg28-bg-alt);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--pg28-border);
}

.pg28-footer-brand {
  color: var(--pg28-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.pg28-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.pg28-footer-links a {
  color: var(--pg28-accent);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0,255,127,0.08);
  border-radius: 4px;
}

.pg28-footer-links a:hover {
  background: rgba(0,255,127,0.18);
  text-decoration: none;
}

.pg28-footer-copy {
  color: #666;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
}

/* ========== BOTTOM NAV ========== */
.pg28-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg28-bottom-h);
  background: linear-gradient(180deg, #141432, #0F0F23);
  border-top: 1px solid var(--pg28-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.pg28-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--pg28-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.pg28-bottom-nav-btn i,
.pg28-bottom-nav-btn .material-icons,
.pg28-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg28-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}

.pg28-bottom-nav-btn:hover,
.pg28-bottom-nav-btn.pg28-nav-active {
  color: var(--pg28-primary);
}

.pg28-bottom-nav-btn:active {
  transform: scale(0.9);
}

/* ========== HELP PAGE ========== */
.pg28-help-content {
  line-height: 1.7;
}

.pg28-help-content h2 {
  color: var(--pg28-primary);
  font-size: 1.8rem;
  margin: 1.5rem 0 0.8rem;
}

.pg28-help-content p {
  margin-bottom: 0.8rem;
  color: var(--pg28-text);
}

.pg28-help-content ul, .pg28-help-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.pg28-help-content li {
  margin-bottom: 0.4rem;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
  .pg28-bottom-nav { display: none; }
  .pg28-main { max-width: 600px; }
}

@media (max-width: 768px) {
  .pg28-main { padding-bottom: 80px; }
  .pg28-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .pg28-game-grid { grid-template-columns: repeat(3, 1fr); }
}
