/* ph978 casino CSS Design System */
/* Color Palette: #8B0000 | #E0FFFF | #0097A7 | #0A0A0A | #48D1CC */

/* Root Variables */
:root {
  --wbd4a-primary: #8B0000;
  --wbd4a-secondary: #0097A7;
  --wbd4a-accent: #48D1CC;
  --wbd4a-bg: #0A0A0A;
  --wbd4a-light: #E0FFFF;
  --wbd4a-text: #E0FFFF;
  --wbd4a-text-secondary: rgba(224, 255, 255, 0.8);
  --wbd4a-border: rgba(72, 209, 204, 0.2);
  --wbd4a-shadow: rgba(139, 0, 0, 0.3);
  --wbd4a-gradient: linear-gradient(135deg, #8B0000, #0097A7);
  font-size: 62.5%; /* 1rem = 10px */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--wbd4a-text);
  background: var(--wbd4a-bg);
  overflow-x: hidden;
}

/* Layout Components */
.wbd4a-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wbd4a-container {
  width: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wbd4a-main {
  flex: 1;
  padding-bottom: 8rem; /* Space for bottom nav */
}

.wbd4a-section {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}

.wbd4a-section.wbd4a-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Header Styles */
.wbd4a-header {
  background: linear-gradient(135deg, var(--wbd4a-primary), var(--wbd4a-bg));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--wbd4a-shadow);
}

.wbd4a-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: 6rem;
}

.wbd4a-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--wbd4a-light);
  font-weight: 700;
  font-size: 1.8rem;
}

.wbd4a-logo img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 0.8rem;
  border-radius: 0.4rem;
}

.wbd4a-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wbd4a-auth-btns {
  display: flex;
  gap: 0.8rem;
}

/* Navigation Menu */
.wbd4a-nav-menu {
  position: fixed;
  top: 6rem;
  left: -100%;
  width: 28rem;
  height: calc(100vh - 6rem);
  background: linear-gradient(180deg, var(--wbd4a-bg), rgba(139, 0, 0, 0.1));
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.wbd4a-nav-menu.wbd4a-menu-active {
  left: 0;
}

.wbd4a-nav-links {
  list-style: none;
  padding: 2rem 0;
}

.wbd4a-nav-links li {
  border-bottom: 1px solid var(--wbd4a-border);
}

.wbd4a-nav-links a {
  display: flex;
  align-items: center;
  padding: 1.2rem 2rem;
  color: var(--wbd4a-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.wbd4a-nav-links a:hover {
  background: rgba(72, 209, 204, 0.1);
  color: var(--wbd4a-accent);
  transform: translateX(0.5rem);
}

.wbd4a-nav-links i {
  margin-right: 1rem;
  width: 2rem;
  font-size: 1.6rem;
}

/* Menu Toggle Button */
.wbd4a-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.wbd4a-menu-toggle span {
  width: 100%;
  height: 0.2rem;
  background: var(--wbd4a-light);
  margin: 0.2rem 0;
  transition: all 0.3s ease;
  border-radius: 0.1rem;
}

.wbd4a-menu-toggle.wbd4a-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.wbd4a-menu-toggle.wbd4a-toggle-active span:nth-child(2) {
  opacity: 0;
}

.wbd4a-menu-toggle.wbd4a-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.7rem, -0.6rem);
}

/* Overlay */
.wbd4a-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.wbd4a-nav-overlay.wbd4a-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.wbd4a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 4.4rem;
  gap: 0.8rem;
}

.wbd4a-btn-primary {
  background: var(--wbd4a-gradient);
  color: var(--wbd4a-light);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.wbd4a-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.wbd4a-btn-secondary {
  background: linear-gradient(135deg, var(--wbd4a-secondary), var(--wbd4a-accent));
  color: var(--wbd4a-light);
  box-shadow: 0 4px 15px rgba(0, 151, 167, 0.3);
}

.wbd4a-btn-secondary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 6px 20px rgba(0, 151, 167, 0.4);
}

.wbd4a-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.wbd4a-btn i {
  font-size: 1.4rem;
}

/* Ripple Effect */
.wbd4a-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: wbd4a-ripple 0.6s linear;
}

@keyframes wbd4a-ripple {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card Component */
.wbd4a-card {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(0, 151, 167, 0.05));
  border: 1px solid var(--wbd4a-border);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(2rem);
}

.wbd4a-card.wbd4a-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.wbd4a-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 8px 30px rgba(72, 209, 204, 0.2);
}

/* Typography */
.wbd4a-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wbd4a-light);
  margin-bottom: 1.5rem;
  background: var(--wbd4a-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wbd4a-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--wbd4a-accent);
  margin-bottom: 1rem;
}

.wbd4a-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wbd4a-light);
  margin-bottom: 0.8rem;
}

.wbd4a-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wbd4a-text-secondary);
  margin-bottom: 1rem;
}

.wbd4a-text-center {
  text-align: center;
}

/* Game Grid */
.wbd4a-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.wbd4a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--wbd4a-text);
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(72, 209, 204, 0.05);
  border: 1px solid transparent;
  opacity: 0;
  animation: wbd4a-fadeInUp 0.6s ease forwards;
}

.wbd4a-game-item:hover {
  transform: translateY(-0.3rem) scale(1.05);
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--wbd4a-accent);
  box-shadow: 0 6px 20px rgba(72, 209, 204, 0.3);
}

.wbd4a-game-item img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wbd4a-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: var(--wbd4a-text);
}

/* Carousel */
.wbd4a-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.wbd4a-carousel-container {
  position: relative;
  height: 20rem;
}

.wbd4a-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.wbd4a-carousel-slide.wbd4a-slide-active {
  opacity: 1;
}

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

/* Footer */
.wbd4a-footer {
  background: linear-gradient(135deg, var(--wbd4a-bg), var(--wbd4a-primary));
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 2px solid var(--wbd4a-accent);
}

.wbd4a-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  list-style: none;
}

.wbd4a-footer-links a {
  color: var(--wbd4a-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.wbd4a-footer-links a:hover {
  color: var(--wbd4a-accent);
}

.wbd4a-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.wbd4a-partner-img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wbd4a-partner-img:hover {
  opacity: 1;
}

.wbd4a-copyright {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--wbd4a-text-secondary);
  font-size: 1.2rem;
  border-top: 1px solid var(--wbd4a-border);
}

/* Bottom Navigation */
.wbd4a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--wbd4a-primary), var(--wbd4a-bg));
  border-top: 1px solid var(--wbd4a-accent);
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
}

.wbd4a-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 43rem;
  margin: 0 auto;
}

.wbd4a-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wbd4a-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--wbd4a-text-secondary);
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.wbd4a-bottom-nav-item.wbd4a-nav-active a {
  color: var(--wbd4a-accent);
  transform: scale(1.1);
}

.wbd4a-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.wbd4a-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

.wbd4a-bottom-nav-item:hover {
  transform: translateY(-0.2rem);
}

/* Animations */
@keyframes wbd4a-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wbd4a-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Utility Classes */
.wbd4a-mt-1 { margin-top: 1rem; }
.wbd4a-mt-2 { margin-top: 2rem; }
.wbd4a-mb-1 { margin-bottom: 1rem; }
.wbd4a-mb-2 { margin-bottom: 2rem; }
.wbd4a-p-1 { padding: 1rem; }
.wbd4a-p-2 { padding: 2rem; }

.wbd4a-gradient-text {
  background: var(--wbd4a-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wbd4a-loaded {
  overflow-x: hidden;
}

/* Responsive Adjustments */
@media (min-width: 48rem) {
  .wbd4a-container {
    padding: 0 2rem;
  }
  
  .wbd4a-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }
  
  .wbd4a-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading States */
.wbd4a-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Focus Styles for Accessibility */
.wbd4a-btn:focus,
.wbd4a-game-item:focus,
.wbd4a-nav-links a:focus {
  outline: 2px solid var(--wbd4a-accent);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --wbd4a-border: rgba(224, 255, 255, 0.5);
    --wbd4a-text-secondary: rgba(224, 255, 255, 0.9);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}