/* =============================================================================
   Follow Button Component
   Business (heart) and Event (bell) variants, login gate modal, animations
   ============================================================================= */

/* --- Base Follow Button --- */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--sand, #E8F0EC);
  background: transparent;
  color: var(--coastal-blue, #2E7D96);
  user-select: none;
  -webkit-user-select: none;
}

.follow-btn i { font-size: 0.85rem; transition: transform 0.4s ease; }

.follow-btn:hover {
  border-color: var(--coastal-blue, #2E7D96);
  background: rgba(46, 125, 150, 0.05);
  transform: translateY(-2px);
}

.follow-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 150, 0.3);
}

/* --- Business Follow (heart) --- */
.follow-btn--business.follow-btn--active {
  background: var(--coastal-blue, #2E7D96);
  border-color: var(--coastal-blue, #2E7D96);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 150, 0.25);
}

.follow-btn--business.follow-btn--active:hover {
  background: var(--coral, #E8725C);
  border-color: var(--coral, #E8725C);
  box-shadow: 0 4px 15px rgba(232, 114, 92, 0.25);
}

/* --- Event Follow (bell) --- */
.follow-btn--event.follow-btn--active {
  background: var(--seafoam, #4BBCAA);
  border-color: var(--seafoam, #4BBCAA);
  color: white;
  box-shadow: 0 4px 15px rgba(75, 188, 170, 0.25);
}

.follow-btn--event.follow-btn--active:hover {
  background: var(--coral, #E8725C);
  border-color: var(--coral, #E8725C);
  box-shadow: 0 4px 15px rgba(232, 114, 92, 0.25);
}

/* --- Loading State --- */
.follow-btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --- Small Variant (card lists) --- */
.follow-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.follow-btn--sm i { font-size: 0.75rem; }

/* --- Follower Count --- */
.follow-btn__count {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.8em;
  margin-left: 0.15rem;
}

/* --- Heart Pop Animation --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heart-pop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
  }

  @keyframes bell-ring {
    0%   { transform: rotate(0); }
    20%  { transform: rotate(12deg); }
    40%  { transform: rotate(-10deg); }
    60%  { transform: rotate(6deg); }
    80%  { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
  }

  .follow-btn--pop i { animation: heart-pop 400ms ease; }
  .follow-btn--ring i { animation: bell-ring 500ms ease; }
}

/* =============================================================================
   Login Gate Modal
   ============================================================================= */

.follow-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 60, 77, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.follow-gate--visible {
  opacity: 1;
  visibility: visible;
}

.follow-gate__card {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.follow-gate--visible .follow-gate__card {
  transform: translateY(0);
}

.follow-gate__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light, #6B7280);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.follow-gate__close:hover {
  color: var(--text-dark, #1A3C4D);
}

.follow-gate__icon {
  font-size: 2.5rem;
  color: var(--coastal-blue, #2E7D96);
  margin-bottom: 1rem;
}

.follow-gate__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.3rem;
  color: var(--text-dark, #1A3C4D);
  margin: 0 0 0.75rem;
}

.follow-gate__body {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  color: var(--text-light, #6B7280);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.follow-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--coral, #E8725C);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 114, 92, 0.3);
  border: none;
  cursor: pointer;
}

.follow-gate__cta:hover {
  background: #d4624a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 114, 92, 0.4);
}

.follow-gate__link {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light, #6B7280);
}

.follow-gate__link a {
  color: var(--coastal-blue, #2E7D96);
  text-decoration: none;
  font-weight: 600;
}

.follow-gate__link a:hover {
  text-decoration: underline;
}

/* =============================================================================
   My Follows Page
   ============================================================================= */

.follow-list__tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sand, #E8F0EC);
  margin-bottom: 1.5rem;
}

.follow-list__tab {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light, #6B7280);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.follow-list__tab:hover {
  color: var(--coastal-blue, #2E7D96);
}

.follow-list__tab--active {
  color: var(--coastal-blue, #2E7D96);
  border-bottom-color: var(--coastal-blue, #2E7D96);
}

.follow-list__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--sand, #E8F0EC);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.follow-list__card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.follow-list__photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sand, #E8F0EC);
}

.follow-list__info {
  flex: 1;
  min-width: 0;
}

.follow-list__name {
  font-weight: 600;
  color: var(--text-dark, #1A3C4D);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-list__name:hover {
  color: var(--coastal-blue, #2E7D96);
}

.follow-list__meta {
  font-size: 0.85rem;
  color: var(--text-light, #6B7280);
  margin-top: 0.15rem;
}

.follow-list__date-badge {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
}

.follow-list__date-badge .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--coral, #E8725C);
}

.follow-list__date-badge .day {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark, #1A3C4D);
}

/* --- Empty States --- */
.follow-list__empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.follow-list__empty-icon {
  font-size: 3rem;
  color: var(--sand, #E8F0EC);
  margin-bottom: 1rem;
}

.follow-list__empty h3 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.1rem;
  color: var(--text-dark, #1A3C4D);
  margin: 0 0 0.5rem;
}

.follow-list__empty p {
  color: var(--text-light, #6B7280);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.follow-list__empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid var(--midnight, #1A3C4D);
  color: var(--midnight, #1A3C4D);
  background: transparent;
  transition: all 0.3s ease;
}

.follow-list__empty .btn:hover {
  background: var(--midnight, #1A3C4D);
  color: white;
  transform: translateY(-2px);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 480px) {
  .follow-btn {
    min-height: 44px;
    justify-content: center;
  }

  .follow-gate__card {
    margin: 0 0.5rem;
    padding: 2rem 1.5rem;
  }

  .follow-list__photo {
    width: 48px;
    height: 48px;
  }
}
