/**
 * JL555 - Main Stylesheet
 * All classes use prefix: w0df5-
 * Mobile-first design for online casino platform
 */

/* CSS Variables */
:root {
  --w0df5-primary: #FF69B4;
  --w0df5-secondary: #7B68EE;
  --w0df5-dark: #1C2833;
  --w0df5-accent: #8B0000;
  --w0df5-gray: #808080;
  --w0df5-light: #FFFFFF;
  --w0df5-bg-light: #F8F9FA;
  --w0df5-text-dark: #1C2833;
  --w0df5-text-light: #FFFFFF;
  --w0df5-shadow: rgba(0, 0, 0, 0.1);
  --w0df5-gradient: linear-gradient(135deg, var(--w0df5-primary) 0%, var(--w0df5-secondary) 100%);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w0df5-text-dark);
  background-color: var(--w0df5-bg-light);
  overflow-x: hidden;
  padding-bottom: 80px;
}

body.w0df5-menu-open {
  overflow: hidden;
}

/* Container */
.w0df5-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.w0df5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w0df5-dark);
  box-shadow: 0 2px 10px var(--w0df5-shadow);
  z-index: 1000;
  height: 60px;
}

.w0df5-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.w0df5-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w0df5-text-light);
  font-size: 1.8rem;
  font-weight: bold;
}

.w0df5-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.w0df5-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.w0df5-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  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;
}

.w0df5-btn-primary {
  background: var(--w0df5-primary);
  color: var(--w0df5-text-light);
}

.w0df5-btn-secondary {
  background: transparent;
  color: var(--w0df5-text-light);
  border: 2px solid var(--w0df5-primary);
}

.w0df5-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.w0df5-btn:active {
  transform: scale(0.98);
}

/* Mobile Menu Toggle */
.w0df5-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.w0df5-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--w0df5-text-light);
  transition: all 0.3s ease;
}

.w0df5-menu-toggle.w0df5-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.w0df5-menu-toggle.w0df5-active span:nth-child(2) {
  opacity: 0;
}

.w0df5-menu-toggle.w0df5-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.w0df5-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: var(--w0df5-dark);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.w0df5-mobile-menu.w0df5-active {
  left: 0;
}

.w0df5-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w0df5-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.w0df5-menu-item:hover {
  background: rgba(255, 105, 180, 0.2);
}

/* Carousel */
.w0df5-carousel {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.w0df5-slide {
  width: 100%;
  height: auto;
  display: none;
}

.w0df5-slide.w0df5-active {
  display: block;
}

.w0df5-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.w0df5-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.8rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.w0df5-carousel-nav:hover {
  background: rgba(255, 105, 180, 0.8);
}

.w0df5-carousel-prev {
  left: 10px;
}

.w0df5-carousel-next {
  right: 10px;
}

/* Main Content */
.w0df5-main {
  padding: 2rem 0;
}

.w0df5-section {
  margin-bottom: 3rem;
}

.w0df5-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--w0df5-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Grid */
.w0df5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w0df5-game-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--w0df5-shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w0df5-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.3);
}

.w0df5-game-item:active {
  transform: scale(0.98);
}

.w0df5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w0df5-game-name {
  padding: 0.6rem 0.4rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--w0df5-text-dark);
  background: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Cards */
.w0df5-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--w0df5-shadow);
}

.w0df5-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--w0df5-primary);
  margin-bottom: 1rem;
}

.w0df5-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--w0df5-text-dark);
}

.w0df5-card-content p {
  margin-bottom: 1rem;
}

/* Feature List */
.w0df5-feature-list {
  list-style: none;
  padding: 0;
}

.w0df5-feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w0df5-bg-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w0df5-feature-list li:last-child {
  border-bottom: none;
}

.w0df5-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--w0df5-primary);
  flex-shrink: 0;
}

/* Text Links */
.w0df5-text-link {
  color: var(--w0df5-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.w0df5-text-link:hover {
  color: var(--w0df5-secondary);
  text-decoration: underline;
}

/* Footer */
.w0df5-footer {
  background: var(--w0df5-dark);
  color: var(--w0df5-text-light);
  padding: 2rem 0 6rem 0;
}

.w0df5-footer-content {
  margin-bottom: 2rem;
}

.w0df5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w0df5-footer-link {
  color: var(--w0df5-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.w0df5-footer-link:hover {
  background: var(--w0df5-primary);
}

.w0df5-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.w0df5-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.w0df5-partner-logo:hover {
  opacity: 1;
}

.w0df5-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w0df5-gray);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.w0df5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w0df5-dark);
  box-shadow: 0 -2px 10px var(--w0df5-shadow);
  z-index: 1000;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.w0df5-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--w0df5-text-light);
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.w0df5-nav-btn:hover {
  color: var(--w0df5-primary);
}

.w0df5-nav-btn.w0df5-active {
  color: var(--w0df5-primary);
}

.w0df5-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.w0df5-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Utilities */
.w0df5-text-center {
  text-align: center;
}

.w0df5-mt-1 { margin-top: 1rem; }
.w0df5-mt-2 { margin-top: 2rem; }
.w0df5-mb-1 { margin-bottom: 1rem; }
.w0df5-mb-2 { margin-bottom: 2rem; }

.w0df5-hidden {
  display: none;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .w0df5-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .w0df5-mobile-menu {
    display: none;
  }
}

/* Loading State */
body:not(.w0df5-loaded) {
  opacity: 0;
}

body.w0df5-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Touch Feedback */
.w0df5-btn:active,
.w0df5-nav-btn:active,
.w0df5-game-item:active {
  transform: scale(0.95);
}
