@use '../mixins';
@use '../variables';

.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;

  &__container {
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;
  }

  &__separator {
    display: none; // border-top on .footer replaces this
  }

  &__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  &__bottom-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  &__links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
  }

  &__link {
    color: var(--color-text);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;

    &:hover {
      color: var(--color-primary);
      text-decoration: underline;
    }

    &:focus {
      outline: 2px solid var(--color-focus-ring);
      outline-offset: 2px;
    }
  }

  &__copyright {
    color: var(--color-text);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
    opacity: 0.7;
  }

  &__social {
    display: flex;
    gap: 1rem;
  }

  &__social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;

    &:hover {
      background-color: var(--color-primary);
      color: var(--color-text-on-dark);
      border-color: var(--color-primary);
      transform: translateY(-1px);
    }

    &:focus {
      outline: 2px solid var(--color-focus-ring);
      outline-offset: 2px;
    }

    &:active {
      transform: translateY(0);
    }
  }

  &__social-icon {
    width: 1rem;
    height: 1rem;
  }
}
