/* 🌸 BASIS */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fdf6f8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.profile-container {
  display: block;
  flex: 1;
}

.profile-info {
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.profile-image {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  margin: 0 auto 20px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.profile-details {
  text-align: center;
}

.profile-details h1 {
  margin: 0 0 12px;
  color: #c2185b;
  font-size: 3rem;
}

.profile-details p {
  color: #555;
  line-height: 1.5;
}

.profile-traits {
  margin-top: 20px;
}

.profile-traits h2 {
  text-align: center;
  color: #c2185b;
  margin-bottom: 15px;
}

.profile-traits table {
  margin: 0 auto;
}

.chat-photo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  margin-top: 25px;
}

.chat-photo-strip img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-photo-strip img:hover {
  transform: scale(1.08);
}

#description em {
    transition: opacity 0.25s ease, background-color 0.8s ease;
}

#description em.ai-updated {
    background-color: #fff8b3;
}

.translation-notice {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.75em;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.translation-notice.visible {
  max-height: 50px;
  margin: 0 0 8px 0;
  padding: 7px 10px;
  opacity: 1;
  transform: translateY(0);
}

.translation-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:8px;
    font-size:.75em;
    color:#777;
}

.translation-bar a{
    color:#d81b60;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;
}

.translation-bar a:hover{
    text-decoration:underline;
}

/* LOADING */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: #c2185b;
  font-size: 1.2em;
}

.loading-heart {
  font-size: 48px;
  animation: spin 1.6s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#mainPhoto {
  transition: all 0.3s ease;
  cursor: pointer;
}

#mainPhoto:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* 📱 MOBIEL */
@media (max-width: 768px) {

  .profile-info {
    padding: 20px 16px;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .profile-details h1 {
    font-size: 2.2rem;
  }

  .profile-traits table {
    width: 100%;
    font-size: 0.95em;
  }

  .chat-photo-strip img {
    width: 70px;
    height: 70px;
  }
}