/* Hey Blogger Tools — shared styles. Tokens match the site's Kadence Global Colors/Typography. */
:root {
	--hbt-bg: #FFF8EC;
	--hbt-surface: #FFFFFF;
	--hbt-soft: #FBE1E3;
	--hbt-ink: #222222;
	--hbt-accent: #F0442E;
	--hbt-accent2: #FF5C87;
	--hbt-accent3: #D7194A;
	--hbt-accent4: #FFC84D;
	--hbt-radius-sm: 12px;
	--hbt-radius-md: 24px;
	--hbt-radius-pill: 999px;
}

.hbt-tool {
	background: var(--hbt-surface);
	border: 1px solid #F0E4D0;
	border-radius: var(--hbt-radius-md);
	padding: 32px;
	margin: 24px 0;
	max-width: 760px;
	font-family: "DM Sans", sans-serif;
	color: var(--hbt-ink);
	box-sizing: border-box;
}

.hbt-tool * {
	box-sizing: border-box;
}

.hbt-tool__title {
	font-family: "Lilita One", cursive;
	font-weight: 400;
	color: var(--hbt-accent);
	font-size: 28px;
	margin: 0 0 8px;
}

.hbt-tool__intro {
	margin: 0 0 24px;
	color: var(--hbt-ink);
	font-size: 16px;
	line-height: 1.5;
}

.hbt-field {
	margin-bottom: 16px;
}

.hbt-field label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--hbt-ink);
}

.hbt-field .hbt-hint {
	display: block;
	font-weight: 400;
	font-size: 12px;
	color: #6b6b6b;
	margin-top: 4px;
}

.hbt-field input[type="text"],
.hbt-field select,
.hbt-field textarea {
	width: 100%;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	padding: 10px 14px;
	border: 2px solid #F0E4D0;
	border-radius: var(--hbt-radius-sm);
	background: var(--hbt-bg);
	color: var(--hbt-ink);
}

.hbt-field input[type="text"]:focus,
.hbt-field select:focus,
.hbt-field textarea:focus,
.hbt-tool button:focus-visible,
.hbt-tool a:focus-visible,
.hbt-tool input[type="checkbox"]:focus-visible {
	outline: 3px solid var(--hbt-accent4);
	outline-offset: 2px;
}

.hbt-field-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 600px) {
	.hbt-field-row {
		grid-template-columns: 1fr;
	}
}

.hbt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
}

.hbt-btn {
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 24px;
	border-radius: var(--hbt-radius-pill);
	border: 2px solid var(--hbt-accent);
	background: var(--hbt-accent);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hbt-btn:hover {
	background: var(--hbt-accent3);
	border-color: var(--hbt-accent3);
}

.hbt-btn--secondary {
	background: var(--hbt-surface);
	color: var(--hbt-accent);
}

.hbt-btn--secondary:hover {
	background: var(--hbt-soft);
	color: var(--hbt-accent);
}

.hbt-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hbt-results {
	margin-top: 8px;
}

.hbt-results[hidden],
.hbt-empty[hidden],
.hbt-error[hidden] {
	display: none !important;
}

.hbt-empty,
.hbt-error {
	border-radius: var(--hbt-radius-sm);
	padding: 16px;
	font-size: 14px;
}

.hbt-empty {
	background: var(--hbt-bg);
	border: 1px dashed #D9C9A8;
	color: var(--hbt-ink);
}

.hbt-error {
	background: #FDEDEA;
	border: 1px solid var(--hbt-accent);
	color: var(--hbt-accent3);
	font-weight: 700;
}

.hbt-idea-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hbt-idea-list li {
	background: var(--hbt-bg);
	border: 1px solid #F0E4D0;
	border-radius: var(--hbt-radius-sm);
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.hbt-idea-list li .hbt-idea-text {
	flex: 1;
	line-height: 1.5;
}

.hbt-idea-copy {
	flex-shrink: 0;
	background: transparent;
	border: 1px solid var(--hbt-accent);
	color: var(--hbt-accent);
	border-radius: var(--hbt-radius-pill);
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	cursor: pointer;
	font-family: "DM Sans", sans-serif;
}

.hbt-idea-copy:hover {
	background: var(--hbt-soft);
}

.hbt-idea-copy[data-copied="true"] {
	background: var(--hbt-accent);
	color: #fff;
	border-color: var(--hbt-accent);
}

.hbt-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hbt-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Wide tool variant (Content Planner) */
.hbt-tool--wide {
	max-width: 1040px;
}

.hbt-table-wrap {
	overflow-x: auto;
	margin-top: 16px;
	border-radius: var(--hbt-radius-sm);
	border: 1px solid #F0E4D0;
}

.hbt-planner-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 900px;
	font-size: 14px;
}

.hbt-planner-table th,
.hbt-planner-table td {
	border-bottom: 1px solid #F0E4D0;
	padding: 8px;
	text-align: left;
	vertical-align: middle;
}

.hbt-planner-table th {
	background: var(--hbt-bg);
	font-weight: 700;
	font-size: 13px;
}

.hbt-planner-table input[type="text"],
.hbt-planner-table input[type="date"],
.hbt-planner-table select {
	width: 100%;
	min-width: 110px;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	padding: 6px 8px;
	border: 1px solid #F0E4D0;
	border-radius: 8px;
	background: var(--hbt-surface);
	color: var(--hbt-ink);
}

.hbt-planner-table input:focus,
.hbt-planner-table select:focus {
	outline: 3px solid var(--hbt-accent4);
	outline-offset: 1px;
}

/* SEO Checklist */
.hbt-checklist-progress {
	margin: 8px 0 20px;
}

.hbt-checklist-progress__bar {
	background: var(--hbt-bg);
	border: 1px solid #F0E4D0;
	border-radius: var(--hbt-radius-pill);
	height: 14px;
	overflow: hidden;
}

.hbt-checklist-progress__fill {
	background: var(--hbt-accent);
	height: 100%;
	transition: width 0.2s ease;
}

.hbt-checklist-progress__label {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--hbt-ink);
}

.hbt-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hbt-checklist__item label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 8px;
	border-radius: var(--hbt-radius-sm);
	cursor: pointer;
}

.hbt-checklist__item label:hover {
	background: var(--hbt-bg);
}

.hbt-checklist__item input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--hbt-accent);
}

.hbt-checklist__text {
	display: flex;
	flex-direction: column;
}

.hbt-checklist__label {
	font-weight: 700;
	color: var(--hbt-ink);
}

.hbt-checklist__hint {
	font-size: 13px;
	color: #6b6b6b;
}

@media print {
	.hbt-no-print,
	.hbt-actions,
	.hbt-tool .hbt-form {
		display: none !important;
	}

	.hbt-tool {
		border: none;
		box-shadow: none;
	}

	.hbt-planner-table {
		min-width: 0;
	}
}
