/* Influencer Cards */
.influencer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.influencer-card {
  background-color: white;
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.influencer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  position: relative;
}

.card-cover {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.platform-badge svg {
  width: 16px;
  height: 16px;
}

.card-avatar {
  position: absolute;
  bottom: -40px;
  left: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.card-content {
  padding: 3rem 1.5rem 1.5rem;
}

.influencer-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified-badge {
  color: var(--primary);
}

.influencer-username {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.influencer-bio {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.influencer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-tag {
  padding: 0.3rem 0.8rem;
  background-color: var(--gray-light);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gray-dark);
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  text-align: center;
  padding: 0.8rem 0.5rem;
  background-color: var(--gray-light);
  border-radius: var(--rounded);
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--dark);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-dark);
}

.influence-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-light);
}

.score-label {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.score-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.score-value.high {
  color: var(--success);
}

.score-value.medium {
  color: var(--warning);
}

.score-value.low {
  color: var(--danger);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid var(--gray-light);
  border-radius: 50px;
  color: var(--gray-dark);
  font-size: 0.85rem;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.action-btn.primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.action-btn.primary:hover {
  background-color: var(--primary-dark);
}

/* Score Indicator */
.score-bar {
  width: 100%;
  height: 6px;
  background-color: var(--gray-light);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(to right, var(--danger), var(--warning), var(--success));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Horizontal Layout for List View */
.influencer-horizontal {
  display: flex;
  background-color: white;
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.influencer-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.horizontal-left {
  flex: 0 0 100px;
  position: relative;
}

.horizontal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizontal-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.horizontal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.horizontal-name {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.horizontal-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-icon {
  width: 20px;
  height: 20px;
}

.horizontal-bio {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.horizontal-stats {
  display: flex;
  gap: 2rem;
  margin-top: auto;
}

.horizontal-stat {
  display: flex;
  flex-direction: column;
}

.horizontal-stat-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}

.horizontal-stat-label {
  font-size: 0.75rem;
  color: var(--gray-dark);
}

.horizontal-score {
  padding: 1rem;
  background-color: var(--gray-light);
  border-left: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 100px;
}

.horizontal-score-label {
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.horizontal-score-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.horizontal-score-value.high {
  color: var(--success);
}

.horizontal-score-value.medium {
  color: var(--warning);
}

.horizontal-score-value.low {
  color: var(--danger);
}

/* Card Loading Skeleton */
.card-skeleton {
  animation: pulse 1.5s infinite;
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--gray-light);
}

.skeleton-text {
  height: 16px;
  background-color: var(--gray-light);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-text.long {
  width: 100%;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .influencer-horizontal {
    flex-direction: column;
  }
  
  .horizontal-left {
    flex: 0 0 150px;
  }
  
  .horizontal-score {
    border-left: none;
    border-top: 1px solid var(--gray-light);
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: auto;
    padding: 0.8rem 1.5rem;
  }
  
  .horizontal-score-label {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .influencer-cards {
    grid-template-columns: 1fr;
  }
  
  .card-content {
    padding: 3rem 1rem 1rem;
  }
  
  .card-actions {
    padding: 1rem;
  }
}

/* Influencer Filters */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--rounded);
  color: var(--gray-dark);
  transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-dropdown {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--rounded);
  color: var(--gray-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: white;
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
}

.filter-menu.active {
  display: block;
}

.filter-option {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-dark);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover {
  background-color: var(--gray-light);
}

.filter-option.active {
  color: var(--primary);
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  background-color: white;
  color: var(--gray-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.disabled:hover {
  background-color: white;
  color: var(--gray-dark);
  border-color: var(--gray-light);
}
