/**
 * BlueShift News (client) — lives in blueshift_site, not ns_theme_t3blogger.
 * Delete this file when uninstalling News.
 *
 * Note: EXT:news wraps output in .news (not .tx-news). Prefer .news / bare
 * component classes so styles actually apply in the frontend.
 */

.news .news-teaser-section,
.tx-news .news-teaser-section {
  margin-bottom: 2rem;
}

/*
 * List grid: keep Bootstrap row flex-wrap after AJAX appends; clear floats.
 * Vertical gap between stacked grid cards (match blog .news-teaser margin-bottom: 30px).
 * Gap lives on the column so equal-height flex + height:100% cannot collapse it.
 */
.tx-news .grid-layout,
.news .grid-layout,
.blueshift-news-results .grid-layout,
.blueshift-news-results .row.blueshift-news-list-row {
  display: flex;
  flex-wrap: wrap;
  clear: both;
}

.tx-news .grid-layout > [class*='col-'],
.news .grid-layout > [class*='col-'],
.blueshift-news-results .row > [class*='col-'],
.blueshift-news-results .grid-layout > [class*='col-'] {
  margin-bottom: 30px;
  display: flex;
  float: none;
}

.tx-news .news-teaser,
.tx-news .news-teaser--grid,
.news .news-teaser,
.news .news-teaser--grid {
  margin-bottom: 0;
  height: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Equal-height cards within a row (blog uses min-height: calc(100% - 30px) on --grid) */
.news .news-teaser-section .news-teaser,
.news .news-teaser-section .news-teaser--grid,
.tx-news .news-teaser-section .news-teaser,
.tx-news .news-teaser-section .news-teaser--grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100% - 30px);
  height: auto;
  background: #fff;
}

/* Hide numbered pagination if an old partial/cache still emits it */
.news .f3-widget-paginator,
.tx-news .f3-widget-paginator,
.blueshift-news-results .f3-widget-paginator,
.news .page-navigation .f3-widget-paginator,
.tx-news .page-navigation .f3-widget-paginator {
  display: none !important;
}

.news .load-more,
.tx-news .load-more,
.blueshift-news-results .load-more,
.blueshift-news-ajax .load-more {
  clear: both;
  text-align: center;
  width: 100%;
  position: relative;
  isolation: isolate;
  margin-top: 40px;
}

/* Keep theme double-rule behind the opaque Load More pill */
.news .load-more::before,
.tx-news .load-more::before,
.blueshift-news-results .load-more::before,
.blueshift-news-ajax .load-more::before {
  z-index: 0;
}

/*
 * Match theme blog .load-more .btn (app.css): opaque cyan pill sits above
 * the ::before double rule so the line does not run through the label.
 */
.news .load-more .btn,
.news .load-more .btn-loadmore,
.tx-news .load-more .btn,
.tx-news .load-more .btn-loadmore,
.blueshift-news-results .load-more .btn,
.blueshift-news-results .load-more .btn-loadmore,
.blueshift-news-ajax .load-more .btn,
.blueshift-news-ajax .load-more .btn-loadmore {
  background-color: #00bcd4 !important;
  color: #fff !important;
  border-color: #00bcd4 !important;
  position: relative;
  z-index: 1;
  border-radius: 30px;
}

.news .load-more .btn:hover,
.news .load-more .btn:focus,
.news .load-more .btn-loadmore:hover,
.news .load-more .btn-loadmore:focus,
.tx-news .load-more .btn:hover,
.tx-news .load-more .btn:focus,
.tx-news .load-more .btn-loadmore:hover,
.tx-news .load-more .btn-loadmore:focus,
.blueshift-news-results .load-more .btn:hover,
.blueshift-news-results .load-more .btn:focus,
.blueshift-news-results .load-more .btn-loadmore:hover,
.blueshift-news-results .load-more .btn-loadmore:focus,
.blueshift-news-ajax .load-more .btn:hover,
.blueshift-news-ajax .load-more .btn:focus,
.blueshift-news-ajax .load-more .btn-loadmore:hover,
.blueshift-news-ajax .load-more .btn-loadmore:focus {
  background-color: #fff !important;
  color: #00bcd4 !important;
  border-color: #00bcd4 !important;
}

.news .load-more .btn-loadmore.is-loading,
.tx-news .load-more .btn-loadmore.is-loading,
.blueshift-news-ajax .load-more .btn-loadmore.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Blog-parity AJAX spinner for Load More (#loading-image) */
.news #loading-image,
.tx-news #loading-image,
.blueshift-news-ajax #loading-image,
.blueshift-news-ajax .blueshift-news-loading {
  text-align: center;
  margin: 1rem 0 0;
}

.news #loading-image[hidden],
.tx-news #loading-image[hidden],
.blueshift-news-ajax #loading-image[hidden],
.blueshift-news-ajax .blueshift-news-loading[hidden] {
  display: none !important;
}

.news #loading-image.is-visible,
.tx-news #loading-image.is-visible,
.blueshift-news-ajax #loading-image.is-visible,
.blueshift-news-ajax .blueshift-news-loading.is-visible {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  padding: 0.5rem 0;
}

.news .news-teaser-section .news-teaser .news-content,
.tx-news .news-teaser-section .news-teaser .news-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.news .news-teaser-section .news-content > p:has(.btn),
.tx-news .news-teaser-section .news-content > p:has(.btn) {
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.news .news-teaser-section .news-more,
.tx-news .news-teaser-section .news-more {
  margin: 0;
  padding-top: 0;
}

.news .news-teaser .news-content p,
.tx-news .news-teaser .news-content p {
  color: var(--theme-body-color, #adadad);
  font-size: var(--theme-body-size, 1rem);
  line-height: 1.55;
}

.news .news-teaser .news-author a,
.tx-news .news-teaser .news-author a {
  color: #00bcd4;
}

.news .news-teaser .news-author a:hover,
.tx-news .news-teaser .news-author a:hover {
  color: #272727;
}

.news .blog-detail.news-detail,
.news .blog-detail.news-detail .entry-content,
.news .blog-detail.news-detail .news-text-wrap,
.news .blog-detail.news-detail .teaser-text,
.tx-news .blog-detail.news-detail,
.tx-news .blog-detail.news-detail .entry-content,
.tx-news .blog-detail.news-detail .news-text-wrap,
.tx-news .blog-detail.news-detail .teaser-text {
  color: var(--theme-body-color, #adadad);
  font-size: var(--theme-body-size, 1rem);
  line-height: 1.55;
}

.news .blog-detail.news-detail .header h1,
.tx-news .blog-detail.news-detail .header h1 {
  margin-bottom: 0.75rem;
}

.news .news-meta,
.tx-news .news-meta {
  margin-bottom: 1.25rem;
}

.news .news-backlink-wrap,
.tx-news .news-backlink-wrap {
  margin-top: 1.5rem;
}

.news .news-related,
.tx-news .news-related {
  margin-top: 2rem;
}

.blueshift-news-categories ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.blueshift-news-categories ul ul {
  padding-left: 1rem;
  margin-top: 0.35rem;
}

.news .page-navigation,
.news .f3-widget-paginator,
.tx-news .page-navigation,
.tx-news .f3-widget-paginator {
  margin-top: 1.5rem;
}

.blueshift-news-login-gate {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.blueshift-news-login-gate .btn {
  margin-top: 0.5rem;
}

/* News filters — scoped to component class (works with .news wrapper) */
.blueshift-news-filters {
  --bs-news-filter-accent: #00bcd4;
  --bs-news-filter-ink: #272727;
  --bs-news-filter-muted: #272727;
  --bs-news-filter-line: rgba(39, 39, 39, 0.12);
  --bs-news-filter-surface: #f4f8f9;
  --bs-news-filter-chip: #ffffff;

  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.75rem;
  padding: 1rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bs-news-filter-surface) 100%);
  border: 1px solid var(--bs-news-filter-line);
  border-left: 3px solid var(--bs-news-filter-accent);
}

.blueshift-news-filters .blueshift-news-filter-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) minmax(0, 1fr);
  gap: 0.55rem 1.15rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bs-news-filter-line);
}

.blueshift-news-filters .blueshift-news-filter-row:first-child {
  padding-top: 0;
}

.blueshift-news-filters .blueshift-news-filter-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blueshift-news-filters .blueshift-news-filter-label {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bs-news-filter-ink);
  line-height: 1.3;
}

.blueshift-news-filters .blueshift-news-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.blueshift-news-filters .blueshift-news-filter-list > li {
  display: inline-flex;
  flex: 0 1 auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.blueshift-news-filters .blueshift-news-filter-link,
.blueshift-news-filters .blueshift-news-filter-list a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.7rem;
  color: var(--bs-news-filter-ink) !important;
  background: var(--bs-news-filter-chip);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 2px;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.blueshift-news-filters .blueshift-news-filter-link:hover,
.blueshift-news-filters .blueshift-news-filter-list a:hover {
  color: var(--bs-news-filter-ink) !important;
  background: rgba(0, 188, 212, 0.1);
  border-color: var(--bs-news-filter-accent);
}

.blueshift-news-filters .blueshift-news-filter-link.is-active,
.blueshift-news-filters .blueshift-news-filter-link.active,
.blueshift-news-filters .blueshift-news-filter-list a.is-active,
.blueshift-news-filters .blueshift-news-filter-list a.active {
  color: #ffffff !important;
  background: var(--bs-news-filter-accent);
  border-color: var(--bs-news-filter-accent);
  font-weight: 600;
}

/* AJAX filter shell + loader */
.blueshift-news-ajax {
  position: relative;
  outline: none;
}

.blueshift-news-ajax.is-loading .blueshift-news-results,
.blueshift-news-ajax.is-loading .blueshift-news-filters {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.blueshift-news-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-top: 4.5rem;
  background: rgba(255, 255, 255, 0.55);
}

.blueshift-news-loader[hidden] {
  display: none !important;
}

.blueshift-news-loader__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(0, 188, 212, 0.25);
  border-top-color: #00bcd4;
  border-radius: 50%;
  animation: blueshift-news-spin 0.7s linear infinite;
}

.blueshift-news-loader__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #272727;
}

@keyframes blueshift-news-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  .blueshift-news-filters {
    padding: 0.9rem;
  }

  .blueshift-news-filters .blueshift-news-filter-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    align-items: start;
  }

  .blueshift-news-filters .blueshift-news-filter-label {
    font-size: 0.9rem;
  }
}

/* Hide large newspaper overlay icons on list cards */
.news .news-teaser .news-image .overlay,
.tx-news .news-teaser .news-image .overlay {
  display: none !important;
}

.news .news-related h4,
.tx-news .news-related h4 {
  margin-bottom: 0.75rem;
}

.news .news-related ul,
.tx-news .news-related ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.news .news-related li,
.tx-news .news-related li {
  margin-bottom: 0.45rem;
}

.blueshift-news-related-blog a {
  color: #00bcd4;
}

.blueshift-news-related-blog a:hover {
  color: #272727;
}

.blueshift-news-related-desc {
  display: block;
  color: var(--theme-body-color, #666);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}


/* --- author-detail.css (inlined so asset pipeline always ships it) --- */
/* Author detail page background */
body:has(.author-detail-profile),
body:has(.author-detail-profile) .content-section.white-bg {
  background-color: #f0f3f2;
}

/* Author detail profile (listPostsByAuthor) */
.author-detail-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
  background: #fff;
}

.author-detail-profile__media {
  flex: 0 0 140px;
}

.author-detail-profile__media img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.author-detail-profile__body {
  flex: 1 1 240px;
  min-width: 0;
}

.author-detail-profile__headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.author-detail-profile__name {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.author-detail-profile__title {
  margin: 0;
  color: #2f6fed;
  font-size: 1rem;
}

.author-detail-profile__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.author-detail-profile__social .author-social {
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}

.author-detail-profile__social .author-social--xing::before {
  content: 'XING';
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author-detail-profile__bio {
  margin: 0;
}

.author-detail-profile__bio p {
  margin: 0;
}

.author-detail-posts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.author-detail-posts-header__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Do not use theme .btn here — app.css loads later and forces cyan outline + can hide label. */
a.author-detail-posts-header__back {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background-color: #0b1f3a !important;
  color: #fff !important;
  border: 2px solid #0b1f3a !important;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
}

a.author-detail-posts-header__back:hover,
a.author-detail-posts-header__back:focus,
a.author-detail-posts-header__back:active {
  background-color: #00bcd4 !important;
  border-color: #00bcd4 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.author-info-content a {
  color: inherit;
}

.author-info-content .author-title {
  font-weight: 400;
  color: #2f6fed;
}

@media (max-width: 575px) {
  .author-detail-profile {
    flex-direction: column;
  }

  .author-detail-profile__social {
    flex-direction: row;
  }
}
