/**
 * SiteStaffr Transcript Viewer Styles
 *
 * Standalone public page styles for magic link transcript viewer.
 *
 * @package    SiteStaffr
 * @subpackage SiteStaffr/assets/css
 * @since      1.2.3
 */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1d2327;
	background: #f9fafb;
	line-height: 1.6;
	font-size: 14px;
}

a { color: #1FB6CC; text-decoration: none; }
a:hover { color: #00838F; text-decoration: underline; }

/* Top bar — contained */
.sitestaffr-tv-topbar {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 10;
}

.sitestaffr-tv-topbar-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sitestaffr-tv-topbar img { height: auto; width: 120px; }

.sitestaffr-tv-print-btn {
	background: #1FB6CC;
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sitestaffr-tv-print-btn:hover { background: #00838F; }

/* Main container */
.sitestaffr-tv-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 24px 20px;
}

/* Cards — match wp-admin postbox style */
.sitestaffr-tv-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 0;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.sitestaffr-tv-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-bottom: 1px solid #c3c4c7;
}

.sitestaffr-tv-card-header h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.sitestaffr-tv-card-meta {
	font-size: 13px;
	color: #646970;
}

.sitestaffr-tv-card-body {
	padding: 16px;
}

/* Business name header */
.sitestaffr-tv-biz-header {
	margin-bottom: 20px;
}

.sitestaffr-tv-biz-header h1 {
	margin: 0 0 4px 0;
	color: #004D40;
	font-size: 1.5rem;
	font-weight: 700;
}

.sitestaffr-tv-biz-header .sitestaffr-tv-subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 0.9rem;
}

/* Info grid */
.sitestaffr-tv-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.sitestaffr-tv-info-label {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin-bottom: 1px;
}

.sitestaffr-tv-info-value {
	font-size: 14px;
	color: #1d2327;
	font-weight: 500;
}

.sitestaffr-tv-info-value a { font-weight: 500; }

/* Recap body — matches wp-admin summary-body */
.sitestaffr-tv-recap-body {
	font-size: 14px;
	color: #1d2327;
	line-height: 1.65;
}

.sitestaffr-tv-recap-body p {
	margin: 0 0 14px 0;
}

.sitestaffr-tv-recap-body ul {
	margin: 10px 0 14px 22px;
	padding: 0;
	list-style: disc;
}

.sitestaffr-tv-recap-body li {
	margin: 0 0 6px;
	padding: 0;
}

.sitestaffr-tv-recap-body a { color: #1FB6CC; }
.sitestaffr-tv-recap-body a:hover { color: #00838F; }

/* Follow-up callout — matches wp-admin */
.sitestaffr-recap-followup {
	margin-top: 14px !important;
	padding: 10px 14px;
	background: #f0fdf4;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.6;
}

/* Transcript items — match wp-admin layout with visitor icon */
.sitestaffr-tv-transcript {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sitestaffr-tv-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.sitestaffr-tv-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	background: linear-gradient(135deg, #1fb6cc, #00838F);
}

.sitestaffr-tv-avatar svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}

.sitestaffr-tv-bubble {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #e2e6ea;
}

.sitestaffr-tv-bubble-visitor {
	background: #f0f9fb;
	border-color: #a0d4de;
	border-width: 1.5px;
}

.sitestaffr-tv-bubble-ai {
	background: #fafafa;
	border-color: #e5e7eb;
}

.sitestaffr-tv-bubble-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.sitestaffr-tv-bubble-speaker {
	font-size: 13px;
	font-weight: 700;
}

.sitestaffr-tv-bubble-speaker-visitor { color: #00838F; }
.sitestaffr-tv-bubble-speaker-ai { color: #6b7280; }

.sitestaffr-tv-bubble-time {
	font-size: 12px;
	color: #646970;
}

.sitestaffr-tv-bubble-text {
	margin: 0;
	font-size: 14px;
	color: #1d2327;
	line-height: 1.6;
}

.sitestaffr-tv-empty {
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
}

/* Footer */
.sitestaffr-tv-footer {
	text-align: center;
	padding: 32px 20px;
	color: #9ca3af;
	font-size: 0.8rem;
}

.sitestaffr-tv-footer a {
	color: #9ca3af;
	text-decoration: underline;
}

.sitestaffr-tv-footer a:hover { color: #1FB6CC; }

/* Responsive */
@media (max-width: 600px) {
	.sitestaffr-tv-info-grid { grid-template-columns: 1fr; }
	.sitestaffr-tv-container { padding: 12px; }
	.sitestaffr-tv-card-body { padding: 12px; }
	.sitestaffr-tv-biz-header h1 { font-size: 1.25rem; }
}

/* Print styles */
@media print {
	.sitestaffr-tv-print-btn { display: none; }
	.sitestaffr-tv-topbar { position: static; border-bottom: none; }
	.sitestaffr-tv-footer { display: none; }
	body { background: #fff; }
	.sitestaffr-tv-card { box-shadow: none; border-color: #ddd; }
	.sitestaffr-tv-item { page-break-inside: avoid; }
	.sitestaffr-tv-bubble-visitor,
	.sitestaffr-tv-bubble-ai { background: #fff; }
	.sitestaffr-tv-avatar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	a { color: #1d2327 !important; text-decoration: none !important; }
	a[href^="tel:"]::after,
	a[href^="mailto:"]::after {
		content: " (" attr(href) ")";
		font-size: 11px;
		color: #646970;
	}
}
