/* Kit view page styles */

.kit-view {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.kit-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.kit-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

.kit-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.kit-description {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
}

.kit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.meta-sep { color: var(--border); }

.copy-kit-link {
  color: var(--accent-warm);
  text-decoration: none;
  font-weight: 500;
}

.copy-kit-link:hover { text-decoration: underline; }

.kit-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.kit-item-image-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-alt);
}

.kit-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-item-photo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-alt);
}

.kit-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-item-blurb {
  font-size: 14px;
  font-style: italic;
  color: var(--accent-warm);
  line-height: 1.55;
  margin-bottom: 4px;
}

.kit-item-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-warm);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.kit-item-body { flex: 1; min-width: 0; }

.kit-item-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.kit-item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.kit-item-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.kit-item-link:hover { color: var(--fg); border-color: var(--fg); }

.kit-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.kit-footer-inner { text-align: center; }

.kit-footer-copy {
  font-size: 14px;
  color: var(--muted);
}

.kit-footer-copy a {
  color: var(--accent-warm);
  text-decoration: none;
}

.kit-footer-copy a:hover { text-decoration: underline; }

/* Share section */
.share-section {
  margin-top: 56px;
  padding: 32px;
  background: var(--surface-alt);
  border-radius: 16px;
  text-align: center;
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.share-btn--twitter {
  background: #000;
  color: #fff;
}

.share-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.share-btn--facebook {
  background: #1877F2;
  color: #fff;
}

.share-btn--copy {
  background: var(--fg);
  color: #fff;
}

.share-btn--copy.copied {
  background: #6B7C5E;
}

.share-btn--copy:hover {
  background: #333;
}

.share-btn--copy.copied:hover {
  background: #6B7C5E;
}

.share-btn--email,
.share-btn--messages {
  background: #F0EBE3;
  color: var(--fg);
}

.share-btn--email:hover,
.share-btn--messages:hover {
  background: #E5DDD3;
}

.gift-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.gift-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid var(--accent-warm);
  border-radius: 50px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-warm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.gift-btn:hover {
  background: var(--accent-warm);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 98, 45, 0.25);
}

/* Analytics panel */
.analytics-panel {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.analytics-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.analytics-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.analytics-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.analytics-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Traffic sources panel */
.traffic-sources {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.traffic-sources-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.traffic-source-group + .traffic-source-group { margin-top: 24px; }

.traffic-source-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
}

.traffic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.traffic-row-label {
  flex-shrink: 0;
  min-width: 64px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.traffic-bar-track {
  flex: 1;
  background: var(--border);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.traffic-bar-fill {
  height: 100%;
  background: var(--accent-warm);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.traffic-row-count {
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

/* Embed section */
.embed-section { margin-top: 20px; }

.embed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.embed-toggle:hover { color: var(--fg); border-color: var(--fg); }

.embed-panel {
  margin-top: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.embed-panel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.embed-snippet-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.embed-snippet-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--fg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
  display: block;
}

.embed-copy-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.embed-copy-btn:hover { background: #A8521F; }

/* Embed funnel panel */
.embed-funnel {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.embed-funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.embed-funnel-step {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.embed-funnel-count {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.embed-funnel-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 2px 0 6px;
}

/* Drip email funnel panels — share styling with embed funnel */
.drip-funnel {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.drip-funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.drip-funnel-step {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.drip-funnel-count {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.drip-funnel-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 2px 0 6px;
}

/* Gift lifecycle panel — reuses drip-funnel chrome */
.lifecycle-funnel {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.lifecycle-funnel .drip-funnel-row {
  align-items: baseline;
  gap: 14px;
}

.drip-funnel-rate {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}