/* ─── Profile Search Page ──────────────────────────────────────────── */

/* ─── Hero & Filters ──────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, #6E2038 0%, #8B2842 30%, #5A1D32 70%, #3A3228 100%);
  position: relative;
}

.search-filters-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(45, 35, 25, 0.15);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8E7E6A;
}

.filter-select,
.filter-input {
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  border: 1px solid #DDD5C8;
  border-radius: 0.5rem;
  background: #FDFCFA;
  color: #3A3228;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #D4A017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #B8860B, #996F09);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #8B2842, #6E2038);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(139, 40, 66, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A83250, #8B2842);
  box-shadow: 0 6px 24px rgba(139, 40, 66, 0.35);
  transform: translateY(-2px);
}

/* ─── Profile Cards Grid ──────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ─── Profile Card ────────────────────────────────────────────────── */
.profile-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #EBE2D6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 35, 25, 0.12);
}

.profile-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #F5F0EA;
}

.profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.profile-card:hover .profile-card__photo img {
  transform: scale(1.05);
}

.profile-card__no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4B8A6;
}

.profile-card__gender-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
}

.profile-card__gender-badge--male {
  background: rgba(37, 99, 235, 0.85);
}

.profile-card__gender-badge--female {
  background: rgba(219, 39, 119, 0.85);
}

.profile-card__ai-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(253, 248, 232, 0.95), rgba(254, 243, 199, 0.95));
  border: 1px solid rgba(212, 160, 23, 0.6);
  font-size: 0.625rem;
  font-weight: 700;
  color: #92400e;
  backdrop-filter: blur(4px);
}

.profile-card__body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-card__id {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #D4A017;
  letter-spacing: 0.03em;
  margin-bottom: 0.125rem;
}

.profile-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3A3228;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.profile-card__detail {
  font-size: 0.75rem;
  color: #8E7E6A;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.profile-card__cta {
  display: block;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8B2842;
  transition: color 0.2s ease;
}

.profile-card:hover .profile-card__cta {
  color: #D4A017;
}

/* ─── Ad Banner in results ────────────────────────────────────────── */
.search-ad-banner {
  grid-column: 1 / -1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #F5F0EA;
  border: 1px solid #EBE2D6;
}

.search-ad-banner a {
  display: block;
}

.search-ad-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.search-ad-banner .ad-text {
  display: block;
  padding: 1rem;
  text-align: center;
  color: #6E604A;
  font-size: 0.875rem;
}

/* ─── Responsive Adjustments ──────────────────────────────────────── */
@media (max-width: 639px) {
  .search-filters-card {
    padding: 1rem;
  }

  .profile-card__body {
    padding: 0.625rem;
  }

  .profile-card__name {
    font-size: 0.875rem;
  }

  .profile-card__detail {
    font-size: 0.6875rem;
  }
}
