/* design.css - Main CSS for 49jili mobile-first casino website */
:root {
  /* Base font size for rem calculations */
  font-size: 62.5%;
  
  /* Color variables with w8317 prefix */
  --w8317-primary: #FFEB3B;    /* Yellow - Primary/Brand color */
  --w8317-bg-dark: #141414;    /* Nearly black - Background */
  --w8317-accent1: #00CED1;    /* Turquoise - Accent */
  --w8317-accent2: #66CDAA;    /* Medium Aquamarine - Secondary accent */
  --w8317-highlight: #BF360C;  /* Deep Orange - Highlights/CTA */
  --w8317-text-light: #F5F5F5; /* Off-white - Text on dark backgrounds */
  --w8317-text-dark: #212121;  /* Nearly black - Text on light backgrounds */
  --w8317-border: rgba(255, 235, 59, 0.3); /* Semi-transparent yellow */
  --w8317-overlay: rgba(20, 20, 20, 0.85); /* Semi-transparent dark overlay */
  --w8317-shadow: rgba(0, 0, 0, 0.25);     /* Shadows */
  --w8317-success: #4CAF50;    /* Green - Success messages */
  --w8317-error: #F44336;      /* Red - Error messages */
  --w8317-warning: #FF9800;    /* Orange - Warnings */
  --w8317-info: #2196F3;       /* Blue - Information */
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--w8317-bg-dark);
  color: var(--w8317-text-light);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 6.4rem; /* Space for fixed bottom nav */
}

a {
  text-decoration: none;
  color: var(--w8317-primary);
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--w8317-accent1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--w8317-primary);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 2.0rem;
}

p {
  margin-bottom: 1.6rem;
}

.w8317-text-primary {
  color: var(--w8317-primary);
}

.w8317-text-accent1 {
  color: var(--w8317-accent1);
}

.w8317-text-accent2 {
  color: var(--w8317-accent2);
}

.w8317-text-highlight {
  color: var(--w8317-highlight);
}

.w8317-text-center {
  text-align: center;
}

.w8317-text-right {
  text-align: right;
}

.w8317-bold {
  font-weight: 700;
}

/* Layout Containers */
.w8317-container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}

.w8317-wrapper {
  padding: 2rem 0;
}

.w8317-section {
  margin-bottom: 3rem;
}

/* Grid System */
.w8317-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -1rem;
  margin-left: -1rem;
}

.w8317-col {
  position: relative;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
}

.w8317-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.w8317-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.w8317-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Flexbox Utilities */
.w8317-d-flex {
  display: flex;
}

.w8317-flex-wrap {
  flex-wrap: wrap;
}

.w8317-justify-content-between {
  justify-content: space-between;
}

.w8317-justify-content-center {
  justify-content: center;
}

.w8317-align-items-center {
  align-items: center;
}

/* Fixed Header */
.w8317-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--w8317-bg-dark);
  box-shadow: 0 2px 10px var(--w8317-shadow);
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.w8317-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.w8317-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w8317-logo img {
  height: 3.2rem;
  width: auto;
}

.w8317-logo-text {
  color: var(--w8317-primary);
  font-size: 2rem;
  font-weight: 700;
}

/* Navigation */
.w8317-nav-toggle {
  background: none;
  border: none;
  color: var(--w8317-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w8317-nav {
  position: fixed;
  top: 6.2rem;
  left: 0;
  right: 0;
  background-color: var(--w8317-overlay);
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 999;
}

.w8317-nav.w8317-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.w8317-nav-list {
  list-style: none;
}

.w8317-nav-item {
  margin-bottom: 1.5rem;
}

.w8317-nav-link {
  display: block;
  padding: 1rem;
  color: var(--w8317-text-light);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.w8317-nav-link:hover,
.w8317-nav-link:focus {
  background-color: rgba(255, 235, 59, 0.1);
  border-left-color: var(--w8317-primary);
  padding-left: 1.5rem;
}

.w8317-nav-dropdown {
  padding-left: 2rem;
}

/* Buttons */
.w8317-btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.8rem 1.6rem;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.w8317-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.25);
}

.w8317-btn-primary {
  background-color: var(--w8317-primary);
  border-color: var(--w8317-primary);
  color: var(--w8317-text-dark);
}

.w8317-btn-primary:hover, .w8317-btn-primary:focus {
  background-color: #e6d335;
  border-color: #e6d335;
}

.w8317-btn-outline {
  background-color: transparent;
  border-color: var(--w8317-primary);
  color: var(--w8317-primary);
}

.w8317-btn-outline:hover, .w8317-btn-outline:focus {
  background-color: var(--w8317-primary);
  color: var(--w8317-text-dark);
}

.w8317-btn-accent1 {
  background-color: var(--w8317-accent1);
  border-color: var(--w8317-accent1);
  color: var(--w8317-text-dark);
}

.w8317-btn-accent1:hover, .w8317-btn-accent1:focus {
  background-color: #00bfc1;
  border-color: #00bfc1;
}

.w8317-btn-highlight {
  background-color: var(--w8317-highlight);
  border-color: var(--w8317-highlight);
  color: var(--w8317-text-light);
}

.w8317-btn-highlight:hover, .w8317-btn-highlight:focus {
  background-color: #a52f0a;
  border-color: #a52f0a;
}

.w8317-btn-sm {
  padding: 0.4rem 1rem;
  font-size: 1.4rem;
}

.w8317-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.8rem;
}

.w8317-btn-block {
  display: block;
  width: 100%;
}

/* Game Grid */
.w8317-game-category {
  margin-bottom: 3rem;
}

.w8317-game-category-title {
  border-left: 4px solid var(--w8317-primary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w8317-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.w8317-game-item {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.w8317-game-item:hover {
  transform: translateY(-3px);
}

.w8317-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w8317-game-name {
  font-size: 1.2rem;
  padding: 0.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carousel */
.w8317-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.w8317-carousel-inner {
  display: flex;
  transition: transform 0.4s ease;
}

.w8317-carousel-item {
  min-width: 100%;
}

.w8317-carousel-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.w8317-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w8317-carousel-control:hover {
  opacity: 1;
}

.w8317-carousel-prev {
  left: 1rem;
}

.w8317-carousel-next {
  right: 1rem;
}

.w8317-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.w8317-carousel-indicator {
  width: 1rem;
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.w8317-carousel-indicator.w8317-active {
  background-color: var(--w8317-primary);
}

/* Cards */
.w8317-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px var(--w8317-shadow);
}

.w8317-card-header {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--w8317-border);
}

.w8317-card-body {
  padding: 1.5rem;
}

.w8317-card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--w8317-border);
  background-color: rgba(0, 0, 0, 0.1);
}

.w8317-card-title {
  margin-bottom: 1rem;
}

.w8317-card-subtitle {
  color: var(--w8317-accent1);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* Promo Link Styles */
.w8317-promo-link {
  color: var(--w8317-primary);
  font-weight: 700;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.w8317-promo-link:hover,
.w8317-promo-link:focus {
  color: var(--w8317-highlight);
  text-decoration: none;
}

.w8317-promo-btn {
  background: linear-gradient(45deg, var(--w8317-highlight), var(--w8317-primary));
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 5rem;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.w8317-promo-btn:hover,
.w8317-promo-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  color: white;
}

.w8317-promo-banner {
  background: linear-gradient(135deg, var(--w8317-accent1), var(--w8317-accent2));
  padding: 1.5rem;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.w8317-promo-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.w8317-promo-banner-content {
  position: relative;
  z-index: 1;
}

.w8317-promo-banner-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: white;
}

/* Fixed Bottom Navigation */
.w8317-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background-color: var(--w8317-bg-dark);
  box-shadow: 0 -2px 10px var(--w8317-shadow);
  padding: 0.8rem 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.w8317-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-width: 6rem;
}

.w8317-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  color: var(--w8317-text-light);
}

.w8317-bottom-nav-text {
  font-size: 1.2rem;
  text-align: center;
  color: var(--w8317-text-light);
}

.w8317-bottom-nav-item.w8317-active .w8317-bottom-nav-icon,
.w8317-bottom-nav-item.w8317-active .w8317-bottom-nav-text {
  color: var(--w8317-primary);
}

.w8317-bottom-nav-item:hover .w8317-bottom-nav-icon,
.w8317-bottom-nav-item:focus .w8317-bottom-nav-icon {
  transform: scale(1.1);
}

/* Footer */
.w8317-footer {
  padding: 3rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  margin-top: 3rem;
}

.w8317-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w8317-footer-link {
  color: var(--w8317-text-light);
  font-size: 1.4rem;
  margin-right: 1rem;
}

.w8317-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w8317-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(0.8);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.w8317-partner-icon:hover {
  filter: grayscale(0);
  opacity: 1;
}

.w8317-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* FAQ Styles */
.w8317-faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--w8317-border);
  padding-bottom: 1.5rem;
}

.w8317-faq-question {
  font-weight: 700;
  color: var(--w8317-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-right: 2.5rem;
  cursor: pointer;
}

.w8317-faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 2rem;
  color: var(--w8317-primary);
  transition: transform 0.3s ease;
}

.w8317-faq-item.w8317-active .w8317-faq-question::after {
  transform: rotate(45deg);
}

.w8317-faq-answer {
  display: none;
}

.w8317-faq-item.w8317-active .w8317-faq-answer {
  display: block;
}

/* About Page Styles */
.w8317-about-section {
  margin-bottom: 3rem;
}

.w8317-feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.w8317-feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.w8317-feature-icon {
  color: var(--w8317-primary);
  font-size: 2.4rem;
  flex-shrink: 0;
}

/* Additional Utilities */
.w8317-mt-1 { margin-top: 1rem; }
.w8317-mt-2 { margin-top: 2rem; }
.w8317-mt-3 { margin-top: 3rem; }
.w8317-mb-1 { margin-bottom: 1rem; }
.w8317-mb-2 { margin-bottom: 2rem; }
.w8317-mb-3 { margin-bottom: 3rem; }
.w8317-ml-1 { margin-left: 1rem; }
.w8317-mr-1 { margin-right: 1rem; }
.w8317-p-1 { padding: 1rem; }
.w8317-p-2 { padding: 2rem; }
.w8317-p-3 { padding: 3rem; }
.w8317-pt-5 { padding-top: 5rem; } /* For header spacing */

.w8317-radius { border-radius: 0.8rem; }
.w8317-shadow { box-shadow: 0 4px 8px var(--w8317-shadow); }

.w8317-divider {
  height: 1px;
  background-color: var(--w8317-border);
  margin: 2rem 0;
}

/* Page content area */
.w8317-content {
  padding-top: 6.2rem; /* Header height + spacing */
}

/* Added for sticky header space */
.w8317-header-space {
  height: 6.2rem;
}

/* Badges */
.w8317-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 1rem;
  background-color: var(--w8317-primary);
  color: var(--w8317-text-dark);
}

.w8317-badge-accent {
  background-color: var(--w8317-accent1);
}

.w8317-badge-highlight {
  background-color: var(--w8317-highlight);
  color: var(--w8317-text-light);
}

/* Loading spinner */
.w8317-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(255, 235, 59, 0.1);
  border-left-color: var(--w8317-primary);
  border-radius: 50%;
  animation: w8317-spin 1s linear infinite;
}

@keyframes w8317-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Media Queries for larger devices */
@media (min-width: 430px) {
  body {
    border-left: 1px solid var(--w8317-border);
    border-right: 1px solid var(--w8317-border);
  }
} 