/* Affizo ToolKit — coral theme (inspired by pdfgo.in) */

:root {
	--affizo-brand: #E9483F;
	--affizo-brand-dark: #B32B1F;
	--affizo-brand-light: #FBDAD5;
	--affizo-bg-tint: #FDEEEB;
	--affizo-text: #1A1210;
	--affizo-text-muted: #7A6E6B;
	--affizo-border: #EFE3E1;
	--affizo-card-bg: #FFFFFF;
}

/* Tools grid (used by [affizo_tools_grid] and archive-tools.php) */
.affizo-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 20px 0;
}

.affizo-tool-card {
	display: block;
	background: var(--affizo-card-bg);
	border: 1px solid var(--affizo-border);
	border-radius: 12px;
	padding: 16px;
	text-decoration: none;
	color: var(--affizo-text);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.affizo-tool-card:hover {
	border-color: transparent;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(26, 18, 16, 0.08);
}

.affizo-tool-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--affizo-brand-light);
	color: var(--affizo-brand-dark);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 10px;
}

.affizo-tool-title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 2px;
}

.affizo-tool-category {
	display: block;
	font-size: 11.5px;
	color: var(--affizo-text-muted);
}

/* Category filter pills */
.affizo-category-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0;
}

.affizo-category-filters a {
	font-size: 12.5px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--affizo-border);
	color: var(--affizo-text-muted);
	text-decoration: none;
}

.affizo-category-filters a.active,
.affizo-category-filters a:hover {
	background: var(--affizo-brand);
	border-color: var(--affizo-brand);
	color: #fff;
}

/* Single tool page layout */
.affizo-tool-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 20px 50px;
}

.affizo-tool-breadcrumb {
	font-size: 12px;
	color: var(--affizo-text-muted);
	margin-bottom: 20px;
}

.affizo-tool-breadcrumb a { color: var(--affizo-text-muted); text-decoration: none; }
.affizo-tool-breadcrumb a:hover { color: var(--affizo-brand); }

.affizo-tool-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
}

.affizo-tool-icon-lg {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--affizo-brand-light);
	color: var(--affizo-brand-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 19px;
	flex-shrink: 0;
}

.affizo-tool-header h1 {
	margin: 0;
	font-size: 26px;
}

.affizo-tool-subtitle {
	color: var(--affizo-text-muted);
	margin: 4px 0 0;
	font-size: 14.5px;
}

.affizo-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 16px 0 26px;
	font-size: 12.5px;
	color: var(--affizo-text-muted);
}

.affizo-trust-badges span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.affizo-trust-badges i { color: var(--affizo-brand); font-size: 15px; }

.affizo-tool-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.affizo-tool-main {
	flex: 1;
	min-width: 0;
}

.affizo-tool-sidebar {
	width: 240px;
	flex-shrink: 0;
	position: sticky;
	top: 20px;
}

.affizo-tool-content {
	background: #fff;
	border: none;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(26, 18, 16, 0.06), 0 8px 24px rgba(26, 18, 16, 0.05);
}

/* Ad slots — subtle, low-contrast so they blend rather than shout */
.affizo-ad-wrapper {
	margin: 22px 0;
}

.affizo-ad-slot {
	text-align: center;
}

.affizo-ad-placeholder {
	border: 1px solid var(--affizo-border);
	background: #FDFBFA;
	border-radius: 10px;
	padding: 10px;
	font-size: 10.5px;
	color: #BDB1AE;
	text-align: center;
	letter-spacing: 0.2px;
}

.affizo-sidebar-card {
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	margin-top: 14px;
	box-shadow: 0 1px 3px rgba(26, 18, 16, 0.05), 0 6px 16px rgba(26, 18, 16, 0.04);
}

.affizo-sidebar-card p.affizo-sidebar-title {
	font-weight: 700;
	font-size: 13px;
	margin: 0 0 12px;
	color: var(--affizo-text);
}

.affizo-related-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	text-decoration: none;
	color: var(--affizo-text);
	font-size: 13px;
	border-bottom: 1px solid #F4EBE9;
}

.affizo-related-link:last-child { border-bottom: none; }

.affizo-related-icon {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--affizo-brand-light);
	color: var(--affizo-brand-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.affizo-related-link:hover .affizo-related-icon { background: var(--affizo-brand); color: #fff; }

@media (max-width: 720px) {
	.affizo-tool-layout { flex-direction: column; }
	.affizo-tool-sidebar { width: 100%; position: static; }
	.affizo-tool-content { padding: 18px; }
}

/* Blog grid */

/* ---------------------------------------------------------------
 * Tool UI elements — shared by every tool's own HTML (textarea,
 * buttons, stat pills, result box, FAQ). Styling these here means
 * every current and future tool looks consistent automatically.
 * ------------------------------------------------------------- */

.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--affizo-text);
}

.ta,
.inp,
select.inp {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--affizo-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--affizo-text);
}

.ta {
	resize: vertical;
	min-height: 150px;
	line-height: 1.6;
}

.ta:focus,
.inp:focus {
	outline: none;
	border-color: var(--affizo-brand);
	box-shadow: 0 0 0 3px rgba(233, 72, 63, 0.12);
}

.result-box {
	background: var(--affizo-bg-tint);
	border: 1px solid var(--affizo-border);
	border-radius: 8px;
	padding: 14px;
	font-size: 14px;
	min-height: 60px;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.6;
}

.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.stat-pill {
	background: var(--affizo-brand-light);
	color: var(--affizo-brand-dark);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 12.5px;
	display: flex;
	gap: 6px;
	align-items: baseline;
}

.stat-pill b {
	font-size: 16px;
}

.actions-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0;
}

.btn {
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	background: var(--affizo-brand);
	color: #fff;
	font-family: inherit;
	box-shadow: 0 2px 6px rgba(233, 72, 63, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(233, 72, 63, 0.32);
}

.btn:active {
	transform: translateY(0);
}

.btn-outline {
	background: #fff;
	color: var(--affizo-text);
	border: 1px solid var(--affizo-border);
	box-shadow: 0 1px 2px rgba(26, 18, 16, 0.04);
}

.btn-outline:hover {
	border-color: var(--affizo-brand);
	box-shadow: 0 4px 10px rgba(26, 18, 16, 0.08);
}

.btn-grad {
	background: linear-gradient(135deg, var(--affizo-brand), #ff7a6e);
	box-shadow: 0 3px 10px rgba(233, 72, 63, 0.32);
}

.btn-soft {
	background: var(--affizo-brand-light);
	color: var(--affizo-brand-dark);
	box-shadow: none;
}

.btn-soft:hover {
	box-shadow: 0 4px 10px rgba(233, 72, 63, 0.15);
}

/* FAQ accordion */
.faq-item {
	background: var(--affizo-bg-tint);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 8px;
}

.faq-q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.faq-q svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	color: var(--affizo-text-muted);
}

.faq-item.open .faq-q svg {
	transform: rotate(180deg);
	color: var(--affizo-brand);
}

.faq-a {
	display: none;
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--affizo-text-muted);
	line-height: 1.7;
}

.faq-item.open .faq-a {
	display: block;
}

.affizo-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.affizo-blog-card {
	display: block;
	background: #fff;
	border: 1px solid var(--affizo-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--affizo-text);
}

.affizo-blog-thumb {
	height: 100px;
	background: var(--affizo-brand-light);
}

.affizo-blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.affizo-blog-body {
	padding: 12px 14px;
}

.affizo-blog-title {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 4px;
}

.affizo-blog-date {
	font-size: 11px;
	color: var(--affizo-text-muted);
	margin: 0;
}
