/* ==========================================================================
   AUTHOR PAGE STYLES
   ========================================================================== */

/* Author Card Container - Uses same 4-column grid as Popular/New sections */
.author-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Same 4-column grid as .f32-row */
  gap: 24px; /* Same gap as .f32-row */
  margin-bottom: 61px;
  width: 100%;
  align-items: stretch; /* Both children stretch to same height */
}

/* Author Info Section - Spans 3 columns (same as Popular) */
.author-info {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  width: 100%;
}

/* Author Image - Spans 1 column (same as New), 1:1 aspect ratio */
.author-image {
  grid-column: span 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: start; /* Prevent being stretched by grid */
  overflow: hidden;
  background: #FFFFFF;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.author-info-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  height: auto;
}

/* Author Name - 96px font */
.author-name {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 96px;
  line-height: 131px;
  letter-spacing: -0.07em;
  color: #092040;
  margin: 0;
}

/* Author Bio - 24px font */
.author-bio {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  color: #051327;
}

.author-info-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Author Actions Row - Email left, Get Notified right */
.author-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 24px;
}

/* Push notify button to right when email is missing */
.author-notify-btn {
  margin-left: auto;
}

/* Email Link - Left side */
.author-email {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.author-email svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.author-email span {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  text-decoration-line: underline;
  color: #051327;
}

/* Get Notified Button - Right side */
.author-notify-btn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.author-notify-btn span {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0.02em;
  color: #F50002;
}

.author-notify-btn svg {
  width: 23px;
  height: 23px;
}

/* Author Separator Line - Aligned with image bottom */
.author-separator {
  width: 100%;
  height: 0;
  border: 0.5px solid #6289B5;
}



/* No articles message */
.no-articles {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #6289B5;
  text-align: center;
  padding: 40px;
}

/* ==========================================================================
   MOBILE STYLES
   ========================================================================== */

.author-card.mobile {
  flex-direction: column;
  gap: 48px;
  height: auto;
}

.author-card.mobile .author-info {
  width: 100%;
  max-width: 100%;
  height: auto;
  gap: 24px;
}

.author-card.mobile .author-info-top {
  width: 100%;
}

.author-card.mobile .author-name {
  width: 100%;
  font-size: 42px;
  line-height: 57px;
  height: auto;
}

.author-card.mobile .author-bio {
  width: 100%;
  font-size: 16px;
}

.author-card.mobile .author-info-bottom {
  width: 100%;
}

.author-card.mobile .author-actions {
  width: 100%;
}

.author-card.mobile .author-email span {
  font-size: 14px;
}

.author-card.mobile .author-email svg {
  width: 16px;
  height: 16px;
}

.author-card.mobile .author-notify-btn span {
  font-size: 16px;
}

.author-card.mobile .author-separator {
  width: 100%;
}

.author-card.mobile .author-image {
  width: 100%;
  height: 319px;
}

/* Mobile Tab Switcher */
.author-tabs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.author-tab {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 33px;
  letter-spacing: -0.07em;
  color: #051327;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.author-tab.active {
  color: #F50002;
}

.author-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #F50002;
}

/* Mobile Article List */
.mobile-article-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Mobile Ad Banner */
.ad-banner.mobile {
  margin-top: 70px;
  margin-bottom: 70px;
  height: 172px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1400px) {
  .author-info,
  .author-info-top,
  .author-info-bottom,
  .author-actions,
  .author-separator {
    width: 100%;
    max-width: 900px;
  }
  
  .author-name,
  .author-bio {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .author-name {
    font-size: 72px;
    line-height: 100px;
    height: auto;
  }
  
  .author-bio {
    font-size: 20px;
  }
  
  .author-image {
    width: 280px;
    height: 280px;
  }
  
  .author-info {
    gap: 60px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .author-card {
    gap: 40px;
    height: auto;
  }
  
  .author-name {
    font-size: 56px;
    line-height: 76px;
  }
  
  .author-bio {
    font-size: 18px;
  }
  
  .author-image {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    gap: 32px;
  }
  
  .author-info {
    max-width: 100%;
    gap: 24px;
  }
  
  .author-name {
    font-size: 42px;
    line-height: 57px;
  }
  
  .author-bio {
    font-size: 16px;
  }
  
  .author-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  
  .author-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    height: auto;
  }
}
