/* Modern Footer Styles */
.site-footer {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand-accent) 15%, transparent), color-mix(in oklab, var(--brand-accent) 25%, transparent));
  border-top: 1px solid color-mix(in oklab, var(--brand-fg) 10%, transparent);
  padding: 48px 0 32px;
  margin-top: 80px;
  color: var(--brand-fg);
}

/* Note: Also add these styles to your main page_home_v2.css file */

.footer-section {
  padding: 0 16px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--brand-fg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: color-mix(in oklab, var(--brand-fg) 70%, transparent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.dmca-badge img {
  max-width: 120px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.dmca-badge:hover img {
  opacity: 1;
}

.footer-description {
  color: color-mix(in oklab, var(--brand-fg) 80%, transparent);
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-bg);
  border: 1px solid color-mix(in oklab, var(--brand-fg) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-fg);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.copyright {
  color: color-mix(in oklab, var(--brand-fg) 60%, transparent);
  font-size: 0.9rem;
  margin-top: 16px;
}

.disclaimer-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--brand-fg) 70%, transparent);
  margin-bottom: 12px;
}

.gamble-aware-badge {
  margin-top: 20px;
  text-align: center;
}

.gamble-aware-badge img {
  max-width: 160px;
  height: auto;
}

/* Exit Intent Popup */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  animation: fadeIn 0.3s ease;
}

.exit-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.exit-popup-content {
  position: relative;
  background: var(--brand-bg);
  border-radius: 24px;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--brand-fg) 10%, transparent);
  border: none;
  color: var(--brand-fg);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.exit-popup-close:hover {
  background: var(--brand-danger);
  color: white;
  transform: rotate(90deg);
}

.popup-header {
  background: linear-gradient(135deg, var(--brand-accent), color-mix(in oklab, var(--brand-accent) 80%, black));
  padding: 40px 32px;
  text-align: center;
  border-radius: 24px 24px 0 0;
  color: white;
}

.popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: bounce 2s infinite;
}

.popup-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.popup-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.popup-body {
  padding: 32px;
}

.popup-description {
  text-align: center;
  color: color-mix(in oklab, var(--brand-fg) 80%, transparent);
  margin-bottom: 24px;
  font-size: 1rem;
}

.popup-form {
  margin-bottom: 20px;
}

.popup-input-group {
  display: flex;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.popup-input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--brand-accent);
  border-right: none;
  background: var(--input-bg);
  color: var(--input-fg);
  font-size: 1rem;
  outline: none;
  border-radius: 999px 0 0 999px;
}

.popup-input:focus {
  background: var(--input-bg);
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}

.popup-submit {
  padding: 16px 32px;
  background: var(--brand-danger);
  color: white;
  border: 2px solid var(--brand-danger);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 0 999px 999px 0;
}

.popup-submit:hover {
  background: color-mix(in oklab, var(--brand-danger) 85%, black);
  transform: translateX(2px);
}

.popup-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: color-mix(in oklab, var(--brand-fg) 60%, transparent);
  margin: 0;
}

.popup-privacy a {
  color: var(--brand-accent);
  text-decoration: none;
}

.popup-privacy a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
	transform: translateY(50px);
	opacity: 0;
  }
  to {
	transform: translateY(0);
	opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .site-footer {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand-bg) 95%, white), color-mix(in oklab, var(--brand-bg) 90%, white));
  border-top-color: color-mix(in oklab, var(--brand-fg) 15%, transparent);
}

[data-bs-theme="dark"] .social-link {
  background: color-mix(in oklab, var(--brand-bg) 95%, white);
  border-color: color-mix(in oklab, var(--brand-fg) 20%, transparent);
}

[data-bs-theme="dark"] .exit-popup-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
	padding: 32px 0 24px;
  }
  
  .footer-section {
	margin-bottom: 32px;
	text-align: center;
  }
  
  .social-links {
	justify-content: center;
  }
  
  .popup-title {
	font-size: 1.5rem;
  }
  
  .popup-subtitle {
	font-size: 1.1rem;
  }
  
  .popup-input-group {
	flex-direction: column;
	border-radius: 12px;
  }
  
  .popup-input {
	border-radius: 12px 12px 0 0;
	border-right: 2px solid var(--brand-accent);
	border-bottom: none;
  }
  
  .popup-submit {
	border-radius: 0 0 12px 12px;
	width: 100%;
  }
}