:root {
  --cream: #fdf6ee;
  --warm: #f5e6d3;
  --blush: #e8b4a0;
  --rose: #c97b63;
  --brown: #7a4a3a;
  --dark: #2d1a14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Heebo", sans-serif;
  background: linear-gradient(180deg, #fdf6ee 0%, #ecddd8 100%);
  color: var(--dark);
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(253, 246, 238, 0.95);
}

.nav-logo {
  font-family: "Secular One", sans-serif;
  font-size: 1.5rem;
  color: var(--rose);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--rose);
}

.nav-btn {
  background: var(--rose);
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: "Heebo", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.nav-btn:hover {
  background: var(--brown);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--brown);
}

#profile {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 3rem;
}

.profile-card {
  display: flex;
  gap: 3rem;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(122, 74, 58, 0.22);
}

.profile-image-wrapper {
  width: 340px;
  min-width: 340px;
  position: relative;
  overflow: hidden;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 26, 20, 0.7));
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.change-photo-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: "Heebo", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.change-photo-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.profile-info {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-name {
  font-family: "Secular One", sans-serif;
  font-size: 2.5rem;
  color: var(--dark);
}

.profile-age {
  background: var(--warm);
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}

.profile-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--warm);
  color: var(--brown);
  border: 1px solid var(--blush);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-section h3 {
  font-family: "Secular One", sans-serif;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.7rem;
}

.profile-section p {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.7;
  font-weight: 300;
}

.traits {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.trait {
  background: var(--cream);
  border: 1px solid var(--blush);
  color: var(--brown);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: "Secular One", sans-serif;
  font-size: 1.8rem;
  color: var(--rose);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--brown);
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  nav {
    padding: 1rem 1.2rem;
  }

  .nav-links {
    display: flex;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(253, 246, 238, 0.85);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(232, 180, 160, 0.3);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

.nav-links a.active {
  color: var(--rose);
  font-weight: 700;
  pointer-events: none;
}

/* ===== GALLERY MODAL ===== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 20, 0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-box {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.gallery-modal-box h3 {
  font-family: "Secular One", sans-serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border 0.2s,
    transform 0.2s;
}

.gallery-thumb:hover {
  border-color: var(--rose);
  transform: scale(1.05);
}

.gallery-close {
  background: var(--warm);
  color: var(--brown);
  border: 1px solid var(--blush);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: "Heebo", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-close:hover {
  background: var(--blush);
}

/* ===== זום על תמונת הפרופיל ===== */
.profile-image-wrapper img {
  transition: transform 0.3s ease;
}

.profile-image-wrapper:hover img {
  transform: scale(1.05);
}

/* ===== קו תחתון נע בתפריט ===== */
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* ===== כפתור פועם ===== */
@keyframes pulse-btn {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.nav-btn {
  animation: pulse-btn 2s ease-in-out infinite;
}

/* ===== זמינות ===== */
.availability-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--warm);
  border: 1px solid var(--blush);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: "Heebo", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
  transition: all 0.2s;
}

.availability-btn:hover {
  border-color: var(--rose);
}

.availability-btn.unavailable {
  background: #fde8e8;
  border-color: #e05a5a;
  color: #e05a5a;
}

/* ===== יומן פגישות ===== */
.meeting-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meeting-form input {
  flex: 1;
  min-width: 100px;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--blush);
  background: var(--cream);
  font-family: "Heebo", sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
}

.meeting-form input:focus {
  border-color: var(--rose);
}

.meeting-form button {
  background: var(--rose);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: "Heebo", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.meeting-form button:hover {
  background: var(--brown);
}

.meeting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--warm);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.meeting-item span {
  color: var(--brown);
  font-weight: 300;
}

.meeting-item button {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
}

.meeting-item button:hover {
  color: #e05a5a;
}

.meeting-form select {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--blush);
  background: var(--cream);
  font-family: "Heebo", sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
  cursor: pointer;
}

.meeting-form select:focus {
  border-color: var(--rose);
}

/* ===== בחירת תאריך מותאמת ===== */
.date-picker {
  display: flex;
  gap: 0.4rem;
  flex: 1;
}

.date-picker select {
  flex: 1;
  padding: 0.5rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--blush);
  background: var(--cream);
  font-family: "Heebo", sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  text-align: center;
}

.date-picker select:focus {
  border-color: var(--rose);
}

.dark-mode-btn:hover {
  background: var(--warm);
}

body.dark {
  --cream: #2d1f18;
  --warm: #3a2820;
  --blush: #7a4a3a;
  --rose: #c97b63;
  --brown: #e8b4a0;
  --dark: #fdf6ee;
  background: linear-gradient(180deg, #2d1f18 0%, #3a2820 100%);
}

body.dark nav {
  background: rgba(45, 31, 24, 0.95);
  border-bottom-color: rgba(122, 74, 58, 0.4);
}

body.dark .step,
body.dark .review-card,
body.dark .why-card,
body.dark .why-card,
body.dark .dog-card,
body.dark .question-card,
body.dark .result-card,
body.dark .matches-list,
body.dark .match-item,
body.dark .chat-header,
body.dark .chat-input,
body.dark .profile-card {
  background: #3a2820;
  color: var(--dark);
}

body.dark .message.received {
  background: #4a3028;
  color: var(--dark);
}

body.dark .option-btn {
  background: #4a3028;
  color: var(--dark);
  border-color: var(--blush);
}

#clear-btn2 {
  background: none;
  border: 1px solid #e05a5a;
  color: #e05a5a;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
}

#clear-btn2:hover {
  background: #fde8e8;
}

/* ===== לוגו + כפתור לילה ===== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== מצב לילה ===== */
.dark-mode-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  background: white;
  border: 1px solid var(--blush);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(122, 74, 58, 0.2);
  transition: all 0.2s;
}

.dark-mode-btn:hover {
  background: var(--warm);
}

@media (max-width: 700px) {
  .profile-card {
    flex-direction: column;
    overflow-y: auto;
  }

  .profile-image-wrapper {
    width: 100%;
    min-width: unset;
    height: 250px;
  }

  .profile-info {
    padding: 1.2rem;
    gap: 1rem;
  }

  #profile {
    padding: 5rem 1rem 2rem;
    align-items: flex-start;
  }
}

.edit-profile-btn {
  background: var(--rose);
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 20, 0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.edit-modal.open { display: flex; }

.edit-modal-box {
  background: linear-gradient(135deg, #fff8f5 0%, #fde8d8 100%);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(122, 74, 58, 0.3);
  border: 1px solid var(--blush);
}

.edit-modal-box h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  text-align: center;
}

.edit-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.edit-field-full {
  grid-column: span 2;
}

.edit-modal-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 300;
  margin-bottom: 1.8rem;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.edit-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.03em;
}

.edit-field input,
.edit-field textarea {
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  border: 1.5px solid rgba(232, 180, 160, 0.5);
  background: white;
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(122, 74, 58, 0.06);
}

.edit-field input:focus,
.edit-field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 123, 99, 0.15);
}

.edit-field textarea {
  height: 60px;
  resize: none;
}

.edit-field input[type="file"] {
  background: white;
  cursor: pointer;
  padding: 0.6rem;
  font-size: 0.85rem;
}

.edit-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.edit-save-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--rose), var(--brown));
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 123, 99, 0.4);
  transition: all 0.2s;
}

.edit-save-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(201, 123, 99, 0.5);
}

.edit-cancel-btn {
  background: white;
  color: var(--brown);
  border: 1.5px solid var(--blush);
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-cancel-btn:hover {
  background: var(--warm);
}

body.dark .edit-modal-box {
  background: linear-gradient(135deg, #3a2820, #2d1f18);
  border-color: var(--blush);
}
 