/* Styles specific to the profile page */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.profile-hero img {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.35);
}

.profile-hero-info h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.4rem;
  color: #f8fafc;
}

.profile-hero-plan {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(139, 92, 246, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 0.4rem;
}

.profile-card {
  padding: 1.5rem;
  border-radius: 16px;
}

.profile-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.profile-note {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.profile-input {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #fff;
}

.flag-select {
  position: relative;
}

.flag-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(0,0,0,0.3);
  color: #e2e8f0;
  cursor: pointer;
}

.flag-select-btn .flag-emoji {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  display: inline-block;
}

.flag-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(15, 10, 31, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.flag-select-menu.open {
  display: flex;
}

.flag-select-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
}

.flag-select-menu button:hover {
  background: rgba(139, 92, 246, 0.2);
}

.profile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: #e2e8f0;
}

/* container for preference checkboxes, two‑column grid when space allows */
.toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}

.profile-subheading {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 1rem 0 0.3rem 0;
}
