/* =========================================================
   ZAWAJ VIP — FAVORITES
   نفس هوية وألوان لوحة المستخدم المعتمدة
   ========================================================= */

.favorites-app {
  min-height: 100vh;
}

.favorites-dashboard-link {
  color: var(--teal-title, #075e59) !important;
  background: var(--teal-card, #dff8f4) !important;
}

.favorites-active-link {
  position: relative;
  color: #fff5fb !important;
  background:
    linear-gradient(
      135deg,
      #8f214d,
      #c72f68,
      #e85389
    ) !important;

  border-color: rgba(143, 33, 77, 0.38) !important;

  box-shadow:
    0 11px 28px rgba(174, 44, 96, 0.28) !important;
}

.favorites-active-link::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: -7px;
  height: 4px;
  border-radius: 999px;
  background: #a96a0b;
}

/* Hero */

.favorites-hero {
  padding: 42px 0 23px;
}

.favorites-hero-card {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(340px, 0.7fr);
  align-items: center;
  gap: 30px;

  min-height: 390px;
  padding: clamp(32px, 5vw, 60px);

  border: 2px solid rgba(175, 83, 124, 0.19);
  border-radius: 34px;

  background:
    linear-gradient(
      135deg,
      #ffdbea 0%,
      #efe5ff 48%,
      #dcf7f3 100%
    );

  box-shadow:
    0 24px 65px rgba(93, 34, 63, 0.17);
}

.favorites-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.favorites-glow-one {
  width: 370px;
  height: 370px;
  top: -210px;
  inset-inline-start: -120px;

  background:
    radial-gradient(
      circle,
      rgba(199, 47, 104, 0.22),
      rgba(199, 47, 104, 0)
    );
}

.favorites-glow-two {
  width: 330px;
  height: 330px;
  bottom: -190px;
  inset-inline-end: -90px;

  background:
    radial-gradient(
      circle,
      rgba(104, 73, 201, 0.19),
      rgba(104, 73, 201, 0)
    );
}

.favorites-hero-content,
.favorites-statistics {
  position: relative;
  z-index: 2;
}

.favorites-hero-content h1 {
  max-width: 800px;
  margin: 0;

  color: #8f214d;

  font-size: clamp(43px, 5vw, 65px);
  font-weight: 700;
  line-height: 1.35;
}

.favorites-hero-content p {
  max-width: 820px;
  margin: 17px 0 0;

  color: #654554;

  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.95;
}

.favorites-hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;

  margin-top: 28px;
}

.favorites-refresh-button {
  color: #49328f !important;

  background:
    linear-gradient(
      135deg,
      #ded4ff,
      #eee9ff
    ) !important;

  border: 2px solid rgba(104, 73, 201, 0.25) !important;
}

/* Statistics */

.favorites-statistics {
  display: grid;
  gap: 14px;
}

.favorite-stat {
  min-height: 100px;

  display: flex;
  align-items: center;
  gap: 17px;

  padding: 19px 21px;

  border: 2px solid transparent;
  border-radius: 22px;

  box-shadow:
    0 14px 35px rgba(76, 30, 52, 0.11);
}

.favorite-stat-icon {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;

  border-radius: 19px;

  font-size: 29px;
}

.favorite-stat small,
.favorite-stat strong {
  display: block;
}

.favorite-stat small {
  color: #614554;
  font-size: 15px;
  font-weight: 700;
}

.favorite-stat strong {
  margin-top: 1px;
  color: #8f214d;
  font-size: 31px;
  font-weight: 700;
}

.favorite-stat-total {
  border-color: rgba(199, 47, 104, 0.2);

  background:
    linear-gradient(
      135deg,
      #ffd1e1,
      #ffe8f0
    );
}

.favorite-stat-total .favorite-stat-icon {
  background: rgba(255, 255, 255, 0.38);
}

.favorite-stat-online {
  border-color: rgba(20, 137, 90, 0.2);

  background:
    linear-gradient(
      135deg,
      #caefdc,
      #e3f8ed
    );
}

.favorite-stat-online .favorite-stat-icon {
  background: rgba(255, 255, 255, 0.38);
}

.favorite-stat-governorates {
  border-color: rgba(104, 73, 201, 0.2);

  background:
    linear-gradient(
      135deg,
      #ddd4ff,
      #eee9ff
    );
}

.favorite-stat-governorates .favorite-stat-icon {
  background: rgba(255, 255, 255, 0.38);
}

/* Content */

.favorites-content {
  padding: 27px 0 64px;
}

.favorites-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 22px;
}

.favorites-section-heading h2 {
  margin: 0;

  color: #8f214d;

  font-size: clamp(35px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.35;
}

.favorites-section-heading p {
  margin: 7px 0 0;

  color: #684a59;

  font-size: 18px;
  font-weight: 600;
}

.favorites-back-link {
  min-height: 55px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 19px;

  color: #075e59;

  background:
    linear-gradient(
      135deg,
      #c9f2ec,
      #e4faf7
    );

  border: 2px solid rgba(8, 127, 119, 0.23);
  border-radius: 16px;

  box-shadow:
    0 12px 28px rgba(8, 100, 94, 0.1);

  font-size: 16px;
  font-weight: 700;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.favorites-back-link:hover {
  transform: translateY(-2px);

  box-shadow:
    0 17px 34px rgba(8, 100, 94, 0.16);
}

/* Filters */

.favorites-filters {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.3fr)
    minmax(210px, 0.7fr)
    minmax(220px, 0.72fr)
    auto;
  align-items: end;
  gap: 14px;

  margin-bottom: 27px;
  padding: 27px;

  background:
    linear-gradient(
      135deg,
      #ffe4ee,
      #eee7ff,
      #ddf7f3
    );

  border: 2px solid rgba(163, 78, 116, 0.2);
  border-radius: 25px;

  box-shadow:
    0 20px 50px rgba(93, 34, 63, 0.15);
}

.favorite-filter-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.favorite-filter-field label {
  color: #8f214d;

  font-size: 17px;
  font-weight: 700;
}

.favorite-filter-field input,
.favorite-filter-field select {
  width: 100%;
  min-height: 59px;

  padding: 13px 17px;

  color: #39232e;
  background: #f3e6f1;

  border: 2px solid rgba(137, 71, 106, 0.2);
  border-radius: 16px;
  outline: none;

  font-size: 17px;
  font-weight: 600;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.favorite-filter-field:nth-child(2) select {
  color: #075e59;
  background: #ddf5f1;

  border-color: rgba(8, 127, 119, 0.2);
}

.favorite-filter-field:nth-child(3) select {
  color: #49328f;
  background: #e9e2ff;

  border-color: rgba(104, 73, 201, 0.2);
}

.favorite-filter-field input:focus,
.favorite-filter-field select:focus {
  border-color: #6849c9;

  box-shadow:
    0 0 0 5px rgba(104, 73, 201, 0.12);
}

.favorite-search-control {
  position: relative;
}

.favorite-search-control > span {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;

  z-index: 2;

  transform: translateY(-50%);

  font-size: 20px;
}

.favorite-search-control input {
  padding-inline-start: 54px;
}

.favorites-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.favorites-search-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #49328f,
      #6849c9,
      #856de0
    ) !important;

  border: 2px solid rgba(73, 50, 143, 0.2) !important;

  box-shadow:
    0 12px 28px rgba(73, 50, 143, 0.24);
}

.favorites-reset-button {
  color: #8f214d !important;

  background:
    linear-gradient(
      135deg,
      #ffd4e3,
      #ffe7ee
    ) !important;

  border: 2px solid rgba(199, 47, 104, 0.2) !important;
}

/* Grid */

.favorites-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Favorite Card */

.favorite-member-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 2px solid rgba(158, 70, 108, 0.2);
  border-radius: 27px;

  box-shadow:
    0 20px 50px rgba(93, 34, 63, 0.15);

  transition:
    transform 0.23s ease,
    box-shadow 0.23s ease,
    opacity 0.3s ease;
}

.favorite-member-card:nth-child(4n + 1) {
  background:
    linear-gradient(
      180deg,
      #ffe2ed,
      #fff0f5
    );
}

.favorite-member-card:nth-child(4n + 2) {
  background:
    linear-gradient(
      180deg,
      #e9e2ff,
      #f5f1ff
    );
}

.favorite-member-card:nth-child(4n + 3) {
  background:
    linear-gradient(
      180deg,
      #daf5f1,
      #ebfbf8
    );
}

.favorite-member-card:nth-child(4n + 4) {
  background:
    linear-gradient(
      180deg,
      #ffe8c9,
      #fff4e4
    );
}

.favorite-member-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 30px 72px rgba(93, 34, 63, 0.22);
}

.favorite-member-card.removing {
  opacity: 0;
  transform: scale(0.93) translateY(20px);
}

.favorite-member-photo {
  position: relative;
  overflow: hidden;

  aspect-ratio: 4 / 3;

  background:
    linear-gradient(
      145deg,
      #ffdce9,
      #ded5ff,
      #d7f4ef
    );
}

.favorite-member-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.favorite-member-card:hover .favorite-member-photo img {
  transform: scale(1.045);
}

.favorite-member-placeholder {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  font-size: 82px;
}

.favorite-vip-badge {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;

  padding: 8px 14px;

  color: #fff5cb;

  background:
    linear-gradient(
      135deg,
      #5f3b00,
      #9b6811,
      #d8a539
    );

  border: 1px solid #e7bf59;
  border-radius: 12px;

  box-shadow:
    0 8px 24px rgba(126, 82, 9, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.favorite-online-badge {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 13px;

  color: #08704a;
  background: #daf5e7;

  border: 1px solid rgba(20, 137, 90, 0.22);
  border-radius: 999px;

  box-shadow:
    0 8px 20px rgba(31, 97, 71, 0.15);

  font-size: 13px;
  font-weight: 700;
}

.favorite-online-badge::before {
  content: "";

  width: 10px;
  height: 10px;

  border-radius: 50%;
  background: #14895a;

  box-shadow:
    0 0 0 5px rgba(20, 137, 90, 0.14);
}

.favorite-member-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 24px;
}

.favorite-member-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.favorite-member-name {
  margin: 0;

  color: #8f214d;

  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
}

.favorite-member-location {
  margin: 5px 0 0;

  color: #075e59;

  font-size: 17px;
  font-weight: 700;
}

.favorite-match-badge {
  flex: 0 0 auto;

  padding: 8px 13px;

  color: #49328f;
  background: #ddd4ff;

  border: 1px solid rgba(104, 73, 201, 0.24);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
}

.favorite-member-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  margin: 16px 0;
}

.favorite-member-tags span {
  padding: 8px 13px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
}

.favorite-age-tag {
  color: #8f214d;
  background: #ffd7e5;
}

.favorite-marital-tag {
  color: #774b05;
  background: #ffe6a5;
}

.favorite-member-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.favorite-member-detail {
  min-height: 84px;

  padding: 14px;

  border: 1px solid rgba(91, 53, 77, 0.09);
  border-radius: 15px;
}

.favorite-member-detail:nth-child(1) {
  background: #dff5f1;
}

.favorite-member-detail:nth-child(2) {
  background: #e7e0ff;
}

.favorite-member-detail small,
.favorite-member-detail strong {
  display: block;
}

.favorite-member-detail small {
  color: #725868;

  font-size: 13px;
  font-weight: 600;
}

.favorite-member-detail strong {
  margin-top: 3px;

  color: #35202b;

  font-size: 17px;
  font-weight: 700;
}

.favorite-added-date {
  margin: 14px 0 0;
  padding: 10px 13px;

  color: #74490b;
  background: #ffecc0;

  border-radius: 13px;

  font-size: 13px;
  font-weight: 700;
}

.favorite-member-actions {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 9px;

  margin-top: auto;
  padding-top: 19px;
}

.favorite-profile-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #8f214d,
      #c72f68,
      #e85389
    ) !important;

  border: 0 !important;
}

.favorite-chat-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #49328f,
      #6849c9,
      #856de0
    ) !important;

  border: 0 !important;
}

.favorite-remove-button {
  grid-column: 1 / -1;

  min-height: 53px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 17px;

  color: #922b41;

  background:
    linear-gradient(
      135deg,
      #ffd1da,
      #ffe4e9
    );

  border: 2px solid rgba(202, 55, 81, 0.23);
  border-radius: 15px;

  font-size: 16px;
  font-weight: 700;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.favorite-remove-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 27px rgba(202, 55, 81, 0.17);
}

.favorite-remove-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* States */

.favorites-state {
  min-height: 390px;

  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;

  padding: 45px;

  background:
    linear-gradient(
      135deg,
      #ffe3ed,
      #eee7ff,
      #ddf7f3
    );

  border: 2px dashed rgba(147, 61, 101, 0.31);
  border-radius: 30px;

  text-align: center;

  box-shadow:
    0 20px 50px rgba(93, 34, 63, 0.12);
}

.favorites-state strong {
  color: #8f214d;

  font-size: 25px;
  font-weight: 700;
}

.favorites-state h3 {
  max-width: 720px;
  margin: 0;

  color: #8f214d;

  font-size: 31px;
  font-weight: 700;
  line-height: 1.45;
}

.favorites-state p {
  max-width: 670px;
  margin: 0;

  color: #604754;

  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.favorites-empty-icon,
.favorites-error-icon {
  width: 100px;
  height: 100px;

  display: grid;
  place-items: center;

  border-radius: 31px;

  font-size: 51px;
}

.favorites-empty-icon {
  background:
    linear-gradient(
      145deg,
      #ffd0e0,
      #e1d7ff
    );

  box-shadow:
    0 16px 38px rgba(156, 49, 94, 0.17);
}

.favorites-error-icon {
  background:
    linear-gradient(
      145deg,
      #ffd7dd,
      #ffe8c7
    );
}

.favorites-empty-badge {
  padding: 8px 15px;

  color: #49328f;
  background: #ded5ff;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 700;
}

.favorites-empty-button {
  margin-top: 8px;
}

/* Confirmation */

.favorites-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(51, 25, 39, 0.48);
  backdrop-filter: blur(9px);
}

.favorites-confirm-dialog {
  width: min(100%, 470px);

  display: grid;
  justify-items: center;
  gap: 13px;

  padding: 35px;

  background:
    linear-gradient(
      145deg,
      #ffe1eb,
      #eee6ff,
      #e2f7f4
    );

  border: 2px solid rgba(151, 61, 101, 0.25);
  border-radius: 29px;

  box-shadow:
    0 30px 90px rgba(48, 17, 32, 0.31);

  text-align: center;
}

.confirm-heart-icon {
  width: 82px;
  height: 82px;

  display: grid;
  place-items: center;

  border-radius: 26px;
  background: #ffd2dc;

  font-size: 42px;
}

.favorites-confirm-dialog h3 {
  margin: 0;

  color: #8f214d;

  font-size: 29px;
  font-weight: 700;
}

.favorites-confirm-dialog p {
  margin: 0;

  color: #604754;

  font-size: 17px;
  font-weight: 600;
}

.confirm-actions {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;

  margin-top: 8px;
}

.confirm-remove-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #952f45,
      #d14a62
    ) !important;

  border: 0 !important;
}

.confirm-cancel-button {
  color: #49328f !important;
  background: #ded6ff !important;

  border: 2px solid rgba(104, 73, 201, 0.2) !important;
}

/* Responsive */

@media (max-width: 1180px) {
  .favorites-hero-card {
    grid-template-columns: 1fr;
  }

  .favorites-statistics {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .favorite-stat {
    min-width: 0;
  }

  .favorites-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 800px) {
  .favorites-hero {
    padding-top: 23px;
  }

  .favorites-hero-card {
    min-height: auto;
    padding: 28px 20px;

    border-radius: 27px;
  }

  .favorites-hero-content h1 {
    font-size: 39px;
  }

  .favorites-hero-content p {
    font-size: 18px;
  }

  .favorites-statistics,
  .favorites-filters,
  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .favorites-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-back-link {
    width: 100%;
  }

  .favorites-filters {
    padding: 21px;
  }

  .favorites-filter-actions {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .favorite-member-name {
    font-size: 27px;
  }

  .favorites-state {
    min-height: 350px;
    padding: 31px 19px;
  }
}

@media (max-width: 480px) {
  .favorites-hero-actions,
  .favorites-filter-actions,
  .favorite-member-details,
  .favorite-member-actions,
  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .favorites-hero-actions {
    display: grid;
  }

  .favorite-remove-button {
    grid-column: auto;
  }

  .favorites-confirm-dialog {
    padding: 28px 19px;
  }
}
