/* ── Author Page Layout ── */
.author-page-profile {
  padding: 2rem 0 4rem;
}

.author-profile-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* ── Profile Header with Row Layout ── */
.author-profile-header {
  margin-bottom: 2.5rem;
}

.author-profile-header .row {
  display: flex;
  align-items: stretch;
}

/* ── Auth Photo Column ── */
.auth-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.author-pic {
  position: relative;
  display: block;
  z-index: 1;
  height: 100%;
}

.author-profile-pic {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* ── Auth Info Column ── */
.auth-name {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: #1F1F1F;
}

.auth-details {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.auth-details span {
  display: block;
}

/* ── Author Social ── */


/* ── Auth Description ── */
.auth-descr {
  margin-top: 0.75rem;
}

.auth-descr p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
  color: #444;
}

/* ── Posts Section ── */
.author-profile-posts {
  margin-top: 2rem;
}

.author-profile-posts > h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: #1F1F1F;
}

/* ── Filter Tabs ── */
.author-filter-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 2rem;
}

.filter-tab {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.filter-tab:first-child {
  padding-left: 0;
}

.filter-tab::after {
  content: '';
  width: 0;
  height: 3px;
  display: block;
  background: #1f7aff;
  transition: width ease 0.2s;
  margin: 0 auto;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.filter-tab.active,
.filter-tab:hover {
  color: #1F1F1F;
}

.filter-tab.active {
  font-weight: 500;
}

.filter-tab.active::after,
.filter-tab:hover::after {
  width: 100%;
}

/* ── Posts Grid ── */
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Remove default views wrapper styling */
.author-posts-grid > .views-row {
  width: 100%;
  min-width: 0;
}

/* Hide non-matching content types by default */
.author-posts-grid > .views-row.author-hidden {
  display: none;
}

/* ── Card Styles ── */
.author-card {
  display: flex;
  flex-direction: column;
}

.author-card .thumblink {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ── Thinking Tech video badge — floating over the bottom of the thumbnail,
     matching the Insights Listing page's card-type-videocast overlay ── */
.author-card .thumblink.card-type-videocast::after {
  content: "";
  display: block;
  width: 100%;
  height: 18%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: url('../../../../sites/default/files/static/insight-videocast.png') #2A2A2A no-repeat;
  background-size: 92%;
  background-position: center;
  pointer-events: none;
}

/* ── Podcast badge — same overlay treatment, matching the Insights
     Listing page's card-type-podcast overlay ── */
.author-card .thumblink.card-type-podcast::after {
  content: "";
  display: block;
  width: 100%;
  height: 18%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: url('../../../../sites/default/files/static/insight-podcast.png') #2A2A2A no-repeat;
  background-size: 92%;
  background-position: center;
  pointer-events: none;
}

.author-card .thumblink img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 6px;
}

.author-card .thumblink:hover img {
  transform: scale(1.03);
}

.author-card .author-card-cat {
  color: #1248b5;
  font-size: 0.82rem;
  font-weight: 300;
  text-decoration: none;
  margin-bottom: 6px;
  display: inline-block;
}

.author-card .author-card-cat:hover {
  color: #111c95;
}

.author-card h3 {
  margin: 4px 0 0;
  line-height: 1.4;
  font-size: 0.95rem;
  font-weight: 500;
}

.author-card .author-card-title {
  color: #1F1F1F;
  text-decoration: none;
}

.author-card .author-card-title:hover {
  color: #1e499a;
}

/* ── See More Button ── */
.author-see-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.author-see-more-btn:disabled {
  background: #f0f0f0;
  border-color: #ddd;
  color: #aaa;
  cursor: default;
}

.author-see-more-btn:disabled:hover {
  background: #f0f0f0;
  border-color: #ddd;
}

/* ── No Posts ── */
.author-profile-no-posts {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #666;
}

/* ── No Results Message ── */
.author-no-results {
  background: #f9f9f9;
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  color: #999;
  font-size: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-no-results p {
  margin: 0;
  font-size: 1.1rem;
  color: #666;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .author-profile-container {
    padding: 0 20px;
  }

  .author-profile-header .row {
    flex-direction: row;
    gap: 1.5rem;
  }

  .author-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .author-filter-tabs {
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .filter-tab {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .author-card .thumblink img {
    height: 160px;
  }
}

@media (max-width: 650px) {
  .author-profile-header .row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .auth-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .author-pic {
    height: auto;
  }

  .author-profile-pic {
    width: 100%;
    height: auto;
    max-width: 350px;
  }

  .author-bg {
    display: none;
  }

  .auth-name {
    font-size: 1.4rem;
  }

  .author-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .author-card .thumblink img {
    height: 200px;
  }
}
