/**
 * E-E-A-T Components — Author byline, trust badges, citations, disclaimer
 * Highest standards for YMYL legal content per Google's Quality Rater Guidelines
 *
 * @package JusticeTheme
 */

/* ========================================================================
   AUTHOR BYLINE STRIP
   ======================================================================== */

.eeat-byline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-right: 4px solid #1a4fba;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  direction: rtl;
}

.eeat-byline__avatar-wrap {
  flex-shrink: 0;
}

.eeat-byline__avatar-link {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border: 2px solid #1a4fba;
}

.eeat-byline__avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.eeat-byline__initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a4fba 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 2px solid #1a4fba;
}

.eeat-byline__info {
  flex: 1;
  min-width: 0;
}

.eeat-byline__name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.eeat-byline__label {
  color: #64748b;
  font-size: 0.8125rem;
}

.eeat-byline__name {
  font-weight: 700;
  color: #1a4fba;
  text-decoration: none;
  font-size: 0.9375rem;
}

.eeat-byline__name:hover {
  text-decoration: underline;
}

.eeat-byline__credentials {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  color: #475569;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.eeat-byline__title {
  font-weight: 600;
  color: #1e293b;
}

.eeat-byline__separator {
  color: #94a3b8;
}

.eeat-byline__dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #64748b;
}

.eeat-byline__updated {
  color: #047857;
}

.eeat-byline__trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-shrink: 0;
}

.eeat-byline__badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.eeat-byline__badge svg {
  flex-shrink: 0;
}

/* ========================================================================
   LEGAL DISCLAIMER BLOCK
   ======================================================================== */

.eeat-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 2.5rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-right: 4px solid #f59e0b;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #78350f;
  direction: rtl;
}

.eeat-disclaimer__icon {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.eeat-disclaimer__text {
  line-height: 1.6;
}

.eeat-disclaimer__text strong {
  color: #92400e;
}

/* ========================================================================
   LEGAL SOURCES CITATION BLOCK
   ======================================================================== */

.eeat-sources {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  direction: rtl;
}

.eeat-sources__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.875rem;
}

.eeat-sources__title svg {
  color: #1a4fba;
  flex-shrink: 0;
}

.eeat-sources__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.eeat-sources__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
}

.eeat-sources__type {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.eeat-sources__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #1a4fba;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eeat-sources__link:hover {
  color: #1e40af;
}

.eeat-sources__external {
  flex-shrink: 0;
  opacity: 0.6;
}

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

@media (max-width: 640px) {
  .eeat-byline {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .eeat-byline__trust-badges {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .eeat-byline__credentials,
  .eeat-byline__dates {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .eeat-byline__separator {
    display: none;
  }
}

/* ========================================================================
   DARK ACCENTS / HIGH CONTRAST ACCESSIBILITY
   ======================================================================== */

@media (prefers-contrast: high) {
  .eeat-byline {
    border-right-color: #000080;
    background: #f0f4ff;
  }

  .eeat-byline__name {
    color: #000080;
  }

  .eeat-disclaimer {
    border-right-color: #92400e;
    background: #fefce8;
  }
}
