/* === Стили для страницы списка профилей (Profiles List) === */

/* Эти стили нужны, чтобы прижать стрелки навигации к низу контейнера */
.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 20px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  color: var(--common-text-color);
  font-size: 0.9375rem;
  border-radius: var(--border-radius-small);
  transition: background-color 0.2s ease-in-out;
}

.profile-item:hover {
  background-color: var(--common-third-color-bg);
}

.profile-item-icon {
  width: 32px;
  height: 32px;
  background-color: var(--profile-item-icon-bg);
  border-radius: var(--border-radius-icon);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profiles-counter {
  background-color: var(--common-third-color-bg);
  color: var(--link-text-color);
  border-radius: 5px;
  border: none;
  padding: 5px 10px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
}

.left-arrow,
.right-arrow {
  width: 30px;
  height: 30px;
  fill: var(--link-text-color);
  stroke: var(--link-text-color);
  transition:
    fill 0.2s ease-in-out,
    stroke 0.2s ease-in-out;
}

.left-arrow:hover,
.right-arrow:hover {
  fill: var(--link-hover-text-color);
  stroke: var(--link-hover-text-color);
}

.arrows-container {
  display: flex;
  justify-content: space-between;
}

/* === Адаптивность для СТРАНИЦЫ СПИСКА ПРОФИЛЕЙ === */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .profile-item {
    gap: 10px;
    font-size: 0.875rem;
  }

  .profile-item-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}