/* Страница автора */
.author-page {
  padding: 48px 0;
  background-color: var(--grey-light);
  /* min-height: calc(100vh - 200px); */
}

.author-page__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.author-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
}

.author-page__avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: auto;
  flex-shrink: 0;
}

.author-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-page__avatar--placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 400;
  color: var(--white);
  border-radius: 50%;
}

.author-page__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.author-page__contact svg {
  flex-shrink: 0;
}

.author-page__contact a {
  color: var(--text);
  text-decoration: none;
}

.author-page__contact a:hover {
  color: var(--primary);
}

.author-page__city {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.author-page__workplace {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.author-page__socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-page__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.author-page__social-link:hover {
  opacity: 0.7;
}

.author-page__social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-page__content {
  display: flex;
  flex-direction: column;
}

.author-page__content.white-bg {
  padding: 40px;
  overflow: hidden;
}
.author-page__info {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}
.author-page__header {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--grey-light);
}

.author-page__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.author-page__header-info {
  flex: 1;
}

.author-page__name {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.275em;
  color: var(--text);
}

.author-page__position {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

.author-page__rating {
  flex-shrink: 0;
}

.author-page__rating-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  margin-bottom: 6px;
}
.author-page__rating-stars {
  font-size: 14px;
  font-weight: 600;
}
.author-page__rating-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.author-page__rating-votes {
  font-size: 12px;
}
.author-page__rating-value svg {
  flex-shrink: 0;
}

.author-page__block {
  padding: 24px 0;
  border-bottom: 1px solid var(--grey-light);
}

.author-page__content > .author-page__block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.author-page__block h2 {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .author-page__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .author-page__sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
  }
  .author-page__content.white-bg {
    padding: 15px;
  }
  .author-page__avatar {
    width: 150px;
    height: 150px;
    margin-right: 16px;
  }
  .author-page__block {
    padding: 15px 0;
  }
}
@media (max-width: 768px) {
  .author-page__header-top {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 13px;
  }
  .author-page__rating-title {
    margin-bottom: 0;
  }
  .author-page__rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .author-page__block h2 {
    margin-bottom: 12px;
  }
  .author-page__position {
    font-size: 12px;
  }
  .author-page__name {
    font-size: 20px;
  }
  .author-page__avatar {
    width: 120px;
    height: 120px;
  }
  .author-page__social-link {
    width: 30px;
    height: 30px;
  }
  .author-page {
    padding: 0;
  }
}

/* Вкладки постов автора */
.author-posts-tabs {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--grey-light);
}



.author-posts-tabs__tab {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.author-posts-tabs__tab:hover {
  color: var(--text);
}

.author-posts-tabs__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.author-posts-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--grey);
  font-size: 16px;
}

@media (max-width: 768px) {
  .author-posts-tabs__tab {
    padding: 12px 16px;
    font-size: 14px;
  }
}
