/* Homepage-style mobile menu (shared) */

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

.mobile-menu-toggle-home {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-toggle-home span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

/* Mobile Menu Overlay & Slide-in */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Keep above sticky headers/navs */
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--casino-green-dark, #004d23);
  /* Keep above sticky headers/navs */
  z-index: 4001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.mobile-menu-logo img {
  width: 32px;
  height: 32px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-section {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mobile-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: #1a1a3e;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: white;
  transition: background 0.2s, transform 0.2s;
  min-height: 100px;
  position: relative;
}

.mobile-menu-card:hover {
  background: #252550;
  transform: translateY(-2px);
}

.mobile-menu-card .card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.mobile-menu-card .card-text {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
}

.mobile-menu-card .card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.mobile-menu-list {
  padding: 12px 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .mobile-menu-toggle-home {
    display: block;
  }
}
