/**
 * Author Profile Page Styles
 * /authors/:slug/index.html
 */

/* Author Page Container */
.authors-page {
  padding: 40px 0;
}

/* Author Header Section */
.author-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 3px solid #0b0c0c;
}

/* Author Avatar */
.author-avatar {
  flex-shrink: 0;
}

.author-avatar__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0b0c0c;
}

/* Author Info */
.author-info {
  flex: 1;
}

/* Author Name - Anton Font */
.author-name {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 15px 0;
  color: #0b0c0c;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Author Bio */
.author-bio {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  margin: 0 0 15px 0;
  color: #0b0c0c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 40.0625em) {
  .author-bio {
    font-size: 19px;
    margin-bottom: 20px;
  }
}

.author-bio p {
  margin: 0;
}

/* Author Stats */
.author-stats {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: #505a5f;
  margin: 0 0 5px 0;
}

@media (min-width: 40.0625em) {
  .author-stats {
    font-size: 19px;
  }
}

.author-stats strong {
  color: #0b0c0c;
  font-weight: 700;
}

/* Articles Section */
.author-articles {
  margin-top: 30px;
}

@media (min-width: 40.0625em) {
  .author-articles {
    margin-top: 40px;
  }
}

.articles-heading {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.09375;
  margin: 0 0 20px 0;
  color: #0b0c0c;
}

@media (min-width: 40.0625em) {
  .articles-heading {
    font-size: 36px;
    margin-bottom: 30px;
  }
}

/* Articles List - Spaced List Style (GOV.UK inspired) */
.articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.625;
  color: #0b0c0c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.article-item {
  margin-bottom: 0;
  padding: 0;
}

.article-item > article {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #b1b4b6;
}

.article-item:first-child > article {
  padding-top: 0;
}

.article-item:last-child > article {
  border-bottom: none;
  padding-bottom: 0;
}

/* Responsive spacing for spaced list */
@media (min-width: 40.0625em) {
  .article-item > article {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

/* Article Title */
.article-title {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3157894737;
  margin: 0 0 5px 0;
}

@media (min-width: 40.0625em) {
  .article-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
  }
}

.article-title a {
  color: #1d70b8;
  text-decoration: underline;
  text-decoration-thickness: max(1px, .0625rem);
  text-underline-offset: .1578em;
}

.article-title a:hover {
  text-decoration-thickness: max(3px, .1875rem, .12em);
  text-decoration-skip-ink: none;
  text-decoration-skip: none;
  color: #003078;
}

.article-title a:focus {
  outline: 3px solid transparent;
  background-color: #ffdd00;
  box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
  text-decoration: none;
  color: #0b0c0c;
}

/* Article Meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  color: #505a5f;
}

@media (min-width: 40.0625em) {
  .article-meta {
    font-size: 19px;
    margin-bottom: 15px;
  }
}

.article-date {
  font-weight: 400;
  color: #505a5f;
}

.category-separator {
  color: #b1b4b6;
}

.article-category .dp-tag {
  font-size: 14px;
  padding: 4px 8px;
}

/* Article Excerpt */
.article-excerpt {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  margin: 0 0 10px 0;
  color: #0b0c0c;
}

@media (min-width: 40.0625em) {
  .article-excerpt {
    font-size: 19px;
    margin-bottom: 15px;
  }
}

.article-excerpt p {
  margin: 0;
}

/* Read More Link */
.article-read-more {
  display: inline-block;
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1d70b8;
  text-decoration: underline;
  text-decoration-thickness: max(1px, .0625rem);
  text-underline-offset: .1578em;
}

@media (min-width: 40.0625em) {
  .article-read-more {
    font-size: 19px;
  }
}

.article-read-more:hover {
  text-decoration-thickness: max(3px, .1875rem, .12em);
  text-decoration-skip-ink: none;
  text-decoration-skip: none;
  color: #003078;
}

.article-read-more:focus {
  outline: 3px solid transparent;
  background-color: #ffdd00;
  box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
  text-decoration: none;
  color: #0b0c0c;
}

/* No Articles Message */
.no-articles {
  text-align: center;
  padding: 40px 20px;
  background-color: #f3f2f1;
  margin-top: 30px;
}

@media (min-width: 40.0625em) {
  .no-articles {
    padding: 60px 20px;
    margin-top: 40px;
  }
}

.no-articles p {
  font-family: Roboto, 'Roboto Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: #505a5f;
  margin: 0;
}

@media (min-width: 40.0625em) {
  .no-articles p {
    font-size: 19px;
  }
}

/* Responsive Design - Mobile adjustments */
@media (max-width: 40em) {
  .author-header {
    flex-direction: column;
    gap: 20px;
  }

  .author-avatar__image {
    width: 80px;
    height: 80px;
  }

  .author-name {
    font-size: 32px;
  }
}
