/* ===========================================================
   Featured Plumbers — sidebar carousel for blog pages
   =========================================================== */

.fc-wrap {
  display: none; /* hidden until desktop breakpoint */
}

/* Article readable column is 640px, centered.
   Right edge of article ≈ 50vw + 320px.
   Available space to the right of article: 50vw - 320px.
   We need widget_width + gap + edge_margin ≤ available_space.
   Minimum viable: 280 + 24 + 16 = 320px → need 50vw ≥ 640 → vw ≥ 1280.
   Below 1280 the widget wouldn't fit without overlap or overflow, so hide. */
@media (min-width: 1280px) {
  .fc-wrap {
    display: block;
    position: fixed;
    top: 50%;
    right: max(1rem, calc(50vw - 620px));
    transform: translateY(-50%);
    width: 280px;
    z-index: 20;
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  }
}

@media (min-width: 1440px) {
  .fc-wrap {
    right: max(1.5rem, calc(50vw - 680px));
    width: 300px;
  }
}

@media (min-width: 1600px) {
  .fc-wrap {
    right: max(2rem, calc(50vw - 740px));
    width: 320px;
  }
}

.fc-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.5rem;
  padding-left: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fc-eyebrow svg {
  width: 12px;
  height: 12px;
  color: #f59e0b;
}

.fc-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 25px -5px rgba(0,0,0,0.10);
  border: 1px solid #e5e7eb;
}

.fc-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.fc-slide {
  flex: 0 0 100%;
  padding: 1.25rem 1.25rem 1rem;
  box-sizing: border-box;
}

.fc-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fc-avatar.dark-bg { background: #111827; }

.fc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-left: auto;
}

.fc-badge svg { width: 10px; height: 10px; }

.fc-name {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: #111827;
}

.fc-name a {
  color: inherit;
  text-decoration: none;
}

.fc-name a:hover { color: #0369a1; }

.fc-rating {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fc-stars { color: #f59e0b; letter-spacing: 0.05em; }

.fc-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.fc-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 4px;
  font-weight: 500;
}

.fc-actions {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.fc-actions a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.fc-actions .fc-btn-primary {
  background: #0369a1;
  color: #fff;
}
.fc-actions .fc-btn-primary:hover { background: #075985; }

.fc-actions .fc-btn-ghost {
  background: transparent;
  color: #0369a1;
  border: 1px solid #cbd5e1;
}
.fc-actions .fc-btn-ghost:hover { background: #f0f9ff; border-color: #0369a1; }

.fc-actions svg { width: 12px; height: 12px; }

/* Dots */
.fc-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0 0.9rem;
  background: #fff;
}

.fc-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fc-dot.active {
  width: 20px;
  background: #0369a1;
}

.fc-dot:hover:not(.active) { background: #9ca3af; }

/* Footer link under carousel */
.fc-foot {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.7rem;
  color: #6b7280;
}

.fc-foot a {
  color: #0369a1;
  text-decoration: none;
  font-weight: 500;
}

.fc-foot a:hover { text-decoration: underline; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fc-track { transition: none; }
}
