/* Professional Profile Card Styles */
.profile-container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
}

/* Main Profile Card */
.profile-card-top {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 40px;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 16px 48px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.profile-card-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec1337 0%, #ff4d6d 100%);
  opacity: 0.8;
}

.profile-card-top>* {
  position: relative;
  z-index: 1;
}

/* Photo Section */
.photo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.08);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-frame:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.12);
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.photo-frame:hover::after {
  opacity: 1;
}

.photo-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame .photo-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Photo Thumbnails */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}

.thumb-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.gallery-thumb-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  aspect-ratio: 3 / 4;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gallery-thumb-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile Details Section */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.profile-name {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-id {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-id .dot {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.last-seen {
  color: #ec1337;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #fff4f4 0%, #ffe3e8 100%);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(236, 19, 55, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Profile Score Ring */
.profile-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 8px;
  background: linear-gradient(135deg, #fff4f4 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid rgba(236, 19, 55, 0.1);
}

.score-ring {
  filter: drop-shadow(0 2px 4px rgba(236, 19, 55, 0.1));
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ec1337;
  letter-spacing: -0.02em;
}

/* Badges */
.profile-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.badge-verified {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-verified:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.badge-premium {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.badge-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

/* Highlights Grid */
.profile-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 19, 55, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(236, 19, 55, 0.3);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4f4 0%, #ffe3e8 100%);
  color: #ec1337;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(236, 19, 55, 0.15);
  transition: all 0.25s ease;
}

.highlight-card:hover .icon-box {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(236, 19, 55, 0.15);
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.highlight-content .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

.highlight-content .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action Buttons Row */
.profile-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-action:hover::before {
  opacity: 1;
}

.btn-interest {
  background: linear-gradient(135deg, #ec1337 0%, #dc2626 100%);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(236, 19, 55, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-interest:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(236, 19, 55, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-interest:active {
  transform: translateY(0);
}

.btn-shortlist {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #334155;
}

.btn-shortlist:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-edit {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Stats Mini */
.profile-stats-mini {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #475569;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.stat-item svg {
  color: #64748b;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-enter {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-enter-child {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(236, 19, 55, 0.25), 0 0 0 0 rgba(236, 19, 55, 0.4);
  }

  50% {
    box-shadow: 0 4px 12px rgba(236, 19, 55, 0.25), 0 0 0 8px rgba(236, 19, 55, 0);
  }

  100% {
    box-shadow: 0 4px 12px rgba(236, 19, 55, 0.25), 0 0 0 0 rgba(236, 19, 55, 0);
  }
}

.pulse-animation {
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 900px) {
  .profile-card-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .photo-wrapper {
    max-width: 100%;
  }

  .photo-frame {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-header-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .profile-score {
    align-self: flex-start;
  }

  .profile-highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .highlight-card {
    padding: 14px;
  }

  .icon-box {
    width: 42px;
    height: 42px;
  }

  .profile-stats-mini {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .profile-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-action {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .profile-container {
    padding: 0 16px;
  }

  .profile-card-top {
    padding: 20px;
    border-radius: 20px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-highlights-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }
}