/* Import Outfit font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* CSS Custom Properties (needed for footer) */
:root {
  --primary-gold: #d4af37;
  --dark-gold: #b8941f;
  --light-gold: #f4c430;
  --bg-dark: #000;
  --text-light: #fff;
  --text-muted: #ccc;
  --text-dark: #888;
  --border-color: #333;
}

/* Base styles with Outfit font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* Test page specific styles */
.test-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.test-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #333;
}

h1 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

h2 {
  color: var(--light-gold);
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.scroll-demo {
  height: 150vh;
  background: linear-gradient(180deg, transparent, #1a1a1a);
  margin-top: 3rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-align: center;
}

.footer-test-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.test-button {
  background: var(--primary-gold);
  color: var(--bg-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
}

.test-button:hover {
  background: var(--light-gold);
  transform: translateY(-2px);
}

/* DESKTOP FOOTER - FIXED: Added max-width and centering */
.footer {
  background: #111;
  padding: 2.2rem 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(10px);
  width: 100%;
}

.footer.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer p {
  color: var(--text-dark);
  margin: 0;
  transition: color 0.3s ease;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.footer:hover p {
  color: var(--text-muted);
}

.footer.enhanced {
  background: linear-gradient(135deg, #444, #000);
  position: relative;
  overflow: hidden;
}

.footer.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE FOOTER - FIXED: Improved spacing and overlap prevention */
.mobile-footer {
  display: none;
  opacity: 0;
  transition: all 0.5s ease;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1rem; /* FIX: Increased top/bottom padding */
  position: fixed;
  bottom: 0;
  left: 0; /* FIX: Explicit left positioning */
  right: 0; /* FIX: Explicit right positioning */
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000; /* FIX: Increased z-index to ensure it's on top */
  transform: translateY(100%);
  border-top: 1px solid var(--border-color);
  min-height: 60px; /* FIX: Added minimum height for consistency */
  box-sizing: border-box;
}

.mobile-footer.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-footer img,
.mobile-footer .social-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: brightness(0.8);
  flex-shrink: 0; /* FIX: Prevent icons from shrinking */
}

.mobile-footer img:hover,
.mobile-footer .social-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.mobile-footer .social-link {
  text-decoration: none;
  display: inline-block;
  /* FIX: Ensure proper spacing between links */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mobile-footer {
    display: none; /* Will be shown via JavaScript when needed */
  }
  
  body.mobile-footer-enabled {
    padding-bottom: 70px; /* FIX: Add bottom padding to prevent content overlap */
  }
  
  /* FIX: Ensure main content doesn't get hidden behind mobile footer */
  .test-content {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .mobile-footer {
    display: none !important;
  }
}

/* LOADING ANIMATION */
.loading {
  opacity: 0.7;
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  .footer {
    border: 2px solid var(--primary-gold);
  }
  
  .test-button {
    border: 2px solid var(--bg-dark);
  }
}

/* ===============================================
   MOBILE FOOTER WECHAT SUPPORT - Add to footer12.css
   =============================================== */

/* WeChat icon styling for mobile footer (inherits mobile footer icon styles) */
.mobile-footer img[data-social="wechat"],
.mobile-footer .social-icon[data-social="wechat"] {
  /* Inherits all existing mobile footer icon styles */
  /* width: 28px; height: 28px; etc. from existing .mobile-footer img rules */
}

/* WeChat Modal for Mobile Footer Context */
/* Note: The modal CSS should be the same as header, but adding mobile-specific overrides */

/* Ensure WeChat modal works properly on mobile when triggered from footer */
@media (max-width: 768px) {
  /* WeChat modal triggered from mobile footer should account for footer height */
  .mobile-footer-enabled .wechat-modal .modal-content {
    margin-bottom: 70px; /* Account for mobile footer height */
    max-height: calc(90vh - 70px); /* Adjust max height */
  }
  
  /* Ensure modal doesn't get hidden behind mobile footer */
  .wechat-modal {
    z-index: 10001; /* Higher than mobile footer z-index: 1000 */
  }
}

/* WeChat icon hover effects for mobile footer */
.mobile-footer img[data-social="wechat"]:hover,
.mobile-footer .social-icon[data-social="wechat"]:hover {
  /* Inherits existing mobile footer hover styles */
  /* transform: scale(1.2); filter: brightness(1.2); */
}