/* css/contact.css
   Styles for footer contact links and floating contact button.
   Updated for better mobile layout (compact icons and FAB positioning).
*/

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.4rem;
}
.footer-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* Contact link buttons (desktop) */
.contact-links .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  text-decoration: none;
  transition: background .15s, transform .12s;
  font-size: 0.92rem;
}
.contact-links .contact-item:hover {
  background: rgba(79,163,255,0.12);
  transform: translateY(-2px);
  color: var(--fg);
}
.contact-links .contact-text { opacity: 0.95; }

/* Floating contact FAB */
.contact-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1200;
}
.contact-fab a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(79,163,255,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.contact-fab a:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79,163,255,0.24); }

/* Small screens: move FAB and compact footer */
@media (max-width: 700px) {
  /* footer becomes stacked to avoid cramped layout */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.9rem 0.9rem;
  }
  .footer-right {
    margin-top: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  /* Make contact items compact and hide long text on mobile */
  .contact-links .contact-item {
    padding: 0.25rem 0.45rem;
    font-size: 0.85rem;
    gap: 0.45rem;
  }
  .contact-links .contact-text {
    display: none; /* show icons only on mobile to conserve space */
  }

  /* Ensure icons remain accessible (increase SVG size slightly) */
  .contact-links .contact-item svg {
    width: 18px;
    height: 18px;
  }

  /* Move FAB inward and up a bit so it doesn't overlap bottom nav / footer */
  .contact-fab {
    right: 12px;
    bottom: 14px;
    gap: 10px;
  }
  .contact-fab a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
  }
}

/* Very small screens: keep spacing tighter */
@media (max-width: 420px) {
  .footer-inner { padding: 0.8rem 0.8rem; }
  .contact-fab { right: 10px; bottom: 10px; }
  .contact-fab a { width: 40px; height: 40px; }
}

/* Ensure footer contact looks OK in light mode */
[data-theme="light"] .contact-links .contact-item {
  background: #f4f6f9;
  color: #0f1720;
}