/* Site-wide Footer Styles */
.site-footer {
  background: var(--bg-secondary, #1a1a2e);
  border-top: 1px solid var(--accent-color, #00d4ff);
  color: var(--text-primary, #e0e0e0);
  padding: 1rem 0;
  margin-top: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #b0b0b0);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-right a {
  color: var(--text-primary, #e0e0e0);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-right a:hover {
  color: var(--accent-color, #00d4ff);
  background: rgba(0, 212, 255, 0.1);
}

.footer-right a:focus {
  outline: 2px solid var(--accent-color, #00d4ff);
  outline-offset: 2px;
  background: rgba(0, 212, 255, 0.1);
}

/* Fixed overlay variant */
.site-footer.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-right {
    gap: 1rem;
  }
  
  .footer-right a {
    padding: 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-right {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .footer-right a {
    width: 100%;
    max-width: 200px;
  }
}

/* Ensure body has proper layout for footer positioning */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Game content should not be affected by footer */
.game-container,
.main-content {
  flex: 1;
}

/* When fixed footer is active, add bottom padding to prevent overlap */
body.has-fixed-footer {
  padding-bottom: 80px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .site-footer {
    border-top: 2px solid;
    background: #000;
  }
  
  .footer-right a:focus {
    outline: 3px solid;
  }
}