/* static/css/footer.css */
/* Styles for the new floating footer */

.floating-footer-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1050;
  direction: ltr; /* This UI element is LTR */
}

.fab-main-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.floating-footer-fab:hover .fab-main-icon {
  transform: rotate(360deg);
  box-shadow: 0 6px 20px rgba(102, 166, 255, 0.4);
}

.fab-links {
  position: absolute;
  bottom: 100%; /* Position links above the button */
  left: 0;
  margin-bottom: 1rem; /* Space from main button */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  
  /* Hidden by default */
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.floating-footer-fab:hover .fab-links {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.fab-link, .fab-version {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #2a3347;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
}
.fab-version {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fab-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Tooltip text */
.fab-link::before,
.fab-version::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 110%; /* To the right of the icon */
  top: 50%;
  transform: translateY(-50%);
  background-color: #1f2937;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.floating-footer-fab:hover .fab-link:hover::before,
.floating-footer-fab:hover .fab-version:hover::before {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.2s; /* Show tooltip after a short delay */
}
