/* ============================================================
   Instagram / Facebook mockups — simulate the third-party apps,
   so they intentionally keep their own brand looks (local custom
   props, not Light Crisp tokens).
   ============================================================ */

/* ---- Instagram ---- */
.ig-mockup-card {
  --ig-ring: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  color: #262626;
  border-radius: var(--radius-lg);
  border: 1px solid #dbdbdb;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .ig-mockup-card {
  background: #000000;
  color: #f5f5f5;
  border-color: #262626;
}

.ig-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
}

.ig-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ig-ring);
  padding: 2px;
  margin-right: 10px;
}

.ig-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #ffffff;
}

[data-theme="dark"] .ig-avatar { border-color: #000000; }

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

.ig-username {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.ig-location {
  font-size: 0.72rem;
  color: #737373;
}

[data-theme="dark"] .ig-location { color: #a8a8a8; }

.ig-more {
  font-weight: 700;
  cursor: pointer;
  color: #737373;
}

.ig-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
}

[data-theme="dark"] .ig-media-wrapper { background: #121212; }

.ig-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.ig-dot.active { background: #0095f6; }

.ig-action-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 1.3rem;
}

.ig-left-actions {
  display: flex;
  gap: 14px;
}

.ig-icon { cursor: pointer; }

.ig-body { padding: 0 14px 14px; }

.ig-likes {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ig-caption-text {
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ig-caption-author {
  margin-right: 6px;
  font-weight: 700;
}

.ig-timestamp {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8e8e;
  margin-top: 8px;
}

/* ---- Facebook ---- */
.fb-mockup-card {
  --fb-blue: #1877f2;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  color: #050505;
  border-radius: var(--radius-lg);
  border: 1px solid #ced0d4;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
}

[data-theme="dark"] .fb-mockup-card {
  background: #242526;
  color: #e4e6eb;
  border-color: #3e4042;
}

.fb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.fb-meta { flex: 1; min-width: 0; }

.fb-group-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.fb-post-info {
  font-size: 0.75rem;
  color: #65676b;
}

[data-theme="dark"] .fb-post-info { color: #b0b3b8; }

.fb-dots {
  color: #65676b;
  cursor: pointer;
  font-weight: bold;
}

.fb-body-text {
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}

.fb-image-container {
  width: calc(100% + 32px);
  margin: 0 -16px 12px;
  background: #f0f2f5;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

[data-theme="dark"] .fb-image-container { background: #18191a; }

.fb-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-engagement-counts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.78rem;
  color: #65676b;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e6eb;
}

[data-theme="dark"] .fb-engagement-counts {
  color: #b0b3b8;
  border-bottom-color: #3e4042;
}

.fb-action-buttons {
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
}

.fb-btn {
  background: transparent;
  border: none;
  color: #65676b;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

[data-theme="dark"] .fb-btn { color: #b0b3b8; }

.fb-btn:hover { background: rgba(0, 0, 0, 0.05); }

[data-theme="dark"] .fb-btn:hover { background: rgba(255, 255, 255, 0.08); }
