/**
 * bd777 Core Stylesheet
 * Website: bd777.cfd
 * Language: bn-BD
 * Prefix: pga9-
 * Colors: #4169E1 | #1B263B | #FFB347 | #E91E63 | #FA8072
 */

/* ========== CSS Variables ========== */
:root {
  --pga9-primary: #4169E1;
  --pga9-dark: #1B263B;
  --pga9-accent: #FFB347;
  --pga9-pink: #E91E63;
  --pga9-coral: #FA8072;
  --pga9-bg: #0f1629;
  --pga9-card: #1a2340;
  --pga9-card-hover: #222d50;
  --pga9-text: #f0f0f0;
  --pga9-text-muted: #a0aec0;
  --pga9-border: #2a3a5c;
  --pga9-radius: 10px;
  --pga9-radius-lg: 16px;
  --pga9-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --pga9-shadow-hover: 0 8px 30px rgba(65, 105, 225, 0.25);
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background-color: var(--pga9-bg);
  color: var(--pga9-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pga9-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--pga9-coral);
}

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

/* ========== Header ========== */
.pga9-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pga9-dark) 0%, #0d1525 100%);
  border-bottom: 2px solid var(--pga9-primary);
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.pga9-header-scrolled {
  height: 50px;
  box-shadow: 0 2px 15px rgba(65, 105, 225, 0.3);
}

.pga9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pga9-accent);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pga9-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.pga9-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pga9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--pga9-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pga9-btn-register {
  background: linear-gradient(135deg, var(--pga9-pink), var(--pga9-coral));
  color: #fff;
  box-shadow: 0 3px 12px rgba(233, 30, 99, 0.3);
}

.pga9-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 30, 99, 0.5);
}

.pga9-btn-login {
  background: transparent;
  color: var(--pga9-accent);
  border: 2px solid var(--pga9-accent);
}

.pga9-btn-login:hover {
  background: var(--pga9-accent);
  color: var(--pga9-dark);
}

.pga9-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pga9-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ========== Desktop Navigation ========== */
.pga9-desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pga9-desktop-nav a {
  color: var(--pga9-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.pga9-desktop-nav a:hover {
  color: var(--pga9-accent);
}

/* ========== Mobile Menu ========== */
.pga9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pga9-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pga9-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pga9-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 20px;
  overflow-y: auto;
}

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

.pga9-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pga9-border);
}

.pga9-mobile-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pga9-accent);
}

.pga9-menu-close {
  background: none;
  border: none;
  color: var(--pga9-text);
  font-size: 24px;
  cursor: pointer;
}

.pga9-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pga9-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--pga9-text);
  font-size: 15px;
  border-radius: var(--pga9-radius);
  transition: all 0.2s ease;
}

.pga9-mobile-menu nav a:hover {
  background: var(--pga9-card);
  color: var(--pga9-accent);
}

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

/* ========== Main Content ========== */
.pga9-main {
  padding-top: 70px;
  min-height: 100vh;
}

/* ========== Hero Banner ========== */
.pga9-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pga9-radius-lg) var(--pga9-radius-lg);
}

.pga9-hero-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.pga9-hero-slide {
  min-width: 100%;
  position: relative;
}

.pga9-hero-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.pga9-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(15, 22, 41, 0.95));
}

.pga9-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--pga9-accent);
  margin-bottom: 6px;
}

.pga9-hero-subtitle {
  font-size: 14px;
  color: var(--pga9-text-muted);
  margin-bottom: 12px;
}

.pga9-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.pga9-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pga9-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pga9-hero-dot.pga9-dot-active {
  background: var(--pga9-accent);
  width: 24px;
  border-radius: 4px;
}

/* ========== Section Titles ========== */
.pga9-section {
  padding: 20px 16px;
}

.pga9-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--pga9-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pga9-primary);
}

.pga9-section-title i {
  font-size: 24px;
}

/* ========== Category Tabs ========== */
.pga9-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pga9-tabs::-webkit-scrollbar {
  display: none;
}

.pga9-tab-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: 2px solid var(--pga9-border);
  border-radius: 25px;
  background: var(--pga9-card);
  color: var(--pga9-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pga9-tab-btn.pga9-tab-active {
  background: var(--pga9-primary);
  border-color: var(--pga9-primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(65, 105, 225, 0.3);
}

/* ========== Game Grid ========== */
.pga9-game-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 20px;
}

.pga9-game-card {
  background: var(--pga9-card);
  border-radius: var(--pga9-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--pga9-border);
}

.pga9-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pga9-shadow-hover);
  border-color: var(--pga9-primary);
}

.pga9-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pga9-game-name {
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pga9-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Promo Banner ========== */
.pga9-promo-banner {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--pga9-primary), var(--pga9-pink));
  border-radius: var(--pga9-radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pga9-promo-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(65, 105, 225, 0.4);
}

.pga9-promo-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.pga9-promo-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

/* ========== Features Section ========== */
.pga9-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 20px;
}

.pga9-feature-card {
  background: var(--pga9-card);
  border-radius: var(--pga9-radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--pga9-border);
  transition: all 0.3s ease;
}

.pga9-feature-card:hover {
  border-color: var(--pga9-accent);
}

.pga9-feature-icon {
  font-size: 32px;
  color: var(--pga9-accent);
  margin-bottom: 8px;
}

.pga9-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pga9-text);
  margin-bottom: 4px;
}

.pga9-feature-desc {
  font-size: 12px;
  color: var(--pga9-text-muted);
  line-height: 1.5;
}

/* ========== Content Sections ========== */
.pga9-content-section {
  padding: 20px 16px;
  line-height: 1.8;
}

.pga9-content-section h2 {
  font-size: 20px;
  color: var(--pga9-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pga9-primary);
}

.pga9-content-section h3 {
  font-size: 17px;
  color: var(--pga9-accent);
  margin: 16px 0 8px;
}

.pga9-content-section p {
  font-size: 14px;
  color: var(--pga9-text-muted);
  margin-bottom: 12px;
}

.pga9-content-section ul,
.pga9-content-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.pga9-content-section li {
  font-size: 14px;
  color: var(--pga9-text-muted);
  margin-bottom: 6px;
}

/* ========== Footer ========== */
.pga9-footer {
  background: var(--pga9-dark);
  border-top: 2px solid var(--pga9-primary);
  padding: 30px 16px 20px;
  margin-top: 20px;
}

.pga9-footer-brand {
  text-align: center;
  margin-bottom: 20px;
}

.pga9-footer-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--pga9-accent);
  margin-bottom: 8px;
}

.pga9-footer-desc {
  font-size: 13px;
  color: var(--pga9-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.pga9-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.pga9-footer-links a {
  color: var(--pga9-text-muted);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--pga9-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.pga9-footer-links a:hover {
  color: var(--pga9-accent);
  border-color: var(--pga9-accent);
}

.pga9-footer-promo {
  text-align: center;
  margin: 20px 0;
}

.pga9-footer-promo .pga9-btn {
  padding: 12px 32px;
  font-size: 16px;
}

.pga9-footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--pga9-text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--pga9-border);
}

/* ========== Bottom Navigation ========== */
.pga9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pga9-dark) 0%, #0a0f1e 100%);
  border-top: 2px solid var(--pga9-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 4px;
}

.pga9-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--pga9-text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 2px;
  border-radius: 8px;
  padding: 4px;
}

.pga9-bottom-nav-btn i,
.pga9-bottom-nav-btn .material-icons,
.pga9-bottom-nav-btn ion-icon {
  font-size: 22px;
  transition: all 0.25s ease;
}

.pga9-bottom-nav-btn:hover,
.pga9-bottom-nav-btn.pga9-nav-active {
  color: var(--pga9-accent);
  background: rgba(255, 179, 71, 0.1);
}

.pga9-bottom-nav-btn:hover i,
.pga9-bottom-nav-btn.pga9-nav-active i,
.pga9-bottom-nav-btn:hover .material-icons,
.pga9-bottom-nav-btn.pga9-nav-active .material-icons,
.pga9-bottom-nav-btn:hover ion-icon,
.pga9-bottom-nav-btn.pga9-nav-active ion-icon {
  transform: scale(1.15);
  color: var(--pga9-accent);
}

/* ========== Animate In ========== */
.pga9-animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.pga9-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Help Page Styles ========== */
.pga9-help-hero {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.pga9-help-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pga9-help-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 30%, rgba(15, 22, 41, 0.95));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.pga9-help-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--pga9-accent);
}

.pga9-breadcrumb {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--pga9-text-muted);
}

.pga9-breadcrumb a {
  color: var(--pga9-accent);
}

.pga9-help-content {
  padding: 16px;
}

.pga9-help-content h2 {
  font-size: 19px;
  color: var(--pga9-accent);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pga9-primary);
}

.pga9-help-content h3 {
  font-size: 16px;
  color: var(--pga9-text);
  margin: 16px 0 8px;
}

.pga9-help-content p {
  font-size: 14px;
  color: var(--pga9-text-muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.pga9-help-content ul,
.pga9-help-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.pga9-help-content li {
  font-size: 14px;
  color: var(--pga9-text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.pga9-cta-box {
  background: linear-gradient(135deg, var(--pga9-primary), var(--pga9-pink));
  border-radius: var(--pga9-radius-lg);
  padding: 20px;
  text-align: center;
  margin: 20px 16px;
}

.pga9-cta-box h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.pga9-cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ========== Responsive ========== */
@media (min-width: 769px) {
  .pga9-bottom-nav {
    display: none;
  }

  .pga9-menu-toggle {
    display: none;
  }

  .pga9-main {
    max-width: 430px;
    margin: 0 auto;
    padding-top: 70px;
  }

  .pga9-header {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
}

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

  .pga9-desktop-nav {
    display: none;
  }

  .pga9-menu-toggle {
    display: block;
  }

  .pga9-game-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .pga9-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .pga9-hero-title {
    font-size: 18px;
  }
}
