/* ═══════════════════════════════════════════
   Codemi — Chat&Co Page Styles
   Chat demo, slideshow, phone mockups,
   source cards, admin insights
   ═══════════════════════════════════════════ */

/* Chat demo (hero) */
.chat-demo { background: var(--bg-pure); border: 1.5px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.chat-bubble { padding: 14px 18px; border-radius: 16px; font-size: 15px; line-height: 1.55; margin-bottom: 12px; max-width: 85%; }
.chat-bubble--user { background: var(--bg-soft); color: var(--text-primary); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble--ai { background: var(--green-pale); color: var(--text-primary); border: 1px solid #BBF7D0; border-bottom-left-radius: 4px; }
.chat-source { font-size: 12px; color: var(--text-secondary); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(22,163,74,0.15); }
.chat-source strong { color: var(--accent); }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-alt); border-radius: 12px; margin-top: 16px; }
.chat-input-text { flex: 1; font-size: 14px; color: var(--text-tertiary); }
.chat-input-btn { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; }

/* Slideshow */
.slide-container { position: relative; min-height: 220px; }
.slide { display: none; animation: fadeIn 0.4s ease; }
.slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; letter-spacing: 0.03em; }
.slide-dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0 0; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: all 0.2s; }
.slide-dot.active { background: var(--green); width: 24px; border-radius: 4px; }

/* Source citation cards */
.source-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.source-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.source-card-ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.source-card-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.source-card-detail { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.source-card-excerpt { font-size: 12px; color: var(--text-secondary); line-height: 1.5; font-style: italic; padding: 8px 12px; background: var(--bg-pure); border-radius: 6px; border-left: 3px solid var(--green); }
.source-card-action { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 10px; }

/* Phone frame mockups */
.phone-frame { background: var(--bg-pure); border: 1.5px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.08); max-width: 360px; margin: 0 auto; }
.phone-screen { min-height: 400px; display: flex; flex-direction: column; }
.mock-header { background: var(--bg-pure); padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mock-body { padding: 16px 20px; flex: 1; }
.mock-body--chat { padding: 16px 20px 0; display: flex; flex-direction: column; }

/* Document list (S2) */
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-soft); }
.doc-ico { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.doc-status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; }
.doc-status--active { background: var(--green-pale); color: var(--green); }
.mock-btn { text-align: center; padding: 12px; background: var(--bg-alt); border: 1.5px dashed var(--border); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }

/* Chat mockup (S3) */
.mock-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-msg--user { flex-direction: row-reverse; }
.mock-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.mock-avatar--ai { background: #EFF6FF; }
.mock-bubble { padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.55; color: var(--text-primary); max-width: 80%; }
.mock-bubble--user { background: var(--bg-soft); border-bottom-right-radius: 4px; }
.mock-bubble--ai { background: var(--green-pale); border: 1px solid #BBF7D0; border-bottom-left-radius: 4px; }
.mock-source { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(22,163,74,0.15); font-size: 11px; color: var(--text-secondary); }
.mock-source strong { color: var(--green); }
.mock-input { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: auto; }
.mock-send { font-size: 13px; font-weight: 700; color: var(--text-tertiary); }

/* Admin Insights (S4) */
.insight-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.insight-stat { background: var(--bg-alt); border-radius: 10px; padding: 16px; text-align: center; }
.insight-stat-n { font-size: 28px; font-weight: 800; color: var(--accent); }
.insight-stat-l { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.insight-section-title { font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; margin-top: 4px; }
.insight-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-alt); border-radius: 8px; margin-bottom: 8px; font-size: 12px; }
.insight-rank { width: 20px; height: 20px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.insight-q { flex: 1; color: var(--text-secondary); font-weight: 500; }
.insight-count { font-weight: 700; color: var(--text-tertiary); flex-shrink: 0; }
