/* TaskRabbit-Style Provider Cards - Mobile Optimized */

/* Main Container */
.providers-grid-single {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination-btn {
  background: white;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.pagination-btn.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.pagination-btn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
  margin: 0 16px;
}

/* Provider Card - Mobile First Design */
.provider-card-taskrabbit {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 1rem;
}

.provider-card-taskrabbit:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Mobile Layout - Single Column */
.provider-mobile-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.provider-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid #f3f4f6;
  background: #f9fafb;
  flex-shrink: 0;
}

.provider-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-avatar-large .avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF5722, #FF7043);
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verified-badge-large {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Provider Info Section */
.provider-mobile-info {
  flex: 1;
  min-width: 0;
}

.provider-mobile-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.provider-name-btn {
  background: transparent;
  border: none;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.provider-name-btn:hover {
  color: #10b981;
  text-decoration: underline;
}

.provider-price-large {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}

.provider-minimum {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

/* Stats List - Mobile Optimized */
.provider-stats-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.provider-stats-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  color: #fbbf24;
  font-size: 14px;
}

.rating-score {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.task-count-primary {
  font-weight: 500;
  color: #374151;
}

.task-count-secondary {
  color: #6b7280;
}

.vehicle-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-icon {
  color: #6b7280;
  font-size: 12px;
}

/* Description Section */
.provider-description {
  margin-bottom: 16px;
}

.provider-description-text {
  color: #4b5563;
  line-height: 1.4;
  font-size: 14px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-description-text.expanded {
  -webkit-line-clamp: none;
  overflow: visible;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: #10b981;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* Action Button */
.btn-select-continue {
  background: #10b981;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 12px;
}

.btn-select-continue:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Trust Note */
.provider-trust-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #065f46;
}

.trust-icon {
  color: #10b981;
  font-size: 14px;
  flex-shrink: 0;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  .providers-grid-single {
    padding: 0;
  }
  
  .provider-card-taskrabbit {
    padding: 24px;
    margin-bottom: 1.5rem;
  }
  
  .provider-mobile-header {
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .provider-avatar-large {
    width: 100px;
    height: 100px;
  }
  
  .provider-avatar-large .avatar-fallback {
    font-size: 22px;
  }
  
  .verified-badge-large {
    width: 24px;
    height: 24px;
    font-size: 12px;
    bottom: 4px;
    right: 4px;
  }
  
  .provider-name-btn {
    font-size: 20px;
  }
  
  .provider-price-large {
    font-size: 18px;
  }
  
  .provider-stats-list {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .provider-stats-list li {
    font-size: 14px;
  }
  
  .rating-star {
    font-size: 16px;
  }
  
  .provider-description-text {
    font-size: 15px;
  }
  
  .btn-select-continue {
    max-width: 300px;
    margin: 0 auto 16px auto;
    display: block;
  }
}

/* Large Desktop Layout - Two Column */
@media (min-width: 1024px) {
  .provider-card-taskrabbit {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
  }
  
  .provider-left-section {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .provider-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }
  
  .provider-mobile-header,
  .provider-mobile-info,
  .provider-mobile-title {
    display: none;
  }
  
  .provider-header-taskrabbit {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }
  
  .provider-description {
    margin-bottom: 16px;
  }
  
  .how-i-help-section {
    margin-top: 8px;
  }
  
  .how-i-help-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
  }
  
  .view-profile-btn {
    background: transparent;
    color: #10b981 !important;
    border: 2px solid #e2e8f0 !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
  }
  
  .view-profile-btn:hover,
  .provider-card .view-profile-btn:hover,
  .taskrabbit-card .view-profile-btn:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3) !important;
    text-decoration: none !important;
  }
  
  .provider-chat-note {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    text-align: center;
    max-width: 160px;
  }
  
  .recent-review-section {
    display: flex;
    gap: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
  }
  
  .reviewer-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
  }
  
  .reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .review-content {
    flex: 1;
    min-width: 0;
  }
  
  .review-author-line {
    margin-bottom: 4px;
    font-size: 14px;
  }
  
  .review-author-name {
    font-weight: 600;
    color: #111827;
  }
  
  .review-date {
    color: #6b7280;
  }
  
  .review-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
    margin: 0;
  }
} 