/**
 * Jilitt 2026 - Main CSS Stylesheet
 * Prefix: s3d8-
 * Mobile-first responsive design for casino gaming website
 * Color Palette: #6F4E37 (Brown) | #FFDEAD (Cream) | #DEE2E6 (Gray) | #8B4513 (Dark Brown) | #00FFFF (Cyan) | #2C3E50 (Dark Slate)
 */

/* CSS Variables for consistent styling */
:root {
  --s3d8-primary: #6F4E37;
  --s3d8-primary-dark: #8B4513;
  --s3d8-primary-light: #FFDEAD;
  --s3d8-accent: #00FFFF;
  --s3d8-bg: #2C3E50;
  --s3d8-bg-light: #DEE2E6;
  --s3d8-text: #ffffff;
  --s3d8-text-dark: #2C3E50;
  --s3d8-border: #6F4E37;
  --s3d8-success: #28a745;
  --s3d8-warning: #ffc107;
  --s3d8-danger: #dc3545;
  --s3d8-radius: 8px;
  --s3d8-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--s3d8-text);
  background-color: var(--s3d8-bg);
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Remove mobile nav padding on desktop */
@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Mobile view detection */
body.s3d8-mobile-view {
  padding-bottom: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 1.2rem 0 0.8rem 0;
  color: var(--s3d8-text);
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  color: var(--s3d8-primary-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2rem;
  color: var(--s3d8-accent);
}

h3 {
  font-size: 1.8rem;
  color: var(--s3d8-primary-light);
}

h4, h5, h6 {
  font-size: 1.5rem;
  color: var(--s3d8-text);
}

p {
  margin: 0.8rem 0;
  line-height: 1.6;
}

a {
  color: var(--s3d8-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--s3d8-primary-light);
  text-decoration: underline;
}

/* Container */
.s3d8-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s3d8-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.s3d8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--s3d8-primary);
  color: var(--s3d8-text);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--s3d8-shadow);
  height: 60px;
}

.s3d8-header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--s3d8-primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.s3d8-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--s3d8-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--s3d8-bg);
  font-size: 1.8rem;
}

.s3d8-header-nav {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.s3d8-header-btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--s3d8-accent);
  color: var(--s3d8-bg);
  border: none;
  border-radius: var(--s3d8-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.s3d8-header-btn:hover {
  background-color: var(--s3d8-primary-light);
  transform: scale(1.05);
}

.s3d8-header-btn:active {
  transform: scale(0.95);
}

.s3d8-menu-toggle {
  background: none;
  border: none;
  color: var(--s3d8-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 70px;
  padding-bottom: 0;
  width: 100%;
}

.s3d8-mobile-view main {
  padding-bottom: 80px;
}

/* Carousel Styles */
.s3d8-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 2rem auto;
  border-radius: var(--s3d8-radius);
  overflow: hidden;
  box-shadow: var(--s3d8-shadow);
}

.s3d8-carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--s3d8-primary);
}

.s3d8-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.s3d8-carousel-slide.s3d8-active {
  opacity: 1;
}

.s3d8-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s3d8-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.s3d8-carousel-btn {
  background-color: var(--s3d8-accent);
  color: var(--s3d8-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.s3d8-carousel-btn:hover {
  background-color: var(--s3d8-primary-light);
}

.s3d8-carousel-indicators {
  display: flex;
  gap: 0.6rem;
}

.s3d8-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.s3d8-carousel-indicator.s3d8-active {
  background-color: var(--s3d8-accent);
}

/* Section Styles */
.s3d8-section {
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--s3d8-primary);
}

.s3d8-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--s3d8-accent);
  font-weight: 700;
}

/* Button Styles */
.s3d8-btn {
  display: inline-block;
  padding: 1rem 1.8rem;
  background-color: var(--s3d8-accent);
  color: var(--s3d8-bg);
  border: none;
  border-radius: var(--s3d8-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.s3d8-btn:hover {
  background-color: var(--s3d8-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.s3d8-btn:active {
  transform: translateY(0);
}

.s3d8-btn-block {
  width: 100%;
}

.s3d8-btn-primary {
  background-color: var(--s3d8-primary);
  color: var(--s3d8-text);
}

.s3d8-btn-primary:hover {
  background-color: var(--s3d8-primary-dark);
}

/* Game Grid */
.s3d8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.s3d8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
}

.s3d8-game-item:hover {
  transform: scale(1.08);
}

.s3d8-game-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--s3d8-radius);
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: var(--s3d8-shadow);
  border: 2px solid var(--s3d8-accent);
}

.s3d8-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s3d8-primary-light);
  line-height: 1.3;
}

/* Mobile Navigation Bar */
.s3d8-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--s3d8-primary);
  border-top: 2px solid var(--s3d8-accent);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 64px;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
  .s3d8-mobile-nav {
    display: none;
  }
}

.s3d8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--s3d8-text);
  border: none;
  background: none;
  padding: 0.5rem;
  min-width: 60px;
  min-height: 60px;
}

.s3d8-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--s3d8-accent);
}

.s3d8-nav-item.s3d8-active {
  color: var(--s3d8-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

.s3d8-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s3d8-nav-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Menu */
#s3d8-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--s3d8-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

#s3d8-mobile-menu.s3d8-active {
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--s3d8-shadow);
}

.s3d8-mobile-menu-item {
  display: block;
  padding: 1.2rem;
  color: var(--s3d8-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.s3d8-mobile-menu-item:hover {
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--s3d8-accent);
  padding-left: 1.8rem;
}

/* Footer Styles */
.s3d8-footer {
  background-color: var(--s3d8-primary-dark);
  color: var(--s3d8-text);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--s3d8-accent);
}

.s3d8-footer-section {
  margin-bottom: 1.5rem;
}

.s3d8-footer-title {
  font-size: 1.4rem;
  color: var(--s3d8-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.s3d8-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.s3d8-footer-link {
  color: var(--s3d8-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.3rem;
}

.s3d8-footer-link:hover {
  color: var(--s3d8-accent);
}

.s3d8-partners {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}

.s3d8-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.s3d8-partner-logo:hover {
  opacity: 1;
}

.s3d8-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cards and Content */
.s3d8-card {
  background-color: rgba(111, 78, 55, 0.5);
  border: 1px solid var(--s3d8-accent);
  border-radius: var(--s3d8-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.s3d8-card:hover {
  border-color: var(--s3d8-primary-light);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.s3d8-card-title {
  color: var(--s3d8-accent);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.s3d8-card-text {
  color: var(--s3d8-text);
  line-height: 1.6;
}

/* Promotional Content */
.s3d8-promo-banner {
  background: linear-gradient(135deg, var(--s3d8-primary) 0%, var(--s3d8-primary-dark) 100%);
  padding: 2rem 1.2rem;
  border-radius: var(--s3d8-radius);
  margin: 1.5rem 0;
  text-align: center;
  border: 2px solid var(--s3d8-accent);
}

.s3d8-promo-title {
  font-size: 2rem;
  color: var(--s3d8-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.s3d8-promo-text {
  color: var(--s3d8-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Feature List */
.s3d8-feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.s3d8-feature-item {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background-color: rgba(0, 255, 255, 0.1);
  border-left: 4px solid var(--s3d8-accent);
  border-radius: 4px;
  color: var(--s3d8-text);
}

.s3d8-feature-item:before {
  content: '✓ ';
  color: var(--s3d8-accent);
  font-weight: 700;
  margin-right: 0.8rem;
}

/* Responsive Design */
@media (max-width: 430px) {
  html {
    font-size: 55%;
  }

  .s3d8-header {
    height: 56px;
    padding: 0.8rem 1rem;
  }

  .s3d8-header-brand {
    font-size: 1.2rem;
    gap: 0.6rem;
  }

  .s3d8-header-logo {
    width: 28px;
    height: 28px;
    font-size: 1.6rem;
  }

  .s3d8-header-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }

  main {
    padding-top: 64px;
  }

  .s3d8-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .s3d8-game-icon {
    width: 70px;
    height: 70px;
  }

  .s3d8-carousel-container {
    height: 160px;
  }

  .s3d8-section {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .s3d8-container {
    max-width: 90%;
  }

  .s3d8-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .s3d8-game-icon {
    width: 90px;
    height: 90px;
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }

  .s3d8-mobile-nav {
    display: none;
  }

  .s3d8-header {
    height: 70px;
  }

  main {
    padding-bottom: 0;
  }

  .s3d8-container {
    max-width: 1200px;
  }

  .s3d8-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .s3d8-game-icon {
    width: 100px;
    height: 100px;
  }
}

/* Utility Classes */
.s3d8-text-center {
  text-align: center;
}

.s3d8-text-right {
  text-align: right;
}

.s3d8-mt-1 {
  margin-top: 1rem;
}

.s3d8-mb-1 {
  margin-bottom: 1rem;
}

.s3d8-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.s3d8-hidden {
  display: none;
}

.s3d8-visible {
  display: block;
}

/* Animations */
@keyframes s3d8-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes s3d8-slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.s3d8-fadeIn {
  animation: s3d8-fadeIn 0.5s ease-in;
}

.s3d8-slideUp {
  animation: s3d8-slideUp 0.5s ease-out;
}