/* Custom Styles for Maple Win Zone Canada */

/* Color Variables */
:root {
  --color-dark-primary: #0a0e14;
  --color-dark-secondary: #141921;
  --color-accent-green: #22d3a0;
  --color-accent-green-dark: #1ba87a;
  --color-glass-bg: rgba(20, 25, 33, 0.7);
  --color-glass-border: rgba(34, 211, 160, 0.2);
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-dark-primary);
  background-image: radial-gradient(at 0% 0%, rgba(34, 211, 160, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(34, 211, 160, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(34, 211, 160, 0.03) 0px, transparent 70%);
}

.bg-dark-primary {
  background-color: var(--color-dark-primary);
}

.bg-dark-secondary {
  background-color: var(--color-dark-secondary);
}

.text-accent-green {
  color: var(--color-accent-green);
}

/* Decorative Background Elements */
.page-decoration {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.decoration-1 {
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 160, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.decoration-2 {
  bottom: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 160, 0.06) 0%, transparent 70%);
  filter: blur(50px);
}

.decoration-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 160, 0.04) 0%, transparent 70%);
  filter: blur(80px);
}

/* Glass Morphism Effects */
.glass-header {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 160, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-panel-hero {
  background: rgba(20, 25, 33, 0.85);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(34, 211, 160, 0.3);
  box-shadow: 0 20px 60px rgba(34, 211, 160, 0.1);
}

.glass-card {
  background: rgba(20, 25, 33, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(34, 211, 160, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 160, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  border-color: rgba(34, 211, 160, 0.4);
  box-shadow: 0 12px 40px rgba(34, 211, 160, 0.15);
  transform: translateY(-4px);
}

.glass-footer {
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(34, 211, 160, 0.1);
  position: relative;
}

/* Responsible lottery use logos */
.responsible-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 211, 160, 0.25);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.responsible-card::before {
  display: none;
}

.responsible-logo {
  height: 2.75rem;
  width: 100%;
  object-fit: contain;
  filter: saturate(1.1) contrast(1.05);
}

/* Buttons */
.btn-primary {
  background: var(--color-accent-green);
  color: #0a0e14;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: var(--color-accent-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 211, 160, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 211, 160, 0.5);
}

.btn-accent {
  background: transparent;
  color: var(--color-accent-green);
  font-weight: 600;
  border: 2px solid var(--color-accent-green);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: var(--color-accent-green);
  color: #0a0e14;
}

/* Navigation */
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-green);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-green);
}

/* Forms */
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent-green);
  box-shadow: 0 0 0 3px rgba(34, 211, 160, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
}

.hero-bg-decoration {
  position: absolute;
  top: 10%;
  right: 0;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(34, 211, 160, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Popups */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.popup-content {
  animation: slideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Number Selection Buttons */
.number-btn {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.number-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 211, 160, 0.3);
}

.number-btn.selected {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: #0a0e14;
  transform: scale(0.95);
}

/* Notification Styles */
.notification {
  background: var(--color-glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s ease-out;
  min-width: 300px;
  position: relative;
  z-index: 60;
}

/* Notification container sits above overlays */
#notificationContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 80;
  pointer-events: none;
}

#notificationContainer .notification {
  pointer-events: auto;
}

.notification.success {
  border-left: 4px solid var(--color-accent-green);
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.info {
  border-left: 4px solid #3b82f6;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Dashboard Stats Cards */
.stat-card {
  background: linear-gradient(135deg, rgba(34, 211, 160, 0.1) 0%, rgba(20, 25, 33, 0.8) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(34, 211, 160, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(34, 211, 160, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(34, 211, 160, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 160, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 160, 0.5);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--color-accent-green);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
