/* TB Infinite Scroll — frontend.css — v1.2.3 */

/* ── Konteyner ─────────────────────────────── */
#tbis-container {
  position: relative;
}

/* ── Sentinel / Tetikleyici ────────────────── */
.tbis-sentinel,
.tbis-trigger-point {
  display: block;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* ── Enjekte edilen makale bloğu ───────────── */
.tbis-article-injected {
  animation: tbis-fadein 0.3s ease;
  margin-top: 1.5rem;
}

@keyframes tbis-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Makaleler arası ayraç ─────────────────── */
div.tbis-separator {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 2rem 0 0 !important;
  margin-bottom: 0 !important;
  background: #f7f7f7 !important;
  border-top: 3px solid #F04A0A !important;
  border-bottom: none !important;
  padding: 10px 16px !important;
  border-radius: 0 !important;
  line-height: 1.4 !important;
}

div.tbis-separator .tbis-sep-label {
  display: inline-block !important;
  font-size: .65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #F04A0A !important;
  white-space: nowrap !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

div.tbis-separator .tbis-sep-title {
  display: inline-block !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Özel metin için eski tasarım */
.tbis-sep-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.tbis-sep-text {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .78rem;
  color: #aaa;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 .75rem;
}

/* ── Yükleme Göstergesi ────────────────────── */
.tbis-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem 0;
  color: #888;
  font-size: .9rem;
  background: #fff;
}

.tbis-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #F04A0A;
  border-radius: 50%;
  animation: tbis-spin .7s linear infinite;
  flex-shrink: 0;
}

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

.tbis-bar {
  width: 200px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.tbis-bar-inner {
  height: 100%;
  background: #F04A0A;
  animation: tbis-bar-move 1.2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes tbis-bar-move {
  0%   { transform: scaleX(0) translateX(0); }
  50%  { transform: scaleX(.5) translateX(100%); }
  100% { transform: scaleX(0) translateX(300%); }
}

/* ── Fallback kart ─────────────────────────── */
.tbis-card-fallback {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.tbis-fallback-link {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.tbis-fallback-link:hover { background: #f9f9f9; }

.tbis-fallback-link img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.tbis-fallback-body h2 {
  font-size: .95rem;
  margin: 0 0 .3rem;
  line-height: 1.4;
}

.tbis-fallback-body span {
  font-size: .8rem;
  color: #F04A0A;
  font-weight: 600;
}
