/*
 * Travel-icious Social Bar — frontend styles
 * Loaded only when at least one platform is enabled.
 */

/* ── Custom properties — override in Appearance › Additional CSS ──── */
:root {
  --tsb-bg:           #fff8f1;
  --tsb-border:       #ebd6bb;
  --tsb-label-color:  #b56528;
  --tsb-pill-bg:      #ffffff;
  --tsb-pill-border:  #e5d0b4;
  --tsb-pill-text:    #4a3122;
  --tsb-sep-color:    #ddc9ae;
  --tsb-font:         -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Official brand colours */
  --tsb-instagram:    #E1306C;
  --tsb-facebook:     #1877F2;
  --tsb-tiktok:       #010101;
  --tsb-linkedin:     #0A66C2;
  --tsb-pinterest:    #E60023;
}

/* ── Bar wrapper ──────────────────────────────────────────────────── */
.tsb-bar {
  width: 100%;
  background: var(--tsb-bg);
  border-bottom: 1px solid var(--tsb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 7px 20px;
  font-family: var(--tsb-font);
  box-sizing: border-box;
}

/* ── Label ("Follow our adventures ✈️") ───────────────────────────── */
.tsb-label {
  color: var(--tsb-label-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* ── Vertical separator ───────────────────────────────────────────── */
.tsb-sep {
  width: 1px;
  height: 20px;
  background: var(--tsb-sep-color);
  flex-shrink: 0;
}

/* ── Platform pill ────────────────────────────────────────────────── */
.tsb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--tsb-pill-text);
  background: var(--tsb-pill-bg);
  border: 1px solid var(--tsb-pill-border);
  border-radius: 50px;
  padding: 5px 13px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition:
    background   0.22s ease,
    border-color 0.22s ease,
    color        0.22s ease,
    box-shadow   0.22s ease,
    transform    0.18s ease;
}

.tsb-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
  transition: fill 0.22s ease;
}

.tsb-pill__count {
  font-weight: 700;
  font-size: 13px;
  display: inline-block;  /* needed for opacity transition */
}

.tsb-pill__name {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
}

/* ── Default icon tints (brand colour when not hovered) ───────────── */
.tsb-pill--instagram svg { fill: var(--tsb-instagram); }
.tsb-pill--facebook  svg { fill: var(--tsb-facebook);  }
.tsb-pill--tiktok    svg { fill: var(--tsb-tiktok);    }
.tsb-pill--linkedin  svg { fill: var(--tsb-linkedin);  }
.tsb-pill--pinterest svg { fill: var(--tsb-pinterest); }

/* ── Hover states ─────────────────────────────────────────────────── */
.tsb-pill--instagram:hover {
  background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fd1d1d 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.30);
  transform: translateY(-1px);
}

.tsb-pill--facebook:hover {
  background: var(--tsb-facebook);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.30);
  transform: translateY(-1px);
}

.tsb-pill--tiktok:hover {
  background: #010101;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 1, 1, 0.25);
  transform: translateY(-1px);
}

.tsb-pill--linkedin:hover {
  background: var(--tsb-linkedin);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.30);
  transform: translateY(-1px);
}

.tsb-pill--pinterest:hover {
  background: var(--tsb-pinterest);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.30);
  transform: translateY(-1px);
}

/* Icon turns white on every hover */
.tsb-pill:hover svg { fill: #fff; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tsb-label,
  .tsb-sep         { display: none; }
  .tsb-pill__name  { display: none; }
  .tsb-bar         { gap: 6px; padding: 6px 12px; }
  .tsb-pill        { padding: 6px 10px; }
}

@media (max-width: 360px) {
  .tsb-pill__count { font-size: 12px; }
  .tsb-pill svg    { width: 13px; height: 13px; }
}
