/**
 * 4999 bdt - Main Stylesheet
 * File: css/style-83f4.css
 * All classes use pg83- prefix for namespace isolation
 * Color palette: #FF6347 | #CD5C5C | #0C0C0C | #FA8072
 */

/* ===== CSS Variables ===== */
:root {
  --pg83-primary: #FF6347;
  --pg83-secondary: #CD5C5C;
  --pg83-bg: #0C0C0C;
  --pg83-accent: #FA8072;
  --pg83-text: #FFFFFF;
  --pg83-text-muted: #B0A8A8;
  --pg83-card-bg: #1A1A1A;
  --pg83-card-border: #2A2A2A;
  --pg83-dark: #111111;
  --pg83-darker: #080808;
  --pg83-success: #4CAF50;
  --pg83-warning: #FFC107;
  --pg83-radius: 8px;
  --pg83-radius-lg: 12px;
  --pg83-shadow: 0 2px 12px rgba(255,99,71,0.15);
  --pg83-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--pg83-bg);
  color: var(--pg83-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  max-width: 430px;
  margin: 0 auto;
}

a { color: var(--pg83-accent); text-decoration: none; transition: var(--pg83-transition); }
a:hover { color: var(--pg83-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.pg83-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg83-dark) 0%, var(--pg83-bg) 100%);
  border-bottom: 1px solid var(--pg83-card-border);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg83-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.pg83-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg83-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg83-primary);
  letter-spacing: 0.5px;
}

.pg83-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg83-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--pg83-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg83-transition);
  min-height: 34px;
  min-width: 44px;
  text-decoration: none;
}

.pg83-btn-register {
  background: var(--pg83-primary);
  color: #fff;
  border-radius: 20px;
}

.pg83-btn-register:hover {
  background: var(--pg83-secondary);
  transform: scale(1.05);
}

.pg83-btn-login {
  background: transparent;
  color: var(--pg83-accent);
  border: 1px solid var(--pg83-accent);
  border-radius: 20px;
}

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

.pg83-menu-toggle {
  background: none;
  border: none;
  color: var(--pg83-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.pg83-mobile-menu {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--pg83-darker);
  border-bottom: 2px solid var(--pg83-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pg83-mobile-menu.pg83-menu-active {
  max-height: 500px;
}

.pg83-menu-list {
  padding: 0.5rem 0;
}

.pg83-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--pg83-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg83-card-border);
  transition: var(--pg83-transition);
}

.pg83-menu-list a:hover {
  background: rgba(255,99,71,0.1);
  color: var(--pg83-primary);
}

.pg83-menu-list a span.pg83-menu-icon {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* ===== Main Content ===== */
main {
  padding-top: 52px;
  padding-bottom: 1rem;
}

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

.pg83-slides-wrapper {
  position: relative;
  height: 180px;
}

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

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

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

.pg83-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(12,12,12,0.9));
}

.pg83-slide-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg83-primary);
  margin-bottom: 0.3rem;
}

.pg83-slide-desc {
  font-size: 1.2rem;
  color: var(--pg83-text-muted);
}

.pg83-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

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

.pg83-dot.pg83-dot-active {
  background: var(--pg83-primary);
  transform: scale(1.3);
}

/* ===== Section Styling ===== */
.pg83-section {
  padding: 1.5rem 1rem;
}

.pg83-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg83-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg83-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg83-section-title i,
.pg83-section-title .material-icons {
  color: var(--pg83-primary);
  font-size: 2rem;
}

/* ===== Game Grid ===== */
.pg83-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg83-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg83-primary);
}

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

.pg83-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--pg83-transition);
  text-decoration: none;
  padding: 0.4rem;
  border-radius: var(--pg83-radius);
}

.pg83-game-card:hover {
  background: rgba(255,99,71,0.1);
  transform: translateY(-2px);
}

.pg83-game-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--pg83-radius);
  border: 1px solid var(--pg83-card-border);
  margin-bottom: 0.3rem;
}

.pg83-game-name {
  font-size: 1rem;
  color: var(--pg83-text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Cards ===== */
.pg83-card {
  background: var(--pg83-card-bg);
  border: 1px solid var(--pg83-card-border);
  border-radius: var(--pg83-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

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

.pg83-card p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--pg83-text-muted);
  margin-bottom: 0.6rem;
}

.pg83-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.pg83-card li {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--pg83-text-muted);
  margin-bottom: 0.3rem;
  list-style: disc;
}

/* ===== Promo Button ===== */
.pg83-promo-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--pg83-primary), var(--pg83-secondary));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--pg83-transition);
  margin: 1rem 0;
  text-decoration: none;
}

.pg83-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255,99,71,0.4);
}

/* ===== Promo Text Link ===== */
.pg83-promo-link {
  color: var(--pg83-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--pg83-transition);
}

.pg83-promo-link:hover {
  color: var(--pg83-accent);
}

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

.pg83-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg83-primary);
  margin-bottom: 0.5rem;
}

.pg83-faq-a {
  font-size: 1.3rem;
  color: var(--pg83-text-muted);
  line-height: 1.6;
}

/* ===== Winners Showcase ===== */
.pg83-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg83-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--pg83-card-bg);
  border-radius: var(--pg83-radius);
  border-left: 3px solid var(--pg83-primary);
}

.pg83-winner-name {
  font-size: 1.2rem;
  color: var(--pg83-text);
}

.pg83-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg83-primary);
}

/* ===== Footer ===== */
.pg83-footer {
  background: var(--pg83-darker);
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--pg83-card-border);
}

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

.pg83-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pg83-footer-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--pg83-card-bg);
  border: 1px solid var(--pg83-card-border);
  border-radius: 15px;
  font-size: 1.1rem;
  color: var(--pg83-text-muted);
  transition: var(--pg83-transition);
}

.pg83-footer-links a:hover {
  border-color: var(--pg83-primary);
  color: var(--pg83-primary);
}

.pg83-footer-copy {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--pg83-card-border);
}

/* ===== Bottom Navigation ===== */
.pg83-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--pg83-dark) 0%, var(--pg83-darker) 100%);
  border-top: 1px solid var(--pg83-card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.2rem;
}

.pg83-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg83-text-muted);
  cursor: pointer;
  transition: var(--pg83-transition);
  border-radius: var(--pg83-radius);
  position: relative;
  text-decoration: none;
}

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

.pg83-bottom-btn.pg83-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--pg83-primary);
  border-radius: 2px;
}

.pg83-bottom-btn i,
.pg83-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg83-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg83-bottom-label {
  font-size: 1rem;
  white-space: nowrap;
}

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

/* ===== Mobile: bottom padding for nav ===== */
@media (max-width: 768px) {
  main {
    padding-bottom: 72px;
  }
  .pg83-footer {
    padding-bottom: 72px;
  }
}

/* ===== H1 Styling ===== */
.pg83-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg83-text);
  text-align: center;
  padding: 1.5rem 1rem;
  line-height: 1.4;
}

.pg83-page-title span {
  color: var(--pg83-primary);
}

/* ===== Tags/Badges ===== */
.pg83-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.pg83-tag-hot {
  background: rgba(255,99,71,0.15);
  color: var(--pg83-primary);
}

.pg83-tag-new {
  background: rgba(76,175,80,0.15);
  color: var(--pg83-success);
}

/* ===== Payment Methods ===== */
.pg83-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pg83-payment-item {
  background: var(--pg83-card-bg);
  border: 1px solid var(--pg83-card-border);
  border-radius: var(--pg83-radius);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--pg83-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Testimonials ===== */
.pg83-testimonial {
  background: var(--pg83-card-bg);
  border: 1px solid var(--pg83-card-border);
  border-radius: var(--pg83-radius-lg);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.pg83-testimonial-user {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pg83-accent);
  margin-bottom: 0.4rem;
}

.pg83-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg83-text-muted);
  line-height: 1.6;
}

.pg83-stars {
  color: var(--pg83-warning);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* ===== RTP Bar ===== */
.pg83-rtp-bar {
  background: var(--pg83-card-bg);
  border: 1px solid var(--pg83-card-border);
  border-radius: var(--pg83-radius);
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg83-rtp-name {
  font-size: 1.2rem;
  color: var(--pg83-text);
}

.pg83-rtp-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg83-success);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 360px) {
  .pg83-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pg83-game-card img {
    width: 52px;
    height: 52px;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--pg83-bg); }
::-webkit-scrollbar-thumb { background: var(--pg83-card-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pg83-primary); }
