/*
 * DAMN GINA LOVE — PROFILE DESIGN SYSTEM
 * Single source of truth for all profile layouts.
 * Own profile and member profile use the same system.
 * Only --accent changes between users. Structure never changes.
 */

/* ── TOKENS ── */
:root {
  --accent:        #cc2222;
  --bg:            #000000;
  --surface:       #080808;
  --surface-2:     #0a0a0a;
  --surface-3:     #111111;
  --border:        rgba(255,255,255,0.06);
  --border-2:      rgba(255,255,255,0.08);
  --text-primary:  #ffffff;
  --text-secondary:#E0E0E0;
  --text-muted:    #B0B0B0;
  --text-dim:      #B0B0B0;
  --font:          -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  /* Spacing tokens */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
}

/* ── RESET ── */
.ds-profile * { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════
   NAV BAR
══════════════════════════════════════════ */
.ds-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
}
.ds-nav-logo {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ds-nav-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-3);
  background-size: cover;
  background-position: center 20%;
  border: 1.5px solid var(--border-2);
  overflow: hidden;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   ACCENT STRIPE
══════════════════════════════════════════ */
.ds-stripe {
  height: 3px;
  width: 100%;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
  transition: background 0.3s;
}

/* ══════════════════════════════════════════
   PROFILE HEADER CARD
══════════════════════════════════════════ */
.ds-profile-header {
  padding: 16px 16px 0;
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Avatar + Actions Row */
.ds-avatar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.ds-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.ds-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--surface-3);
  background-size: cover;
  background-position: center 20%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 12px rgba(255,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  overflow: hidden;
  cursor: pointer;
}
.ds-verified {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.ds-verified .hm-verified-flame {
  width: 14px;
  height: 14px;
  margin-left: 0;
  transform: none;
}

/* Action buttons */
/* Action buttons — own profile: column layout (Edit Profile above HerMatch) */
.ds-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  margin-top: 6px;
}
.ds-btn-primary {
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.ds-btn-secondary {
  background: none;
  border: 1px solid var(--border-2);
  color: #B0B0B0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.ds-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.ds-btn-secondary.sent { border-color: var(--accent); color: var(--accent); }
.ds-btn-outline {
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
  border: none;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.ds-btn-outline:hover {
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(204,0,0,0.4);
}
.ds-btn-outline:active { opacity: 0.75; box-shadow: none; }

/* ── Name Block ── */
.ds-name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ds-name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  font-style: normal;
  letter-spacing: 0.2px;
}
.ds-handle {
  font-family: var(--font);
  font-size: 15px;
  color: #A0A0A0;
  line-height: 1.5;
}
.ds-signature {
  font-family: var(--font);
  font-size: 15px;
  font-style: normal;
  color: var(--accent);
  line-height: 1.5;
}
.ds-meta {
  font-family: var(--font);
  font-size: 15px;
  color: #E0E0E0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.ds-meta-dot { color: var(--border-2); }
/* Tier badge — tiny pill, auto width, never stretches full width */
.ds-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ds-tier-badge {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.ds-bio {
  font-family: var(--font);
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.5;
  font-style: normal;
}

/* ── Social Icons ── */
.ds-socials {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  padding-bottom: var(--space-4);
}
.ds-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.ds-social-icon:hover { border-color: #666; }
.ds-social-icon svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════
   STATS ROW
══════════════════════════════════════════ */
.ds-stats {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.ds-stat {
  flex: 1;
  padding: 13px 0;
  text-align: center;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.ds-stat:last-child { border-right: none; }
.ds-stat:hover { background: #080808; }
.ds-stat-num {
  display: block;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}
.ds-stat-label {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B0B0B0;
  margin-top: 3px;
}

/* ══════════════════════════════════════════
   CTA CARD (HerMatch active indicator)
══════════════════════════════════════════ */
.ds-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0d0510, #1a0a14);
  border: 1px solid rgba(232, 180, 200, 0.15);
  border-radius: 12px;
  padding: 14px var(--space-4);
  margin: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: border-color 0.2s;
}
.ds-cta-card:hover { border-color: rgba(232,180,200,0.3); }
.ds-cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232, 180, 200, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ds-cta-icon svg { width: 18px; height: 18px; }
.ds-cta-text { flex: 1; min-width: 0; }
.ds-cta-title {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 800;
  color: #e8b4c8;
  margin-bottom: 2px;
}
.ds-cta-sub {
  font-family: var(--font);
  font-size: 10px;
  color: #B0B0B0;
}
.ds-cta-arrow {
  font-size: 16px;
  color: #e8b4c8;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PHOTOS — horizontal scroll strip
══════════════════════════════════════════ */
.ds-photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
}
.ds-photos-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B0B0B0;
}
.ds-photos-add {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
/* Horizontal scroll strip — shows ~3 at a time */
.ds-photos-strip {
  display: flex;
  flex-direction: row;
  gap: 3px;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 2px 0;
  width: 100%;
}
.ds-photos-strip::-webkit-scrollbar { display: none; }
/* Each photo item — exactly 1/3 of viewport wide so 3 show at once */
.ds-photos-strip .album-photo-wrap {
  flex: 0 0 32vw;
  width: 32vw;
  height: 32vw;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  max-width: none !important;
}
.ds-photos-strip .album-photo-wrap .album-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  cursor: pointer;
  max-width: none !important;
  border-radius: 0;
}
/* Lightbox for enlarged photo */
.ds-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ds-photo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* ══════════════════════════════════════════
   COMPOSER
══════════════════════════════════════════ */
.ds-composer {
  margin: var(--space-3) var(--space-4) var(--space-2);
  background: rgba(255,255,255,0.02);
  border: 1px solid #141414;
  border-radius: 14px;
  padding: var(--space-4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ds-composer-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ds-composer-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  background-size: cover;
  background-position: center 20%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}
.ds-composer-ta {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 42px;
  padding-top: 4px;
  line-height: 1.5;
}
.ds-composer-ta::placeholder { color: rgba(255,255,255,0.4); }
.ds-composer-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #111;
}
.ds-composer-icon {
  background: none;
  border: 1.5px solid var(--border-2);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.2s;
}
.ds-composer-icon:hover { border-color: #666; }
.ds-composer-icon svg {
  width: 18px; height: 18px;
  stroke: #fff; fill: none;
  stroke-width: 2.0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ds-composer-gif {
  background: none;
  border: 1.5px solid var(--border-2);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ds-composer-post {
  margin-left: auto;
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.ds-composer-post:hover {
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(204,0,0,0.4);
}
.ds-composer-post:active { opacity: 0.75; box-shadow: none; }

/* ══════════════════════════════════════════
   FEED TABS
══════════════════════════════════════════ */
.ds-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: var(--space-2);
  background: var(--bg);
}
.ds-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #B0B0B0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ds-tab.active {
  color: #FFFFFF;
  border-bottom-color: var(--accent);
}

/* ══════════════════════════════════════════
   POST CARDS
══════════════════════════════════════════ */
.ds-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px 80px;
  background: var(--bg);
}
.ds-post {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.ds-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ds-post-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  background-size: cover;
  background-position: center 20%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  overflow: hidden;
  cursor: pointer;
}
.ds-post-info { flex: 1; min-width: 0; }
.ds-post-author {
  display: block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  cursor: pointer;
}
.ds-post-time {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  color: #B0B0B0;
}
.ds-post-badge {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-left: auto;
}
/* Badge variants */
.ds-badge-host    { background: rgba(204,34,34,0.1);   color: #cc2222; border: 1px solid rgba(204,34,34,0.2); }
.ds-badge-align   { background: rgba(200,149,108,0.1); color: #c8956c; border: 1px solid rgba(200,149,108,0.2); }
.ds-badge-slow    { background: rgba(255,255,255,0.04);color: rgba(255,255,255,0.6); border: 1px solid #1a1a1a; }
.ds-badge-hm      { background: rgba(232,180,200,0.1); color: #e8b4c8; border: 1px solid rgba(232,180,200,0.2); }
.ds-badge-member  { background: rgba(255,255,255,0.03);color: rgba(255,255,255,0.55); border: 1px solid #1a1a1a; }

.ds-post-body {
  font-family: var(--font);
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.5;
  margin-bottom: 10px;
  word-break: break-word;
  font-style: normal;
}
.ds-post-body strong { color: #FFFFFF; font-weight: 700; }
.ds-post-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  object-fit: cover;
  max-height: 300px;
}
.ds-post-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.ds-post-action {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s;
}
.ds-post-action:hover { color: rgba(255,255,255,0.8); }
.ds-post-action.liked { color: var(--accent); }
.ds-post-action svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2.0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ds-post-action.liked svg { fill: var(--accent); stroke: var(--accent); }

/* ══════════════════════════════════════════
   BACK BUTTON (member profile view)
══════════════════════════════════════════ */
.ds-back {
  background: none;
  border: none;
  color: #B0B0B0;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 14px 16px 4px;
  display: block;
  line-height: 1;
}

/* ══════════════════════════════════════════
   OWN PROFILE — SPECIFIC OVERRIDES
   (only difference from member view is Edit Profile instead of Follow+HeyHeaux)
══════════════════════════════════════════ */
.ds-own .ds-avatar { cursor: pointer; } /* tappable to change photo */

/* ══════════════════════════════════════════
   HERMATCH TOGGLE (own profile only)
══════════════════════════════════════════ */
.ds-hm-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0d0d;
  border: 1px solid rgba(232,180,200,0.2);
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
}
.ds-hm-toggle-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8b4c8;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   EMPTY STATES
══════════════════════════════════════════ */
.ds-empty {
  text-align: center;
  padding: 32px var(--space-4);
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.7;
}
