/**
 * 888 Casino - Main Stylesheet
 * All classes use prefix "v267-" to avoid conflicts
 * Colors: Gold #CD853F | Crimson #DC143C | Dark #262626 | Pink #FFB6C1
 */

:root {
  --v267-primary: #CD853F;
  --v267-crimson: #DC143C;
  --v267-bg: #262626;
  --v267-bg-dark: #1a1a1a;
  --v267-bg-card: #333333;
  --v267-text: #FFB6C1;
  --v267-text-light: #ffffff;
  --v267-text-muted: #c4a882;
  --v267-gold-light: #e6c47a;
  --v267-border: #4a3f35;
  --v267-radius: 8px;
  --v267-radius-lg: 12px;
  --v267-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v267-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--v267-bg);
  color: var(--v267-text-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==================== Header ==================== */
.v267-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v267-bg-dark) 0%, #2d2218 100%);
  border-bottom: 2px solid var(--v267-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v267-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v267-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--v267-primary);
}

.v267-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v267-primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.v267-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v267-btn-register,
.v267-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--v267-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.v267-btn-register {
  background: linear-gradient(135deg, var(--v267-crimson), #ff4757);
  color: #fff;
}

.v267-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.5);
}

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

.v267-btn-login:hover {
  background: rgba(205, 133, 63, 0.15);
}

.v267-hamburger {
  background: none;
  border: none;
  color: var(--v267-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ==================== Mobile Menu ==================== */
.v267-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.v267-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--v267-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

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

.v267-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--v267-border);
}

.v267-menu-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--v267-primary);
}

.v267-menu-logo span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v267-primary);
}

.v267-menu-links {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.v267-menu-links li {
  border-bottom: 1px solid rgba(205, 133, 63, 0.1);
}

.v267-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--v267-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.v267-menu-links a:hover {
  background: rgba(205, 133, 63, 0.1);
  color: var(--v267-primary);
}

.v267-menu-links a i,
.v267-menu-links a .material-icons {
  font-size: 2rem;
  color: var(--v267-primary);
  width: 24px;
  text-align: center;
}

/* ==================== Main Content ==================== */
.v267-main {
  margin-top: 56px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

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

.v267-container {
  padding: 0 1.2rem;
}

/* ==================== Carousel ==================== */
.v267-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--v267-radius-lg) var(--v267-radius-lg);
}

.v267-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v267-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v267-carousel-active {
  display: block;
}

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

.v267-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

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

/* ==================== Section Headings ==================== */
.v267-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v267-primary);
  padding: 1.5rem 0 0.8rem;
  border-bottom: 2px solid var(--v267-crimson);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v267-section-title i,
.v267-section-title .material-icons {
  color: var(--v267-crimson);
  font-size: 2.2rem;
}

/* ==================== Game Grid ==================== */
.v267-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.v267-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--v267-radius);
  padding: 0.5rem;
}

.v267-game-item:hover {
  transform: translateY(-2px);
}

.v267-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v267-radius);
  border: 2px solid var(--v267-border);
  object-fit: cover;
  transition: border-color 0.2s;
}

.v267-game-item:hover img {
  border-color: var(--v267-primary);
}

.v267-game-name {
  font-size: 1.1rem;
  color: var(--v267-text);
  margin-top: 0.3rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== Content Modules ==================== */
.v267-module {
  background: var(--v267-bg-card);
  border-radius: var(--v267-radius-lg);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--v267-border);
}

.v267-module h2 {
  font-size: 1.8rem;
  color: var(--v267-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--v267-border);
}

.v267-module h3 {
  font-size: 1.5rem;
  color: var(--v267-gold-light);
  margin: 1rem 0 0.5rem;
}

.v267-module p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--v267-text-light);
  margin: 0.5rem 0;
}

.v267-module ul,
.v267-module ol {
  padding-left: 2rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--v267-text-light);
}

.v267-promo-text {
  font-size: 1.3rem;
  color: var(--v267-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.v267-promo-text:hover {
  color: var(--v267-gold-light);
}

.v267-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v267-crimson), #ff4757);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--v267-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.v267-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(220, 20, 60, 0.5);
}

.v267-promo-btn-gold {
  background: linear-gradient(135deg, var(--v267-primary), var(--v267-gold-light));
  color: var(--v267-bg-dark);
}

.v267-promo-btn-gold:hover {
  box-shadow: 0 0 16px rgba(205, 133, 63, 0.5);
}

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

.v267-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(205, 133, 63, 0.08);
  padding: 0.8rem 1rem;
  border-radius: var(--v267-radius);
  border-left: 3px solid var(--v267-primary);
}

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

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

.v267-winner-game {
  font-size: 1.1rem;
  color: var(--v267-text-muted);
}

/* ==================== Payment Methods ==================== */
.v267-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v267-payment-item {
  background: rgba(205, 133, 63, 0.08);
  border-radius: var(--v267-radius);
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--v267-text-light);
  border: 1px solid var(--v267-border);
}

.v267-payment-item i,
.v267-payment-item .material-icons {
  font-size: 2.4rem;
  color: var(--v267-primary);
  margin-bottom: 0.4rem;
  display: block;
}

/* ==================== Testimonials ==================== */
.v267-testimonial {
  background: rgba(205, 133, 63, 0.06);
  border-radius: var(--v267-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--v267-crimson);
}

.v267-testimonial-text {
  font-size: 1.2rem;
  color: var(--v267-text-light);
  font-style: italic;
  line-height: 1.5;
}

.v267-testimonial-author {
  font-size: 1.1rem;
  color: var(--v267-primary);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ==================== Bottom Navigation ==================== */
.v267-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #2d2218, var(--v267-bg-dark));
  border-top: 2px solid var(--v267-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.v267-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--v267-text-muted);
  text-decoration: none;
  gap: 2px;
}

.v267-bottom-nav-btn i,
.v267-bottom-nav-btn .material-icons,
.v267-bottom-nav-btn ion-icon,
.v267-bottom-nav-btn .bi {
  font-size: 22px;
  transition: all 0.2s;
}

.v267-bottom-nav-btn span {
  font-size: 1rem;
  transition: all 0.2s;
}

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

.v267-bottom-nav-btn.v267-nav-active i,
.v267-bottom-nav-btn.v267-nav-active .material-icons,
.v267-bottom-nav-btn.v267-nav-active ion-icon {
  transform: scale(1.15);
}

.v267-bottom-nav-btn:active {
  transform: scale(0.92);
}

@media (min-width: 769px) {
  .v267-bottom-nav {
    display: none;
  }
}

/* ==================== Footer ==================== */
.v267-footer {
  background: var(--v267-bg-dark);
  border-top: 2px solid var(--v267-primary);
  padding: 2rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .v267-footer {
    padding-bottom: 80px;
  }
}

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

.v267-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v267-footer-promo .v267-promo-btn {
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
}

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

.v267-footer-links a {
  font-size: 1.2rem;
  color: var(--v267-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.v267-footer-copy {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  border-top: 1px solid var(--v267-border);
  padding-top: 1rem;
}

/* ==================== Scroll To Top ==================== */
.v267-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v267-primary);
  color: var(--v267-bg-dark);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--v267-shadow-lg);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}

.v267-scroll-top:hover {
  background: var(--v267-gold-light);
  transform: scale(1.1);
}

/* ==================== Category Tabs ==================== */
.v267-cat-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--v267-primary), var(--v267-crimson));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

/* ==================== RTP Table ==================== */
.v267-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.v267-rtp-table th {
  background: var(--v267-primary);
  color: var(--v267-bg-dark);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.v267-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--v267-border);
  color: var(--v267-text-light);
}

.v267-rtp-table tr:hover td {
  background: rgba(205, 133, 63, 0.08);
}

/* ==================== FAQ Accordion ==================== */
.v267-faq-item {
  border: 1px solid var(--v267-border);
  border-radius: var(--v267-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.v267-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v267-primary);
  padding: 1rem;
  background: rgba(205, 133, 63, 0.06);
}

.v267-faq-a {
  font-size: 1.2rem;
  color: var(--v267-text-light);
  padding: 0.8rem 1rem;
  line-height: 1.6;
}

/* ==================== Utility ==================== */
.v267-text-center {
  text-align: center;
}

.v267-mt-1 {
  margin-top: 0.5rem;
}

.v267-mt-2 {
  margin-top: 1rem;
}

.v267-mb-2 {
  margin-bottom: 1rem;
}

.v267-hidden {
  display: none;
}

.v267-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v267-border), transparent);
  margin: 1.5rem 0;
}

/* ==================== Desktop Navigation ==================== */
.v267-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .v267-desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .v267-desktop-nav a {
    color: var(--v267-text);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s;
  }

  .v267-desktop-nav a:hover {
    color: var(--v267-primary);
  }
}
