/* 365JL Casino - Design System */
/* Prefix: dm8- */
/* Color Scheme: Gold (#FFD700) & Deep Purple (#1A0A2E) */

:root {
  --dm8-primary: #FFD700;
  --dm8-primary-dark: #D4AF37;
  --dm8-bg: #1A0A2E;
  --dm8-bg-lighter: #2D1B4E;
  --dm8-bg-card: #3D2A5F;
  --dm8-text: #F5F5F5;
  --dm8-text-muted: #C0C0C0;
  --dm8-accent: #9D4EDD;
  --dm8-success: #52D681;
  --dm8-border: #4A3570;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--dm8-bg) 0%, #0F051D 100%);
  color: var(--dm8-text);
  line-height: 1.6;
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Header Styles */
.dm8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--dm8-bg) 0%, var(--dm8-bg-lighter) 100%);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
  z-index: 1000;
  border-bottom: 2px solid var(--dm8-primary);
}

.dm8-nav {
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dm8-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm8-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--dm8-primary);
}

.dm8-site-name {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--dm8-primary), var(--dm8-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dm8-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm8-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dm8-btn-primary {
  background: linear-gradient(135deg, var(--dm8-primary) 0%, var(--dm8-primary-dark) 100%);
  color: var(--dm8-bg);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.dm8-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.dm8-btn-secondary {
  background: transparent;
  color: var(--dm8-primary);
  border: 2px solid var(--dm8-primary);
}

.dm8-btn-secondary:hover {
  background: var(--dm8-primary);
  color: var(--dm8-bg);
}

.dm8-menu-toggle {
  background: transparent;
  border: none;
  color: var(--dm8-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Mobile Navigation */
.dm8-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.dm8-nav-overlay.active {
  display: block;
}

.dm8-mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--dm8-bg-lighter) 0%, var(--dm8-bg) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-top: 80px;
  border-left: 2px solid var(--dm8-primary);
}

.dm8-mobile-nav.active {
  right: 0;
}

.dm8-mobile-nav ul {
  list-style: none;
}

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

.dm8-mobile-nav a {
  display: block;
  padding: 15px 25px;
  color: var(--dm8-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dm8-mobile-nav a:hover {
  background: var(--dm8-bg-card);
  color: var(--dm8-primary);
  padding-left: 35px;
}

.dm8-mobile-nav i {
  margin-right: 12px;
  color: var(--dm8-primary);
  width: 20px;
}

/* Container */
.dm8-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* Card Styles */
.dm8-card {
  background: linear-gradient(135deg, var(--dm8-bg-card) 0%, var(--dm8-bg-lighter) 100%);
  border-radius: 15px;
  padding: 25px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dm8-border);
  position: relative;
  overflow: hidden;
}

.dm8-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dm8-primary) 0%, var(--dm8-accent) 100%);
}

.dm8-card h2 {
  color: var(--dm8-primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.dm8-card h3 {
  color: var(--dm8-accent);
  margin: 15px 0 10px;
  font-size: 1.2rem;
}

.dm8-card p {
  margin-bottom: 12px;
  color: var(--dm8-text-muted);
  line-height: 1.7;
}

.dm8-card ul, .dm8-card ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--dm8-text-muted);
}

.dm8-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.dm8-card strong {
  color: var(--dm8-primary);
  font-weight: 600;
}

/* Game Grid */
.dm8-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.dm8-game-item {
  background: var(--dm8-bg-lighter);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dm8-game-item:hover {
  transform: translateY(-5px);
  border-color: var(--dm8-primary);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.dm8-game-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
  aspect-ratio: 1;
  object-fit: cover;
}

.dm8-game-name {
  font-size: 0.85rem;
  color: var(--dm8-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons */
.dm8-link-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--dm8-primary) 0%, var(--dm8-primary-dark) 100%);
  color: var(--dm8-bg);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 5px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.dm8-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

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

/* Table Styles */
.dm8-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: var(--dm8-bg-lighter);
  border-radius: 10px;
  overflow: hidden;
}

.dm8-table th {
  background: linear-gradient(135deg, var(--dm8-primary) 0%, var(--dm8-primary-dark) 100%);
  color: var(--dm8-bg);
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.dm8-table td {
  padding: 12px;
  border-bottom: 1px solid var(--dm8-border);
  color: var(--dm8-text-muted);
}

.dm8-table tr:last-child td {
  border-bottom: none;
}

.dm8-table tr:hover {
  background: var(--dm8-bg-card);
}

/* Footer */
.dm8-footer {
  background: linear-gradient(180deg, var(--dm8-bg-lighter) 0%, var(--dm8-bg) 100%);
  border-top: 2px solid var(--dm8-primary);
  padding: 30px 0 15px;
  margin-top: 40px;
}

.dm8-footer h3 {
  color: var(--dm8-primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.dm8-footer p {
  color: var(--dm8-text-muted);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.dm8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

.dm8-footer-link {
  color: var(--dm8-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.dm8-footer-link:hover {
  color: var(--dm8-primary);
}

.dm8-copyright {
  text-align: center;
  color: var(--dm8-text-muted);
  font-size: 0.85rem;
  padding-top: 15px;
  border-top: 1px solid var(--dm8-border);
}

/* Bottom Navigation */
.dm8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--dm8-bg) 0%, var(--dm8-bg-lighter) 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  border-top: 2px solid var(--dm8-primary);
}

.dm8-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.dm8-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dm8-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  padding: 5px;
  cursor: pointer;
}

.dm8-bottom-nav-item:hover {
  color: var(--dm8-primary);
  transform: translateY(-2px);
}

.dm8-bottom-nav-icon {
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.dm8-bottom-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Typography */
h1 {
  font-size: 1.8rem;
  color: var(--dm8-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 430px) {
  .dm8-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .dm8-container {
    padding: 15px 10px;
  }
  
  .dm8-card {
    padding: 20px 15px;
  }
}
