/* css/my-friends.css — "Dostlarım" səhifəsi (mesaj yaz + dost sil).
   profile-view.css-in başlıq stilini təkrarlayır ki, vizual olaraq eyni ailədən görünsün. */

:root {
  --mf-primary: #6a11cb;
  --mf-primary-2: #2575fc;
  --mf-bg: #f5f7fa;
  --mf-text: #1a1a2e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--mf-bg);
  color: var(--mf-text);
  min-height: 100vh;
}

.mf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mf-back-btn {
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.mf-header-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.mf-header-spacer {
  width: 36px;
}

.mf-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mf-tabs {
  display: flex;
  gap: 6px;
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0 16px;
}

.mf-tab-btn {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px 6px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  position: relative;
}
.mf-tab-btn.active {
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
}

.mf-tab-badge {
  display: inline-block;
  margin-left: 6px;
  background: #e53e3e;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  padding: 1px 6px;
  vertical-align: middle;
}

.mf-tab-panel[hidden] { display: none; }

.mf-search-row {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0 16px;
}

#mfSearchInput {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
#mfSearchInput:focus { border-color: var(--mf-primary); }

.mf-action-btn.invite {
  background: rgba(99, 102, 241, .12);
  color: var(--mf-primary);
}
.mf-action-btn.accept {
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
}
.mf-action-btn.decline {
  background: rgba(229, 62, 62, .12);
  color: #e53e3e;
}
.mf-action-btn.add {
  width: auto;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
}
.mf-action-btn.add:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.mf-closest-section {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0 16px;
}

.mf-closest-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mf-closest-card {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
  position: relative;
}

.mf-closest-rank {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.mf-closest-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  margin: 10px auto 6px;
  display: block;
  border: 2px solid #fbbf24;
}

.mf-closest-name {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-dormant-section {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0 16px;
}

.mf-dormant-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mf-dormant-card {
  flex: 0 0 auto;
  width: 110px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.mf-dormant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  margin: 0 auto 6px;
  display: block;
  opacity: .85;
}

.mf-dormant-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.mf-dormant-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
}
.mf-dormant-btn.sent,
.mf-dormant-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.mf-suggest-section {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0 16px;
}

.mf-suggest-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 8px;
}

.mf-suggest-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mf-suggest-card {
  flex: 0 0 auto;
  width: 110px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.mf-suggest-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  margin: 0 auto 6px;
  display: block;
}

.mf-suggest-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-suggest-mutual {
  font-size: 10px;
  color: #9ca3af;
  margin: 2px 0 8px;
}

.mf-suggest-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
}
.mf-suggest-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.mf-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.mf-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(106, 17, 203, .2);
  border-top-color: var(--mf-primary);
  border-radius: 50%;
  animation: mf-spin .8s linear infinite;
}

@keyframes mf-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mf-spinner { animation: none; }
}

.mf-list {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.mf-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.mf-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
}
.mf-avatar-wrap .mf-avatar { width: 100%; height: 100%; }

.mf-birthday-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fbbf24;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  animation: mf-bday-pulse 1.6s ease-in-out infinite;
}
.mf-birthday-badge.sent {
  background: #d1d5db;
  animation: none;
  cursor: default;
}
@keyframes mf-bday-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.mf-bday-label {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  margin-top: 2px;
}

.mf-streak-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.mf-streak-text {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
}

.mf-streak-btn {
  border: 0;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
}
.mf-streak-btn.claimed,
.mf-streak-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.mf-info {
  flex: 1;
  min-width: 0;
}

.mf-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-actions {
  display: flex;
  gap: 8px;
}

.mf-action-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.mf-action-btn.message {
  background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-2) 100%);
  color: #fff;
}

.mf-action-btn.remove {
  background: rgba(229, 62, 62, .12);
  color: #e53e3e;
}

.mf-action-btn.key {
  background: rgba(255, 193, 7, .16);
  color: #d4a017;
}
.mf-action-btn.key.sent {
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
}

.mf-action-btn.unblock {
  width: auto;
  min-width: auto;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(0, 0, 0, .06);
  color: var(--mf-text);
  font-size: 13px;
  font-weight: 700;
}

.mf-empty {
  text-align: center;
  margin-top: 60px;
  opacity: .7;
}

/* 🎁 Hədiyyə göndər — mağazadan (bax js/magaza.js-dəki EYNİ kataloq/toqqulama). */
.mf-action-btn.gift {
  background: rgba(255, 105, 180, .16);
  color: #d63384;
}

/* Bu səhifə css/chat.css yükləmir (Font Awesome + öz faylı) — ona görə
   .modal/.modal-box (chat.css-dəki) sinifləri BURADA İŞLƏMƏZ (bax
   feedback_admin_transfer_modal_fixed.md-dəki eyni dərs). Öz, kiçik,
   tam-müstəqil pəncərə sistemi yazılıb, "mf-" prefiksi ilə. */
.mf-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-modal.hidden {
  display: none;
}
.mf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.mf-modal-box {
  position: relative;
  width: 90%;
  max-width: 380px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.mf-modal-box h3 {
  margin-bottom: 6px;
}
.mf-modal-hint {
  font-size: 12.5px;
  opacity: .7;
  margin-bottom: 12px;
}
.mf-modal-actions {
  margin-top: 12px;
}
.mf-modal-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
  font-size: 13.5px;
  background: rgba(0, 0, 0, .06);
  color: var(--mf-text);
  cursor: pointer;
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.gift-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--mf-text);
}
.gift-picker-item .gift-emoji {
  font-size: 24px;
}
.gift-picker-item .gift-name {
  font-size: 10px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.gift-picker-item .gift-cost {
  font-size: 10px;
  font-weight: 700;
  opacity: .75;
}
.gift-picker-item:disabled,
.gift-picker-item.disabled {
  opacity: .4;
  cursor: default;
}
