/**
 * @file
 * Base styles for the Tamia social links and Spotify player blocks.
 *
 * Icons use currentColor, so they follow the theme's link color. Override the
 * custom properties in the theme to change sizing.
 */

.tamia-social {
  --tamia-social-icon-size: 1.25rem;
  --tamia-social-gap: 0.25rem;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tamia-social-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Themes often indent list items. The flex gap handles the spacing here. */
.tamia-social__item {
  margin: 0;
  padding: 0;
}

.tamia-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px keeps each icon an easy tap target on touch screens. */
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  border-radius: 50%;
  transition: opacity 0.15s ease-in-out;
}

.tamia-social__link:hover {
  opacity: 0.7;
}

.tamia-social__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tamia-social__icon {
  width: var(--tamia-social-icon-size);
  height: var(--tamia-social-icon-size);
}

.tamia-spotify__player {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.tamia-spotify__open {
  margin-top: 0.5rem;
}

.tamia-spotify__open .tamia-social__icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

@media (prefers-reduced-motion: reduce) {
  .tamia-social__link {
    transition: none;
  }
}
