/* DNAR Match Cards UI Improvements - Iteration 3 */

/* Match Grid Layout */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 30px 0;
}

/* Match Card Styling */
.match-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.match-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.match-card-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.match-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.match-card:hover .match-card-image img {
  transform: scale(1.05);
}

/* Match Overlay */
.match-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 30px 20px 20px;
  color: white;
}

.match-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.match-age {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.match-location {
  display: flex;
  align-items: center;
  font-size: 14px;
  opacity: 0.8;
}

.match-location i {
  margin-right: 5px;
}

/* Match Badges */
.match-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.match-badge {
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-dna {
  color: #0f75bd;
  border: 1px solid #0f75bd;
}

.badge-personality {
  color: #f72c93;
  border: 1px solid #f72c93;
}

.badge-new {
  background: linear-gradient(135deg, #0f75bd 0%, #f72c93 100%);
  color: white;
  border: none;
}

/* Match Actions */
.match-actions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.match-card:hover .match-actions {
  opacity: 1;
}

.match-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.btn-like {
  background: #f72c93;
  color: white;
}

.btn-like:hover {
  transform: scale(1.1);
  background: #e91e63;
}

.btn-pass {
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-pass:hover {
  transform: scale(1.1);
  border-color: #999;
}

.btn-message {
  background: #0f75bd;
  color: white;
}

.btn-message:hover {
  transform: scale(1.1);
  background: #0a5a91;
}

/* Match Compatibility Score */
.match-compatibility {
  background: linear-gradient(135deg, #0f75bd 0%, #f72c93 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 15px;
  display: inline-block;
}

.compatibility-high {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.compatibility-medium {
  background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

/* Match Details */
.match-details {
  padding: 20px;
  background: white;
}

.match-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.match-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  transition: all 0.2s ease;
}

.interest-tag:hover {
  background: #e0e0e0;
  color: #333;
}

/* Loading State */
.match-card-loading {
  background: #f5f5f5;
  height: 450px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.match-card-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Empty State */
.matches-empty {
  text-align: center;
  padding: 80px 20px;
}

.matches-empty-icon {
  font-size: 80px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.matches-empty h3 {
  font-size: 24px;
  color: #666;
  margin-bottom: 10px;
}

.matches-empty p {
  font-size: 16px;
  color: #999;
  margin-bottom: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .matches-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .match-card-image {
    height: 300px;
  }
  
  .match-actions {
    opacity: 1;
    bottom: 15px;
    right: 15px;
  }
  
  .match-action-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}