/**
 * 365 Casino Stylesheet
 * All classes use v396- prefix for namespace isolation
 * Color palette: #DEB887 (Burlywood), #8B008B (DarkMagenta), #F5DEB3 (Wheat), #F4A460 (SandyBrown), #212F3D (Dark Blue)
 */

/* CSS Variables */
:root {
  --v396-primary: #DEB887;
  --v396-secondary: #8B008B;
  --v396-accent: #F5DEB3;
  --v396-highlight: #F4A460;
  --v396-dark: #212F3D;
  --v396-light: #F5DEB3;
  --v396-text: #F5DEB3;
  --v396-text-dark: #212F3D;
  --v396-bg: #212F3D;
  --v396-card-bg: rgba(139, 0, 139, 0.15);
  --v396-border: rgba(222, 184, 135, 0.3);
  --v396-shadow: rgba(33, 47, 61, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--v396-bg);
  color: var(--v396-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.v396-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v396-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--v396-bg) 0%, #1a2530 100%);
  min-height: 100vh;
}

/* Header Styles */
.v396-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v396-secondary) 0%, var(--v396-dark) 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--v396-shadow);
  border-bottom: 2px solid var(--v396-primary);
}

.v396-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v396-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v396-primary);
}

.v396-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.v396-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v396-primary);
  letter-spacing: 0.5px;
}

.v396-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.v396-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v396-btn-register {
  background: linear-gradient(135deg, var(--v396-primary) 0%, var(--v396-highlight) 100%);
  color: var(--v396-dark);
  box-shadow: 0 2px 8px rgba(222, 184, 135, 0.4);
}

.v396-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 184, 135, 0.6);
}

.v396-btn-login {
  background: transparent;
  color: var(--v396-primary);
  border: 2px solid var(--v396-primary);
}

.v396-btn-login:hover {
  background: var(--v396-primary);
  color: var(--v396-dark);
}

.v396-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v396-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.v396-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, var(--v396-dark) 0%, #1a2530 100%);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -2px 0 15px var(--v396-shadow);
  border-left: 2px solid var(--v396-primary);
  overflow-y: auto;
}

.v396-mobile-menu.v396-menu-open {
  right: 0;
}

.v396-menu-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.v396-menu-close {
  background: none;
  border: none;
  color: var(--v396-primary);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v396-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.v396-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--v396-card-bg);
  border: 1px solid var(--v396-border);
  border-radius: 8px;
  color: var(--v396-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.v396-menu-link:hover {
  background: rgba(222, 184, 135, 0.2);
  border-color: var(--v396-primary);
  transform: translateX(5px);
}

.v396-menu-link i {
  color: var(--v396-primary);
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Main Content */
main {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.v396-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--v396-shadow);
}

.v396-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v396-carousel-slide {
  min-width: 100%;
  position: relative;
}

.v396-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v396-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(33, 47, 61, 0.9));
}

.v396-carousel-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 0.5rem;
}

.v396-carousel-desc {
  font-size: 1.4rem;
  color: var(--v396-text);
}

.v396-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v396-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v396-carousel-dot.active {
  background: var(--v396-primary);
  width: 30px;
  border-radius: 5px;
}

/* Section Styles */
.v396-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--v396-card-bg);
  border: 1px solid var(--v396-border);
  border-radius: 12px;
}

.v396-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--v396-border);
  padding-bottom: 1rem;
}

.v396-section-title i {
  color: var(--v396-highlight);
}

/* Game Grid */
.v396-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.v396-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v396-text);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.v396-game-item:hover {
  transform: scale(1.05);
}

.v396-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--v396-border);
  transition: border-color 0.3s ease;
  object-fit: cover;
}

.v396-game-item:hover .v396-game-icon {
  border-color: var(--v396-primary);
}

.v396-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  color: var(--v396-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Styles */
.v396-card {
  background: var(--v396-card-bg);
  border: 1px solid var(--v396-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.v396-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 1rem;
}

.v396-card-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--v396-text);
}

/* Feature List */
.v396-feature-list {
  list-style: none;
  padding: 0;
}

.v396-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--v396-border);
}

.v396-feature-item:last-child {
  border-bottom: none;
}

.v396-feature-icon {
  color: var(--v396-primary);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.v396-feature-text {
  flex: 1;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--v396-text);
}

.v396-feature-text strong {
  color: var(--v396-highlight);
}

/* Footer */
.v396-footer {
  background: linear-gradient(135deg, var(--v396-dark) 0%, #1a2530 100%);
  padding: 2rem 1rem 8rem;
  border-top: 2px solid var(--v396-border);
}

@media (min-width: 769px) {
  .v396-footer {
    padding-bottom: 2rem;
  }
}

.v396-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v396-footer-link {
  color: var(--v396-primary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v396-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v396-footer-link:hover {
  background: var(--v396-primary);
  color: var(--v396-dark);
}

.v396-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v396-partner-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v396-partner-icon:hover {
  opacity: 1;
}

.v396-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(245, 222, 179, 0.6);
  padding-top: 1.5rem;
  border-top: 1px solid var(--v396-border);
}

/* Mobile Bottom Navigation */
.v396-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--v396-secondary) 0%, var(--v396-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--v396-primary);
  box-shadow: 0 -2px 10px var(--v396-shadow);
}

@media (min-width: 769px) {
  .v396-bottom-nav {
    display: none;
  }
}

.v396-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: rgba(245, 222, 179, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
}

.v396-nav-item:hover,
.v396-nav-item.active {
  color: var(--v396-primary);
  transform: scale(1.1);
}

.v396-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.v396-nav-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Touch feedback for mobile */
.v396-touch-active {
  transform: scale(0.95) !important;
  opacity: 0.8;
}

/* Utility Classes */
.v396-text-center {
  text-align: center;
}

.v396-mb-1 {
  margin-bottom: 1rem;
}

.v396-mb-2 {
  margin-bottom: 2rem;
}

.v396-mt-1 {
  margin-top: 1rem;
}

.v396-mt-2 {
  margin-top: 2rem;
}

/* H1 and Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--v396-highlight);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--v396-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--v396-highlight);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
  .v396-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v396-game-name {
    font-size: 1rem;
  }
}

/* FAQ Styles */
.v396-faq-item {
  margin-bottom: 1.5rem;
  background: var(--v396-card-bg);
  border: 1px solid var(--v396-border);
  border-radius: 10px;
  overflow: hidden;
}

.v396-faq-question {
  padding: 1.2rem;
  font-weight: 600;
  color: var(--v396-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(139, 0, 139, 0.2);
  cursor: pointer;
}

.v396-faq-answer {
  padding: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--v396-text);
  border-top: 1px solid var(--v396-border);
}

/* Promo Box */
.v396-promo-box {
  background: linear-gradient(135deg, rgba(222, 184, 135, 0.2) 0%, rgba(244, 164, 96, 0.2) 100%);
  border: 2px solid var(--v396-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.v396-promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v396-highlight);
  margin-bottom: 1rem;
}

.v396-promo-desc {
  font-size: 1.5rem;
  color: var(--v396-text);
  margin-bottom: 1.2rem;
}

.v396-promo-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--v396-primary) 0%, var(--v396-highlight) 100%);
  color: var(--v396-dark);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
}

.v396-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(222, 184, 135, 0.5);
}

/* Stats Section */
.v396-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v396-stat-item {
  background: var(--v396-card-bg);
  border: 1px solid var(--v396-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.v396-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v396-primary);
  margin-bottom: 0.5rem;
}

.v396-stat-label {
  font-size: 1.3rem;
  color: var(--v396-text);
  opacity: 0.8;
}

/* Button Link Styles */
.v396-link-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--v396-secondary) 0%, var(--v396-dark) 100%);
  color: var(--v396-primary);
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--v396-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.4rem;
}

.v396-link-btn:hover {
  background: var(--v396-primary);
  color: var(--v396-dark);
  transform: translateY(-2px);
}

/* List Styles */
.v396-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v396-list-item {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--v396-text);
}

.v396-list-item:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--v396-primary);
  font-weight: bold;
}

/* Loading Animation */
@keyframes v396-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.v396-loading {
  animation: v396-pulse 1.5s ease-in-out infinite;
}

/* Responsive Icons */
.v396-icon-lg {
  font-size: 2rem;
}

.v396-icon-md {
  font-size: 1.6rem;
}

.v396-icon-sm {
  font-size: 1.2rem;
}
