/* Influences page (dynamic Wikiquote card with portrait backdrop) */

.kb-influencers-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.25rem;
}

.kb-quote-stage {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 21rem;
  margin: 1.25rem 0 2rem;
  background: linear-gradient(135deg, #12161f 0%, #1b2230 55%, #11151d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  color: #f4f1ea;
  display: flex;
  align-items: stretch;
}

.kb-quote-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.kb-quote-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  background-size: cover;
  background-position: 50% 18%;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.08) brightness(0.92);
  opacity: 0;
  transition: opacity 0.45s ease;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.92) 15%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 95%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.92) 15%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 95%);
}

.kb-quote-portrait.is-visible {
  opacity: 0.42;
}

.kb-quote-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 18, 26, 0.92) 0%, rgba(14, 18, 26, 0.72) 52%, rgba(14, 18, 26, 0.25) 100%),
    linear-gradient(180deg, rgba(14, 18, 26, 0.35) 0%, rgba(14, 18, 26, 0.08) 45%, rgba(14, 18, 26, 0.75) 100%);
}

.kb-quote-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.kb-quote-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kb-quote-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e6c27a;
  background: rgba(230, 194, 122, 0.12);
  border: 1px solid rgba(230, 194, 122, 0.32);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.kb-quote-filters {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.18rem;
  gap: 0.15rem;
}

.kb-filter-btn {
  border: 0;
  background: transparent;
  color: rgba(244, 241, 234, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.kb-filter-btn:hover {
  color: #fff;
}

.kb-filter-btn.is-active {
  background: #e6c27a;
  color: #12161f;
}

.kb-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  line-height: 0.7;
  color: rgba(230, 194, 122, 0.55);
  margin-top: 0.35rem;
  user-select: none;
}

.kb-quote-text {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 38rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.18rem, 2.2vw, 1.52rem);
  line-height: 1.55;
  font-weight: 400;
  color: #faf7f0;
  transition: opacity 0.2s ease;
}

.kb-quote-stage.is-loading .kb-quote-text {
  opacity: 0.55;
}

.kb-quote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kb-quote-author {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f4f1ea;
}

.kb-quote-source {
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.72);
  margin-top: 0.15rem;
  max-width: 34rem;
}

.kb-quote-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(230, 194, 122, 0.45);
  background: rgba(230, 194, 122, 0.14);
  color: #f7e4b9;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.kb-quote-refresh:hover:not(:disabled) {
  background: rgba(230, 194, 122, 0.26);
  border-color: #e6c27a;
  transform: translateY(-1px);
}

.kb-quote-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.kb-quote-stage.is-loading .kb-quote-refresh i {
  animation: kb-spin 0.8s linear infinite;
}

@keyframes kb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kb-quote-status {
  font-size: 0.74rem;
  color: rgba(244, 241, 234, 0.62);
}

.kb-quote-status a {
  color: #e6c27a !important;
  border-bottom: 1px solid rgba(230, 194, 122, 0.4) !important;
}

.kb-influencers-credit {
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--main-border-color);
  font-size: 0.78rem;
  color: var(--text-muted-color);
}

@media (max-width: 640px) {
  .kb-quote-stage {
    min-height: 23rem;
  }

  .kb-quote-portrait {
    width: 100%;
    height: 100%;
    background-position: 50% 15%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.22) 65%, rgba(0, 0, 0, 0.12) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.22) 65%, rgba(0, 0, 0, 0.12) 100%);
  }

  .kb-quote-portrait.is-visible {
    opacity: 0.28;
  }

  .kb-quote-inner {
    padding: 1.25rem 1.15rem;
  }
}
