/* =========================================================
   Profile Modal - User Profile with Activity Feed
   ========================================================= */

.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.profile-modal.visible {
  opacity: 1;
  visibility: visible;
}

.profile-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  cursor: pointer;
}

.profile-modal-container {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 1040px;  /* 2× previous (520 → 1040) */
  width: 90%;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-modal-header {
  position: relative;
  height: 300px;  /* 1.5× previous (200 → 300) */
  background: linear-gradient(135deg, rgba(155, 226, 242, 0.1), rgba(232, 153, 242, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  z-index: 1;
}

.profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.profile-header-image {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-modal-body {
  padding: 24px;
}

.profile-info-section {
  margin-bottom: 24px;
}

.profile-name-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-display-name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.online-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(126, 224, 184, 0.15);
  border-radius: 999px;
  font-size: 12px;
  color: #7ee0b8;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #7ee0b8;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.profile-actions-section {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-action-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.profile-action-btn:hover {
  background: rgba(155, 226, 242, 0.15);
  color: rgba(155, 226, 242, 0.9);
  border-color: rgba(155, 226, 242, 0.3);
}

.profile-message-btn {
  flex: 2;
}

.profile-notif-btn,
.profile-menu-btn {
  flex: 1;
  padding: 12px;
}

.profile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.profile-activity-section {
  margin-top: 16px;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.activity-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.activity-date {
  flex: 1;
}

.visibility-badge {
  font-size: 12px;
  opacity: 0.7;
}

.profile-menu-dropdown {
  position: fixed;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-width: 160px;
  z-index: 10002;
}

.profile-menu-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background-color: rgba(155, 226, 242, 0.1);
  color: rgba(155, 226, 242, 0.9);
}

/* =========================================================
   Notification Preferences Modal
   ========================================================= */

.notification-prefs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-prefs-modal.visible {
  opacity: 1;
  visibility: visible;
}

.notification-prefs-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.notification-prefs-container {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.notification-prefs-head {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-prefs-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.notification-prefs-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-prefs-body {
  padding: 20px;
}

.notif-pref-option {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-pref-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.notif-pref-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.notif-pref-option label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  cursor: pointer;
  display: block;
  margin-bottom: 6px;
}

.notif-pref-desc {
  margin: 4px 0 0 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.3;
}

.notification-prefs-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.notif-pref-cancel,
.notif-pref-save {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-pref-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.notif-pref-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.notif-pref-save {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: var(--ink);
  font-weight: 600;
}

.notif-pref-save:hover {
  opacity: 0.9;
}

/* =========================================================
   Report User Modal
   ========================================================= */

.report-user-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-user-modal.visible {
  opacity: 1;
  visibility: visible;
}

.report-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.report-modal-container {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.report-modal-head {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-modal-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.report-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-modal-body {
  padding: 20px;
}

.report-modal-intro {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.4;
}

.report-reasons {
  margin-bottom: 16px;
}

.report-reason-option {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.report-reason-option input[type="radio"] {
  margin-top: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.report-reason-option label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  flex: 1;
}

.report-other-text {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.report-other-text textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 13px;
  resize: none;
  outline: none;
}

.report-other-text textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.char-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  text-align: right;
}

.report-modal-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.report-cancel-btn,
.report-submit-btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.report-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.report-submit-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: #fff;
  font-weight: 600;
}

.report-submit-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   Toast Notification
   ========================================================= */

.profile-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2d5a2d;
  color: #7ee0b8;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(126, 224, 184, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10003;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.profile-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Mobile Responsive
   ========================================================= */

@media (max-width: 600px) {
  .profile-modal-container {
    width: 95%;
    max-width: 100%;
  }

  .profile-header-image {
    width: 240px;
    height: 240px;
  }

  .profile-display-name {
    font-size: 24px;
  }

  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions-section {
    flex-direction: column;
  }

  .profile-action-btn {
    flex: 1 !important;
  }

  .profile-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
