/* ============================================
   Shared Footer Styles - Modern Design
   ============================================ */

.footer {
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9em;
}

/* Gradient divider line */
.footer-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cat-legendary) 20%,
    var(--cat-epic) 50%,
    var(--cat-legendary) 80%,
    transparent 100%
  );
  opacity: 0.6;
  margin-bottom: 24px;
}

/* Main content container */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

/* Link styles */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--cat-legendary);
  transform: translateY(-2px);
}

.footer-link:focus-visible {
  outline: 2px solid var(--cat-legendary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* SVG icons */
.footer-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-link:hover svg {
  transform: scale(1.15);
}

/* External link indicator */
.footer-link--external {
  position: relative;
}

.footer-link--external::after {
  content: "\2197";
  font-size: 0.7em;
  opacity: 0;
  margin-left: 2px;
  transition: opacity 0.2s ease;
}

.footer-link--external:hover::after {
  opacity: 0.7;
}

/* Brand section */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.footer-brand-name {
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* ============================================
   Desktop Layout (600px+)
   ============================================ */

@media (min-width: 601px) {
  .footer-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .footer-brand {
    flex-direction: row;
    gap: 8px;
    margin-top: 0;
  }

  .footer-brand-name::after {
    content: "\00B7";
    margin-left: 8px;
    color: var(--text-muted);
  }
}

/* ============================================
   Light Theme Adjustments
   ============================================ */

[data-theme="light"] .footer-divider {
  opacity: 0.7;
}

[data-theme="light"] .footer-link:hover {
  color: var(--cat-epic);
}
