/* =============================================================
   homepage-placeholders.css
   Reusable, brand-aligned visual placeholders.
   These look intentional and polished WITHOUT real screenshots.
   When real product imagery lands, swap into the inner `<img>` slots
   without changing the container chrome.

   Brand tokens (no CSS vars yet — hardcoded for consistency):
     #000000  black surface
     #ffffff  white surface
     #d1fe17  lime accent
     #f9fafb  light surface
     #e5e7eb  border on white
     rgba(255,255,255,0.08)  subtle border on black
     rgba(255,255,255,0.04)  faint fill on black
   ============================================================= */

/* -------- 1. Phone Mockup Outline (.cf-ph-phone) -------- */
.cf-ph-phone {
  position: relative;
  width: 100%;
  max-width: 200px;
  max-height: 320px;
  aspect-ratio: 9 / 18;
  margin: 0 auto;
  background: #000000;
  border: 2px solid rgba(209, 254, 23, 0.45);
  border-radius: 28px;
  padding: 8px;
  overflow: hidden;
}

.cf-ph-phone--light {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

.cf-ph-phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 16px;
  z-index: 5;
}

.cf-ph-phone--light .cf-ph-phone__notch {
  background: #1f2937;
}

.cf-ph-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cf-ph-phone--light .cf-ph-phone__screen {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.cf-ph-phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 20px 8px;
}

.cf-ph-phone__statusbar-time {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.cf-ph-phone--light .cf-ph-phone__statusbar-time {
  color: rgba(0, 0, 0, 0.6);
}

.cf-ph-phone__statusbar-icons {
  display: flex;
  gap: 4px;
}

.cf-ph-phone__statusbar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.cf-ph-phone--light .cf-ph-phone__statusbar-dot {
  background: rgba(0, 0, 0, 0.4);
}

.cf-ph-phone__content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-ph-phone__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-ph-phone__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cf-ph-phone__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  flex: 1;
}

.cf-ph-phone--light .cf-ph-phone__bar,
.cf-ph-phone--light .cf-ph-phone__avatar {
  background: rgba(0, 0, 0, 0.08);
}

.cf-ph-phone__bar--short { max-width: 60%; }
.cf-ph-phone__bar--medium { max-width: 80%; }

.cf-ph-phone__bubble {
  align-self: flex-start;
  max-width: 75%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-ph-phone__bubble--sent {
  align-self: flex-end;
  background: rgba(209, 254, 23, 0.18);
  border-radius: 14px 14px 4px 14px;
}

.cf-ph-phone__bubble--highlight {
  background: rgba(209, 254, 23, 0.22);
  border: 1px solid rgba(209, 254, 23, 0.5);
}

.cf-ph-phone__link-card {
  align-self: flex-end;
  width: 75%;
  padding: 10px;
  background: rgba(209, 254, 23, 0.12);
  border: 1px solid rgba(209, 254, 23, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-ph-phone__link-card .cf-ph-phone__bar {
  background: rgba(209, 254, 23, 0.4);
}

/* -------- 2. UI Skeleton Card (.cf-ph-ui) -------- */
.cf-ph-ui {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.cf-ph-ui--light {
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-color: #e5e7eb;
}

.cf-ph-ui__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cf-ph-ui--light .cf-ph-ui__header {
  border-bottom-color: #f3f4f6;
}

.cf-ph-ui__title-bar {
  height: 10px;
  width: 110px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.cf-ph-ui--light .cf-ph-ui__title-bar {
  background: rgba(0, 0, 0, 0.18);
}

.cf-ph-ui__chip {
  padding: 4px 10px;
  background: rgba(209, 254, 23, 0.15);
  color: #d1fe17;
  border: 1px solid rgba(209, 254, 23, 0.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-ph-ui--light .cf-ph-ui__chip {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.15);
}

.cf-ph-ui__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.cf-ph-ui--light .cf-ph-ui__row {
  background: #ffffff;
  border-color: #f3f4f6;
}

.cf-ph-ui__row--accent {
  background: rgba(209, 254, 23, 0.06);
  border-color: rgba(209, 254, 23, 0.3);
}

.cf-ph-ui__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cf-ph-ui--light .cf-ph-ui__icon {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.cf-ph-ui__row-bar {
  height: 8px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.cf-ph-ui--light .cf-ph-ui__row-bar {
  background: rgba(0, 0, 0, 0.1);
}

/* Real text label inside a row — replaces skeleton bars when copy lands. */
.cf-ph-ui__row-text {
  flex: 1;
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-ph-ui--light .cf-ph-ui__row-text {
  color: #000000;
}

/* Real title text in card header (replaces .cf-ph-ui__title-bar). */
.cf-ph-ui__title-text {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-ph-ui--light .cf-ph-ui__title-text {
  color: #000000;
}

.cf-ph-ui__row-pill {
  padding: 3px 8px;
  background: rgba(209, 254, 23, 0.18);
  color: #d1fe17;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.cf-ph-ui--light .cf-ph-ui__row-pill {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.cf-ph-ui__connector {
  position: absolute;
  left: 32px;
  width: 1px;
  background: rgba(209, 254, 23, 0.35);
  border-left: 1.5px dashed rgba(209, 254, 23, 0.4);
}

/* -------- 3. Metric Chart Placeholder (.cf-ph-metric) -------- */
.cf-ph-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-ph-metric--light {
  background: #ffffff;
  border-color: #e5e7eb;
}

.cf-ph-metric__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cf-ph-metric--light .cf-ph-metric__label {
  color: #6b7280;
}

.cf-ph-metric__value {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.cf-ph-metric--light .cf-ph-metric__value {
  color: #000000;
}

.cf-ph-metric__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #d1fe17;
}

.cf-ph-metric__sparkline {
  width: 100%;
  height: 28px;
  margin-top: 4px;
}

.cf-ph-metric__sparkline path {
  stroke: #d1fe17;
  stroke-width: 1.6;
  fill: none;
}

.cf-ph-metric__sparkline-area {
  fill: rgba(209, 254, 23, 0.12);
  stroke: none;
}

/* -------- 4. Persona Avatar Slot (.cf-ph-avatar) -------- */
.cf-ph-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(209, 254, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #d1fe17;
  letter-spacing: 0.04em;
}

.cf-ph-avatar--light {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #000000;
}

.cf-ph-avatar__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(209, 254, 23, 0.35);
  pointer-events: none;
}

.cf-ph-avatar--light .cf-ph-avatar__ring {
  border-color: rgba(0, 0, 0, 0.15);
}

/* -------- 5. Badge Container (.cf-ph-badge) -------- */
.cf-ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(209, 254, 23, 0.45);
  border-radius: 16px;
}

.cf-ph-badge--light {
  background: #f9fafb;
  border-color: rgba(0, 0, 0, 0.1);
}

.cf-ph-badge__shield {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(209, 254, 23, 0.15);
  border: 1px solid rgba(209, 254, 23, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1fe17;
}

.cf-ph-badge--light .cf-ph-badge__shield {
  background: #000000;
  border-color: #000000;
  color: #d1fe17;
}

.cf-ph-badge__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-ph-badge__wordmark {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cf-ph-badge--light .cf-ph-badge__wordmark {
  color: #000000;
}

.cf-ph-badge__date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cf-ph-badge--light .cf-ph-badge__date {
  color: #6b7280;
}

/* -------- Shared "view this image" hint (only on hover, dev mode) -------- */
.cf-ph-meta {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.cf-ph-meta--light {
  color: rgba(0, 0, 0, 0.2);
}
