footer {
  flex-shrink: 0;
  width: 100%;
  font-size: 0.8rem;
  color: var(--footer-text);
  text-align: center;
  user-select: none;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  min-height: 120px;
  position: relative;
  z-index: 2;
}

.footer-logo-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  margin-top: -80px;
  background: transparent;
}

.footer-logo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom,
    var(--bg-color) 0%,
    var(--bg-color) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  opacity: 1;
}

.footer-logo-wrapper {
  position: relative;
  width: 240px;
  height: 60px;
  z-index: 2;
}

.footer-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-color-scheme: dark) {
  .footer-logo-wrapper img {
    content: url('../jorobean_logoalt.webp');
  }
  .footer-logo-section::before {
    background: linear-gradient(to bottom,
      #0a0a0a 0%,
      #0a0a0a 30%,
      rgba(10, 10, 10, 0) 100%
    );
  }
}

@media (prefers-color-scheme: light) {
  .footer-logo-section::before {
    background: linear-gradient(to bottom,
      #e1e1e1 0%,
      #e1e1e1 30%,
      rgba(225, 225, 225, 0) 100%
    );
  }
}

.footer-logo {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.footer-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--bg-color));
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .footer-logo::after {
    background: linear-gradient(to bottom, transparent, var(--bg-color, #000));
  }
}

@media (prefers-color-scheme: light) {
  .footer-logo::after {
    background: linear-gradient(to bottom, transparent, var(--bg-color, #fff));
  }
}

.footer-nav {
  margin: 16px 0;
  font-size: 0.8rem;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a {
  color: var(--footer-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-separator {
  color: var(--footer-text);
  opacity: 0.7;
}

#copyright {
  font-size: 0.8rem;
  color: var(--footer-text);
  opacity: 0.9;
}

@media (max-width: 600px) {
  footer {
    padding: 12px 0;
    min-height: 100px;
  }
  
  .footer-nav {
    margin: 12px 0;
    font-size: 0.7rem;
  }
  
  #copyright {
    font-size: 0.7rem;
  }
}
