/**
 * Research Snapshot & Editorial Components Stylesheet
 *
 * Provides styling for dynamic database snapshot tables, direct answer callouts,
 * visual workflow pipelines, vendor questions, and structured research notes.
 *
 * @package PTR_Research
 */

/* ========================================================
   1. Dynamic Research Snapshot Table
   ======================================================== */
.ptr-research-snapshot-wrapper {
	margin: 2.5rem 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ptr-snapshot-header {
	margin-bottom: 1.25rem;
}

.ptr-snapshot-kicker {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #e0f2fe;
	color: #0369a1;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.ptr-snapshot-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.35rem 0;
}

.ptr-snapshot-sub {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
}

.ptr-table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1rem;
}

.ptr-snapshot-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	text-align: left;
}

.ptr-snapshot-table th,
.ptr-snapshot-table td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ptr-snapshot-table thead th {
	background: #f8fafc;
	color: #334155;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid #cbd5e1;
}

.ptr-snapshot-table tbody tr:hover {
	background: #f8fafc;
}

.ptr-td-product strong a {
	color: #0f172a;
	text-decoration: none;
	font-size: 1rem;
}

.ptr-td-product strong a:hover {
	color: var(--ptr-ochre, #b45309);
	text-decoration: underline;
}

.ptr-sub-vendor {
	display: block;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.15rem;
}

.ptr-td-pricing strong {
	color: #0f172a;
	font-size: 0.9rem;
}

/* Capability Badges */
.ptr-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.55rem;
	border-radius: 4px;
	white-space: nowrap;
}

.ptr-badge-yes {
	background: #dcfce7;
	color: #15803d;
}

.ptr-badge-no {
	background: #fee2e2;
	color: #b91c1c;
}

.ptr-badge-unknown {
	background: #fef3c7;
	color: #b45309;
}

.ptr-icon {
	flex-shrink: 0;
}

/* Evidence Tags */
.ptr-evidence-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	text-transform: uppercase;
}

.ptr-status-verified {
	background: var(--ptr-evidence-verified-bg, #ecfdf5);
	color: var(--ptr-evidence-verified-text, #065f46);
	border: 1px solid var(--ptr-evidence-verified-border, #a7f3d0);
}

.ptr-status-vendor_claim {
	background: var(--ptr-evidence-claim-bg, #fffbeb);
	color: var(--ptr-evidence-claim-text, #92400e);
	border: 1px solid var(--ptr-evidence-claim-border, #fde68a);
}

.ptr-status-unknown {
	background: var(--ptr-evidence-unknown-bg, #f8fafc);
	color: var(--ptr-evidence-unknown-text, #475569);
	border: 1px solid var(--ptr-evidence-unknown-border, #cbd5e1);
}

.ptr-verified-sub {
	display: block;
	font-size: 0.7rem;
	color: #94a3b8;
	margin-top: 0.2rem;
}

.ptr-snapshot-footer {
	border-top: 1px solid #f1f5f9;
	padding-top: 0.75rem;
}

.ptr-footer-notice {
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.45;
	margin: 0;
}

/* ========================================================
   2. Editorial Structural Components
   ======================================================== */

/* Direct Answer Box (Snippet / AEO) */
.ptr-direct-answer-box {
	background: var(--ptr-color-surface, #ffffff);
	border: 1px solid var(--ptr-color-border, #e2e8f0);
	border-left: 4px solid var(--ptr-navy, #0f2942);
	border-radius: var(--ptr-radius-md, 6px);
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}

.ptr-direct-answer-kicker {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0369a1;
	margin-bottom: 0.4rem;
}

.ptr-direct-answer-text {
	font-size: 1.1rem;
	font-weight: 500;
	color: #0f172a;
	line-height: 1.6;
	margin: 0;
}

/* Key Takeaways Box */
.ptr-key-takeaways {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	margin: 2rem 0;
}

.ptr-takeaways-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.75rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ptr-takeaways-list {
	margin: 0;
	padding-left: 1.25rem;
	color: #334155;
	line-height: 1.6;
}

.ptr-takeaways-list li {
	margin-bottom: 0.4rem;
}

/* Visual Workflow Pipeline */
.ptr-workflow-pipeline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 1.75rem 0;
	padding: 1.25rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.ptr-pipeline-step {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ptr-step-circle {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #0f172a;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ptr-step-box {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: var(--ptr-card-padding-sm, 0.75rem 1.15rem);
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ptr-step-arrow {
	font-size: 1.25rem;
	font-weight: 700;
	color: #94a3b8;
}

/* Requirements Checklist Grid */
.ptr-checklist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.ptr-checklist-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: var(--ptr-card-padding, 1.5rem);
}

.ptr-checklist-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.35rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.ptr-checklist-desc {
	font-size: 0.85rem;
	color: #475569;
	margin: 0;
	line-height: 1.45;
}

/* Vendor Questions Callout */
.ptr-vendor-questions-box {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid #16a34a;
	border-radius: 0 8px 8px 0;
	padding: 1.5rem;
	margin: 2.25rem 0;
}

.ptr-vq-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #14532d;
	margin: 0 0 0.5rem 0;
}

.ptr-vq-sub {
	font-size: 0.9rem;
	color: #166534;
	margin: 0 0 1rem 0;
}

.ptr-vq-list {
	margin: 0;
	padding-left: 1.25rem;
	color: #14532d;
	line-height: 1.6;
}

.ptr-vq-list li {
	margin-bottom: 0.5rem;
}

/* Tool Promo Card */
.ptr-tool-promo-box {
	background: #0f172a;
	color: #ffffff;
	border-radius: 8px;
	padding: 1.75rem;
	margin: 2.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

.ptr-promo-content {
	flex: 1;
}

.ptr-promo-kicker {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ptr-ochre-light, #fde68a);
	margin-bottom: 0.35rem;
}

.ptr-promo-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	color: #ffffff;
}

.ptr-promo-desc {
	font-size: 0.925rem;
	color: #94a3b8;
	margin: 0;
	line-height: 1.5;
}

.ptr-promo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	background: var(--ptr-ochre, #b45309);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: var(--ptr-radius-md, 6px);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.ptr-promo-btn:hover {
	background: var(--ptr-ochre-hover, #92400e);
	color: #ffffff;
}

/* Sources Box */
.ptr-sources-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 2.5rem 0 1.5rem 0;
	font-size: 0.85rem;
}

.ptr-sources-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
}

.ptr-sources-list {
	margin: 0;
	padding-left: 1.25rem;
	color: #475569;
	line-height: 1.5;
}

.ptr-sources-list li {
	margin-bottom: 0.35rem;
}

/* Responsive */
@media (max-width: 768px) {
	.ptr-tool-promo-box {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.ptr-promo-btn {
		width: 100%;
		text-align: center;
	}

	.ptr-workflow-pipeline {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.ptr-pipeline-step {
		width: 100%;
	}

	.ptr-step-box {
		flex: 1;
	}

	.ptr-step-arrow {
		display: none;
	}
}
