/* ==========================================================================
   Post Meta Bar & Author Box — Complete Styles
   Transport Package: drop into new theme's css/ folder
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post Meta Bar
   -------------------------------------------------------------------------- */

.postmeta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #f8fafb;
  border: 1px solid #eaeef2;
  border-radius: var(--border-radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.postmeta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  transition: opacity var(--transition-fast);
}

.postmeta-author:hover {
  opacity: 0.8;
  color: inherit;
}

.postmeta-author img {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  border: 2px solid #c7286f;
  flex-shrink: 0;
}

.postmeta-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.postmeta-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.postmeta-author-posts {
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.postmeta-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.postmeta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.postmeta-item strong {
  color: var(--color-text-heading);
  font-weight: 700;
}

.postmeta-item i {
  font-size: 13px;
  color: var(--color-accent);
  width: 15px;
  text-align: center;
}

.postmeta-item.postmeta-updated i  { color: var(--color-success); }
.postmeta-item.postmeta-readtime i { color: var(--color-warning); }

.postmeta-details .postmeta-item + .postmeta-item::before {
  content: '\00B7';
  margin-right: 8px;
  color: var(--border-darker);
  font-size: 16px;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Author Box
   -------------------------------------------------------------------------- */

.authorbox {
  position: relative;
  margin: 35px 0 25px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  border: 1px solid #e4eaf0;
}

.authorbox-header {
  background: #c7286f;
  background-image: -webkit-linear-gradient(top, #c7286f 33%, #940c48 100%);
  background-image: linear-gradient(to bottom, #c7286f 33%, #940c48 100%);
  color: var(--bg-white);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.authorbox-header i {
  font-size: 15px;
  opacity: 0.9;
}

.authorbox-body {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.authorbox-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 22px;
  background: #f6f9fc;
  border-right: 1px solid #eaeef2;
  min-width: 150px;
}

.authorbox-avatar-wrap {
  position: relative;
}

.authorbox-avatar-wrap a {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: var(--border-radius-round);
  padding: 4px;
  background: #c7286f;
  background-image: linear-gradient(to bottom, #c7286f 33%, #940c48 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.authorbox-avatar-wrap a:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(31, 41, 55, 0.28);
}

.authorbox-avatar-wrap img {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-white);
}

.authorbox-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: #fef3c7;
  padding: 3px 11px;
  border-radius: var(--border-radius-xl);
}

.authorbox-role i {
  font-size: 11px;
}

.authorbox-postcount {
  font-size: 11.5px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.authorbox-postcount i {
  color: #aaa;
  font-size: 12px;
}

.authorbox-info {
  flex: 1;
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.authorbox-name {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.authorbox-name a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.authorbox-name a:hover {
  color: var(--color-accent);
}

.authorbox-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0 0 14px;
}

.authorbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

.authorbox-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--color-text-light);
}

.authorbox-meta-item i {
  font-size: 13px;
  color: var(--color-accent);
  width: 15px;
  text-align: center;
}

.authorbox-meta-item.authorbox-meta-updated i {
  color: var(--color-success);
}

.authorbox-meta-item strong {
  color: var(--color-text-heading);
  font-weight: 700;
}

.authorbox-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.authorbox-allposts,
.authorbox-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-white);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.authorbox-allposts:hover,
.authorbox-website:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--bg-white);
}

.authorbox-allposts i,
.authorbox-website i {
  font-size: 12px;
}

.authorbox-allposts {
  background: #c7286f;
  background-image: linear-gradient(to bottom, #c7286f 33%, #940c48 100%);
}

.authorbox-website {
  background: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Bylines (content-meta.php partial)
   -------------------------------------------------------------------------- */

.bylines {
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.articleexcerpt .bylines {
  font-size: 12px;
  margin: 0 0 12px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.post-card .bylines {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  order: -1;
}

.post-card .bylines a {
  color: var(--color-text-light);
  font-weight: 600;
}

.blog-article .bylines {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

/* ==========================================================================
   Responsive — 768px (Tablets)
   ========================================================================== */

@media screen and (max-width: 768px) {

  .postmeta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .postmeta-details {
    gap: 4px 10px;
  }
}

/* ==========================================================================
   Responsive — 576px (Large Phones)
   ========================================================================== */

@media screen and (max-width: 576px) {

  .postmeta-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .postmeta-author img {
    width: 32px;
    height: 32px;
  }

  .postmeta-item {
    font-size: 11.5px;
  }

  /* Author box: stacked mobile layout */
  .authorbox {
    border-radius: var(--border-radius-md);
    margin: 24px 0 20px;
  }

  .authorbox-header {
    padding: 10px 16px;
    font-size: 12px;
    justify-content: center;
  }

  .authorbox-body {
    flex-direction: column;
  }

  .authorbox-left {
    flex-direction: row;
    min-width: 0;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #eaeef2;
    gap: 12px;
    justify-content: flex-start;
  }

  .authorbox-avatar-wrap a {
    width: 64px;
    height: 64px;
  }

  .authorbox-avatar-wrap img {
    width: 56px;
    height: 56px;
  }

  .authorbox-role {
    font-size: 10px;
    padding: 2px 8px;
  }

  .authorbox-postcount {
    font-size: 10.5px;
  }

  .authorbox-info {
    padding: 14px 16px;
  }

  .authorbox-name {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .authorbox-bio {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .authorbox-meta {
    gap: 4px 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .authorbox-meta-item {
    font-size: 11.5px;
  }

  .authorbox-footer {
    gap: 8px;
  }

  .authorbox-allposts,
  .authorbox-website {
    font-size: 12px;
    padding: 7px 12px;
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}
