/* ══════════════════════════════════════
   Trust Logos Block — Frontend Styles
   ══════════════════════════════════════ */

:root {
  --tlb-dark: #0C1826;
  --tlb-blue: #3292FF;
  --tlb-green: #66BB6B;
  --tlb-white: #FFFFFF;
  --tlb-light-blue: #EBF3FC;
  --tlb-text: #0C1826;
  --tlb-text-secondary: #5A6578;
  --tlb-text-tertiary: #8B95A5;
  --tlb-border-light: rgba(12, 24, 38, 0.06);
  --tlb-border-med: rgba(12, 24, 38, 0.10);
}

.tlb-trust-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 40px 60px;
  overflow: visible;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tlb-trust-heading {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--tlb-text);
  letter-spacing: -0.01em;
  margin: 0 0 52px;
}

/* ── Rows ── */
.tlb-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 4px;
}

/* ── Logo Item ── */
.tlb-logo-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 20px 28px;
  cursor: default;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: tlbFadeUp 0.35s ease forwards;
}

.tlb-logo-item.has-action { cursor: pointer; }
.tlb-logo-item:hover { z-index: 20; }

/* ── Logo image / name ── */
.tlb-logo-img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  user-select: none;
}

.tlb-logo-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--tlb-dark);
  letter-spacing: -0.01em;
  opacity: 0.45;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

/* ── Inline Tags ── */
.tlb-tag {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 7px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  top: -1px;
}

.tlb-tag-testimonial {
  background: rgba(50, 146, 255, 0.1);
  color: #2B7FCC;
}

.tlb-tag-casestudy {
  background: rgba(102, 187, 107, 0.12);
  color: #3D8B42;
}

/* Custom tags — default neutral style */
.tlb-tag-custom {
  background: rgba(240, 201, 51, 0.12);
  color: #9E8420;
}

/* ── Tooltip Card ── */
.tlb-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  width: 290px;
  background: var(--tlb-white);
  border: 1px solid var(--tlb-border-med);
  border-radius: 14px;
  padding: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  box-shadow:
    0 16px 48px rgba(12, 24, 38, 0.10),
    0 4px 12px rgba(12, 24, 38, 0.05);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tlb-logo-item:hover .tlb-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Edge overrides */
.tlb-logo-item.edge-left .tlb-tip {
  left: -12px;
  transform: translateX(0) translateY(12px);
}
.tlb-logo-item.edge-left:hover .tlb-tip {
  transform: translateX(0) translateY(0);
}

.tlb-logo-item.edge-right .tlb-tip {
  left: auto;
  right: -12px;
  transform: translateX(0) translateY(12px);
}
.tlb-logo-item.edge-right:hover .tlb-tip {
  transform: translateX(0) translateY(0);
}

/* ── Tooltip internals ── */
.tlb-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.tlb-tip-company {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--tlb-text);
  letter-spacing: -0.01em;
}

.tlb-tip-company-img {
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.tlb-tip-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tlb-tip-tag-testimonial {
  background: rgba(50, 146, 255, 0.1);
  color: #2B7FCC;
}

.tlb-tip-tag-casestudy {
  background: rgba(102, 187, 107, 0.12);
  color: #3D8B42;
}

.tlb-tip-tag-custom {
  background: rgba(240, 201, 51, 0.12);
  color: #9E8420;
}

.tlb-tip-quote {
  padding: 14px 18px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--tlb-text);
}

.tlb-tip-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--tlb-light-blue);
  border-top: 1px solid var(--tlb-border-light);
}

.tlb-tip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3292FF 0%, #1A6FD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

.tlb-tip-avatar.green {
  background: linear-gradient(135deg, #66BB6B 0%, #3D8B42 100%);
}

.tlb-tip-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tlb-tip-author-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tlb-text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

.tlb-tip-author-role {
  font-size: 11px;
  color: var(--tlb-text-tertiary);
  line-height: 1.3;
  margin-top: 1px;
}

@keyframes tlbFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── G2 Rating Badge ── */
.tlb-g2-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
}

.tlb-g2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(12, 24, 38, 0.04);
  border-radius: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #071320;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}

.tlb-g2-badge:hover {
  background: rgba(12, 24, 38, 0.07);
}

.tlb-g2-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.tlb-g2-score {
  font-weight: 700;
  font-size: 14px;
  color: #071320;
}

.tlb-g2-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.tlb-g2-star {
  width: 13px;
  height: 13px;
}

/* ══════════════════════════════
   MOBILE
   ══════════════════════════════ */
@media (max-width: 768px) {
  .tlb-trust-section { padding: 48px 16px 40px; }
  .tlb-trust-heading { font-size: 17px; margin-bottom: 32px; }

  .tlb-logo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    justify-items: center;
  }

  .tlb-logo-item {
    padding: 16px 12px;
    width: 100%;
    justify-content: center;
  }

  .tlb-logo-name { font-size: 13.5px; }
  .tlb-logo-img { height: 18px; }
  .tlb-tag { font-size: 7px; padding: 2px 5px; }

  .tlb-tip,
  .tlb-logo-item.edge-left .tlb-tip,
  .tlb-logo-item.edge-right .tlb-tip {
    position: fixed !important;
    bottom: 24px !important;
    top: auto !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translateY(20px) !important;
    border-radius: 16px;
  }

  .tlb-logo-item:hover .tlb-tip {
    transform: translateY(0) !important;
  }

  .tlb-logo-item:hover .tlb-tip { z-index: 60; }

  .tlb-tip-quote { font-size: 14px; padding: 16px 20px 18px; }
  .tlb-tip-header { padding: 16px 20px 0; }
  .tlb-tip-company { font-size: 14px; }
  .tlb-tip-author { padding: 14px 20px; }
  .tlb-tip-author-name { font-size: 13.5px; }
  .tlb-tip-author-role { font-size: 12px; }
  .tlb-tip-avatar { width: 40px; height: 40px; font-size: 13px; }
  .tlb-tip-avatar-img { width: 40px; height: 40px; }

  .tlb-g2-bar { margin: 0 auto 28px; }
  .tlb-g2-badge { padding: 5px 12px; font-size: 12px; gap: 6px; }
  .tlb-g2-score { font-size: 13px; }
  .tlb-g2-star { width: 11px; height: 11px; }
}
