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

.footer {
  background-color: var(--color-background-muted);
  margin-top: auto; // Push footer to bottom if using flexbox layout

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

  &__separator {
    height: 1px;
    background-color: var(--color-border);
    margin-bottom: 2rem;
  }

  &__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-muted);
    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-text);
      background-color: var(--color-background-hover);
    }

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

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

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

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

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

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

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

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