/* src/styles/footer.css */

/* SiteFooter Styles */
.site-footer {
  position: relative;
  background: linear-gradient(180deg,
    rgba(37, 37, 37, 0.75) 0%,
    rgba(21, 21, 21, 0.6) 45%,
    rgba(10, 10, 10, 0.4) 100%);
  padding: 20px 20px 12px 20px;
  border-radius: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
  flex-wrap: wrap;
  overflow: hidden;
  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
  max-width: 100%;
  box-sizing: border-box;
}

/* Glossy shine effect on top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  right: 6px;
  height: 35%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0.08) 70%,
    transparent 100%);
  border-radius: 12px 12px 50% 50%;
  pointer-events: none;
  z-index: 1;
}

/* Subtle bottom reflection */
.site-footer::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

/* Separator between rows when on same line (desktop only) */
.footer-row-1::after {
  content: '|';
  color: #888;
  margin-right: 20px;
  display: none;
}

/* Show separator only on desktop */
@media (min-width: 769px) {
  .footer-row-1::after {
    display: inline;
  }
}

.footer-link {
  color: #66b3ff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
  contain: layout style;
  position: relative;
}

.footer-link svg {
  color: #ffffff;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.footer-link:hover::after {
  opacity: 1;
}

.separator {
  color: #888;
  font-size: 1em;
}

.footer-link.active {
  color: #66b3ff;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(102, 179, 255, 0.6);
}

/* Admin footer row - above blue links */
.footer-row-admin {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(142, 192, 124, 0.25);
  width: 100%;
  justify-content: center;
}

.admin-link {
  color: #8ec07c;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 2px rgba(142, 192, 124, 0.1);
  contain: layout style;
  display: inline-block;
  position: relative;
}

.admin-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-link:hover {
  color: #b8e49c;
  text-shadow: 0 0 8px rgba(142, 192, 124, 0.6);
}

.admin-link:hover::after {
  opacity: 0.5;
}

.admin-link.active {
  color: #8ec07c;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(142, 192, 124, 0.5);
}

.admin-sep {
  color: rgba(142, 192, 124, 0.5);
}

/* Version display - outside footer */
.version-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  font-size: 0.7em;
  gap: 0;
  flex-wrap: nowrap;
}

.version-label {
  color: #999;
  white-space: nowrap;
}

.version-number {
  color: #fff;
  font-weight: 600;
  margin: 0 4px;
  white-space: nowrap;
}

.dreamiverse-glow {
  color: #fff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 1),
    0 0 2px rgba(255, 200, 50, 0.9),
    0 0 3px rgba(255, 150, 0, 0.7),
    0 0 4px rgba(255, 100, 0, 0.5),
    0 0 12px rgba(255, 255, 255, 0.3);
}

/* Media Queries for SiteFooter */
@media (max-width: 768px) {
  .site-footer {
    padding: 15px 10px;
    gap: 10px;
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
  }

  .footer-row {
    gap: 15px;
  }

  .footer-link,
  .separator {
    font-size: 0.9em;
  }
}

/* Mobile adjustments for admin links */
@media (max-width: 768px) {
  .footer-row-admin {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .admin-link {
    font-size: 0.85em;
  }

  .admin-sep {
    display: none;
  }
}

/* Smaller font on very narrow screens */
@media (max-width: 420px) {
  .footer-row {
    gap: 10px;
  }

  .footer-link,
  .separator {
    font-size: 0.8em;
  }

  .admin-link {
    font-size: 0.7em;
  }

  .footer-row-admin {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 4px;
  }
}
