/* css/profile.css */
/* ============================================================
   Profile Page Styles
   ============================================================ */

.profile-page {
  min-height: 100dvh;
  background: var(--bg-main);
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
}

/* ── Cover & Avatar ──────────────────────────────────────── */
.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #003066 100%);
  position: relative;
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -40px;
  right: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ── Profile Info ────────────────────────────────────────── */
.profile-info-section {
  padding: 52px 24px 16px;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(0,75,135,0.08);
  color: var(--primary-color);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success-color);
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-email {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  direction: ltr;
  text-align: right;
}

/* ── Stats Row ───────────────────────────────────────────── */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Add Property Button ─────────────────────────────────── */
.add-property-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #e65c00 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
  transition: all 0.2s ease;
}

.add-property-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,0,0.4);
}

.add-property-btn i {
  width: 22px !important;
  height: 22px !important;
}

/* ── Section Card ────────────────────────────────────────── */
.profile-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin: 0 16px 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-row h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-row h3 i {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary-color);
}

.section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── Listing Mini Card ───────────────────────────────────── */
.listing-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.listing-mini-card:last-child {
  border-bottom: none;
}

.listing-mini-card:hover {
  background: var(--bg-subtle);
}

.listing-mini-img {
  width: 60px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

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

.listing-mini-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-mini-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.listing-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.status-draft    { background: #fef9c3; color: #854d0e; }
.status-active   { background: var(--success-bg); color: #065f46; }
.status-inactive { background: var(--bg-subtle); color: var(--text-secondary); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state i {
  width: 40px !important;
  height: 40px !important;
  opacity: 0.3;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
}

/* ── Menu Items ──────────────────────────────────────────── */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
  color: inherit;
  text-decoration: none;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover      { background: var(--bg-subtle); }

.menu-item i {
  width: 18px !important;
  height: 18px !important;
  color: var(--text-secondary);
}

.menu-item span {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}

.menu-item .menu-arrow {
  color: var(--border-color);
}

.menu-item.danger i,
.menu-item.danger span { color: #dc2626; }

/* ── Draft reminder banner ───────────────────────────────── */
.draft-banner {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.draft-banner:hover {
  box-shadow: var(--shadow-md);
}

.draft-banner i {
  width: 22px !important;
  height: 22px !important;
  color: #d97706;
  flex-shrink: 0;
}

.draft-banner-text strong {
  display: block;
  font-size: 0.88rem;
  color: #92400e;
  font-weight: 700;
}

.draft-banner-text span {
  font-size: 0.78rem;
  color: #b45309;
}

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, #e5e7eb 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
