/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background-image: url("images/chat.jpg"); /* If style.css is in /public, this is correct. If it's in /public/css/, use ../images/chat.jpg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  margin: 0;
  color: white;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 14px 20px;
  font-size: 18px;
  text-align: center;
}

.container {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  color: white;
}

h1, h2 {
  color: #ec4899; /* LuxDating pink headings */
  text-align: center;
}

/* Buttons */
.btn,
button {
  display: inline-block;
  margin: 10px;
  padding: 12px 24px;
  background: black;
  color: #ec4899;
  text-decoration: none;
  border: 2px solid #ec4899;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn.small,
button.small { /* allow <button class="small"> too */
  padding: 8px 16px;
  font-size: 0.9em;
}

.btn:hover,
button:hover {
  background-color: #ec4899;
  color: black;
}

.btn:disabled,
button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

/* Form inputs */
input[type="file"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #000;
}

.error {
  color: #ff6b6b;
  font-weight: bold;
}

/* Shared size + shape for paired buttons */
.btn-back,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;            /* same height */
  min-width: 220px;        /* same width (adjust if you want) */
  padding: 0 18px;         /* consistent padding */
  border-radius: 8px;
  border: 2px solid #ec4899;
  font-weight: 700;
  cursor: pointer;
}

/* Outline style for Back */
.btn-back {
  background: #000;
  color: #ec4899;
}
.btn-back:hover { background: #ec4899; color: #000; }

/* Solid style for Save */
.save-btn {
  background: #ec4899;
  color: #000;
}
.save-btn:hover { filter: brightness(1.08); }

/* Only affects buttons inside an .edit-profile page wrapper */
.edit-profile .btn-back,
.edit-profile .save-btn,
.edit-profile #saveHobbies {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 44px;
  padding: 0 18px;
}

/* Truncate long bios to 3 lines (single clean rule) */
.bio{
  margin: 0 0 10px;
  opacity: .95;

  /* Standard multi-line clamp (satisfies the linter) */
  display: block;
  line-clamp: 3;

  /* WebKit multi-line clamp (actual multi-line truncation in most browsers) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;
}

/* Preferences checkboxes layout (2 columns, aligned) */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px 24px;
  margin-bottom: 16px;
}

.checkbox-group label {
  display: flex;             /* checkbox + label on one line */
  align-items: center;
  gap: 8px;
  margin: 0;                 /* override any global label margins */
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  width: auto;               /* don't stretch */
  margin: 0;                 /* remove big margins */
  padding: 0;                /* important: no padding on the input */
  height: 18px;              /* tidy sizing */
  accent-color: #ec4899;     /* (optional) pink tick to match brand */
}

@media (max-width: 520px) {
  .checkbox-group { grid-template-columns: 1fr; } /* stack on small screens */
}

