/* News feed — restyled, keeps JS class names */

.news-page {
  padding: calc(var(--header-height) + 2rem) clamp(1rem, 4vw, 2rem) var(--section-pad);
  max-width: 680px;
  margin: 0 auto;
}

.news-page__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-page__header .headline {
  margin-bottom: 0.5rem;
}

.news-page__header p {
  color: var(--color-text-secondary);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.news-tags__link {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.news-tags__link:hover,
.news-tags__link.is-active {
  color: var(--color-accent);
}

.news-tags__link.is-active {
  font-weight: 600;
}

.post-page__back {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.post-page__back a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.post-page__back a:hover {
  color: var(--color-accent);
}

.post-page__article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.post-page__loading,
.post-page .error-message {
  text-align: center;
  color: var(--color-text-secondary);
}

.title-new-post a,
.title-post a {
  color: inherit;
  text-decoration: none;
}

.title-new-post a:hover,
.title-post a:hover {
  color: var(--color-accent);
}

/* Featured post */

.new-post {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.header-new-post {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar-cycle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform var(--duration-fast);
}

.avatar-cycle:hover {
  transform: scale(1.05);
}

.avatar-photo,
.author-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-new-post {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.subtitle-new-post {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.content-new-post,
.content-post {
  padding: 0 1.5rem 1.5rem;
}

.text-new-post,
.text-post {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-text-primary);
}

.line-new-post,
.line-post {
  margin-bottom: 1rem;
}

.line-new-post:last-child,
.line-post:last-child {
  margin-bottom: 0;
}

.bottom-new-post,
.bottom-post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.hashtag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.hashtag:hover {
  text-decoration: underline;
}

.time-post {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  flex: 1;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-gray);
  transition: background var(--duration-fast);
}

.btn-share:hover {
  background: #e8e8ed;
}

.icon-btn-share {
  width: 14px;
  height: 14px;
}

.label-share {
  font-size: 0.8125rem;
}

.btn-supports {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-gray);
}

.btn-supports--active {
  background: rgba(247, 49, 49, 0.1);
  color: var(--color-accent);
}

.label-supports {
  font-size: 0.8125rem;
}

/* Common posts */

.post {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
}

.header-post {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 0;
}

.header-author {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.title-post {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.subtitle-post {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0.125rem;
}

.picture {
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.picture img {
  width: 100%;
}

.description-picture {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 0.5rem;
  text-align: center;
}

.separator-new-post {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

.separator-new-post.hidden {
  display: none;
}

.label-new {
  display: none;
}

/* Author page */

.author-page {
  padding: calc(var(--header-height) + 2rem) clamp(1rem, 4vw, 2rem) var(--section-pad);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.author-page__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.author-page__name {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.author-page__role {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0.25rem 0 1.5rem;
}

.author-page__bio {
  text-align: left;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.author-page__bio p {
  margin-bottom: 1rem;
}
