/**
 * AI Answer Toolkit - PDF Report Styles
 * 
 * Styles for PDF generation and printable HTML reports
 * 
 * @package AI_Answer_Toolkit
 * @since 1.0.0
 */

/* ===========================
   PDF Header Styles
   =========================== */
.header {
	background: #2271b1;
	color: #ffffff;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.header h1 {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: bold;
}

.header-meta {
	font-size: 12px;
	color: #e0e0e0;
}

/* ===========================
   Statistics Cards
   =========================== */
.stats-grid {
	margin-bottom: 20px;
}

.stat-card {
	display: inline-block;
	width: 23%;
	padding: 15px;
	margin-right: 2%;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	vertical-align: top;
}

.stat-card:last-child {
	margin-right: 0;
}

.stat-number {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 11px;
	color: #666;
}

.stat-green { color: #00a32a; }
.stat-yellow { color: #dba617; }
.stat-red { color: #d63638; }
.stat-blue { color: #2271b1; }

/* ===========================
   Table Styles
   =========================== */
.table-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
	color: #1d2327;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 9px;
}

th {
	background: #f9f9f9;
	border: 1px solid #ddd;
	padding: 6px;
	text-align: left;
	font-weight: bold;
	color: #1d2327;
}

td {
	border: 1px solid #ddd;
	padding: 6px;
	vertical-align: middle;
}

.priority-row {
	background: #fff8e5;
}

/* ===========================
   Badge Styles
   =========================== */
.score-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-weight: bold;
	font-size: 10px;
}

.badge-green {
	background: #e7f7ed;
	color: #00a32a;
}

.badge-yellow {
	background: #fcf8e3;
	color: #dba617;
}

.badge-red {
	background: #f8d7da;
	color: #d63638;
}

.summary-badge {
	display: inline-block;
	padding: 3px 6px;
	border-radius: 3px;
	font-size: 8px;
	font-weight: bold;
}

.badge-manual {
	background: #00a32a;
	color: #fff;
}

.badge-auto {
	background: #2271b1;
	color: #fff;
}

.badge-none {
	background: #dcdcde;
	color: #50575e;
}

/* ===========================
   Content Styles
   =========================== */
.post-title {
	font-weight: 500;
	color: #2271b1;
}

.warning-icon {
	color: #dba617;
	font-weight: bold;
}

.category-breakdown {
	font-size: 8px;
	color: #666;
	margin-top: 2px;
}

/* ===========================
   Footer Styles
   =========================== */
.footer {
	text-align: center;
	font-size: 10px;
	color: #666;
	border-top: 1px solid #ddd;
	padding-top: 10px;
}

/* ===========================
   Printable HTML Styles
   =========================== */
@media print {
	body { margin: 0; }
	.no-print { display: none; }
}

/* HTML Report Base Styles */
body.aitk-pdf-report {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	margin: 20px;
	color: #1d2327;
}

/* HTML Report Header */
body.aitk-pdf-report .header {
	padding: 30px;
	margin-bottom: 30px;
}

body.aitk-pdf-report .header h1 {
	font-size: 28px;
	margin: 0 0 15px 0;
}

body.aitk-pdf-report .header-meta {
	font-size: 14px;
	opacity: 0.9;
}

/* HTML Report Stats Grid */
body.aitk-pdf-report .stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

body.aitk-pdf-report .stat-card {
	border: 2px solid #ddd;
	padding: 20px;
	width: auto;
	margin-right: 0;
}

body.aitk-pdf-report .stat-number {
	font-size: 36px;
	margin-bottom: 10px;
}

body.aitk-pdf-report .stat-label {
	font-size: 13px;
	color: #646970;
}

/* HTML Report Table */
body.aitk-pdf-report .table-title {
	font-size: 20px;
	margin-bottom: 15px;
}

body.aitk-pdf-report table {
	font-size: 13px;
	margin-bottom: 30px;
}

body.aitk-pdf-report th {
	padding: 12px;
	font-weight: 600;
}

body.aitk-pdf-report td {
	padding: 12px;
}

body.aitk-pdf-report .score-badge {
	padding: 6px 12px;
	font-size: 12px;
}

body.aitk-pdf-report .badge-green {
	border: 1px solid #00a32a;
}

body.aitk-pdf-report .badge-yellow {
	border: 1px solid #dba617;
}

body.aitk-pdf-report .badge-red {
	border: 1px solid #d63638;
}

body.aitk-pdf-report .summary-badge {
	padding: 4px 8px;
	font-size: 11px;
	text-transform: uppercase;
}

body.aitk-pdf-report .footer {
	font-size: 12px;
	color: #646970;
	border-top: 2px solid #ddd;
	padding-top: 20px;
	margin-top: 30px;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.print-btn, .download-btn, .back-btn {
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-size: 14px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.print-btn {
	background: #2271b1;
}

.print-btn:hover {
	background: #135e96;
}

.download-btn {
	background: #dc3545;
}

.download-btn:hover {
	background: #c82333;
}

.back-btn {
	background: #646970;
}

.back-btn:hover {
	background: #50575e;
}
