/**
 * PROFILE MUSEUM STYLES — GelatoMaps 5.4
 * User Profile "Mi Museo Personal"
 */

.profile-museum-modal {
  max-width: 600px;
  width: 96vw;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.profile-museum-container {
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border-radius: 14px;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.profile-avatar-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-ring-container .xp-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-avatar {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-hero-info {
  flex: 1;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.3px;
}

.profile-level {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.level-badge {
  background: linear-gradient(135deg, var(--teal), #14B8A6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.level-progress {
  font-size: 12px;
  color: var(--mid);
  font-weight: 500;
}

/* Stats Grid */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 16px 12px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.15);
  border-color: var(--teal);
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11px;
  color: var(--mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.profile-section {
  margin-bottom: 28px;
}

.profile-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.3px;
}

/* Map */
.profile-map {
  background: linear-gradient(135deg, #f8fafc, #f0f9ff);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge {
  padding: 16px 12px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  cursor: default;
}

.badge-unlocked {
  border-color: var(--teal);
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  animation: badgeShine 3s ease infinite;
}

@keyframes badgeShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.badge-unlocked:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.2);
}

.badge-locked {
  filter: grayscale(1) opacity(0.5);
  border-color: #cbd5e1;
}

.badge-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.badge-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.badge-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #cbd5e1;
  pointer-events: none;
}

/* Top Flavors Chart */
.top-flavors-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flavors-chart-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flavor-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flavor-label {
  width: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.flavor-bar-container {
  flex: 1;
  height: 32px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flavor-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  border-radius: 8px;
  position: relative;
  min-width: 0;
}

.flavor-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .profile-museum-container {
    padding: 16px 12px;
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .profile-avatar-ring-container {
    width: 120px;
    height: 120px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .stat-icon {
    font-size: 24px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .profile-section h2 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge {
    padding: 12px 8px;
  }

  .badge-icon {
    font-size: 24px;
  }

  .badge-name {
    font-size: 10px;
  }
}
