/* Aksel Digital – Meta Title & Description Checker */
.amc {
	--amc-orange: #ff7a04;
	--amc-orange-dark: #e56a00;
	--amc-orange-soft: #fff3e8;
	--amc-ink: #1f1f1f;
	--amc-muted: #5f6368;
	--amc-line: #e4e1dc;
	--amc-bg: #faf8f5;
	--amc-good: #1e8e3e;
	--amc-warn: #d98a00;
	--amc-bad: #d93025;
	--amc-radius: 12px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--amc-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1120px;
	margin: 0 auto;
	box-sizing: border-box;
}
.amc *, .amc *::before, .amc *::after { box-sizing: border-box; }

.amc-label {
	display: block;
	font-family: Jost, Inter, sans-serif;
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 6px;
}
.amc-optional { font-weight: 400; color: var(--amc-muted); }

.amc-input {
	width: 100%;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1.5px solid var(--amc-line);
	border-radius: 10px;
	padding: 11px 14px;
	transition: border-color .15s, box-shadow .15s;
	margin: 0;
}
.amc-input:focus {
	outline: none;
	border-color: var(--amc-orange);
	box-shadow: 0 0 0 3px rgba(255, 122, 4, .18);
}
.amc-textarea { resize: vertical; min-height: 64px; display: block; overflow: hidden; }
.amc-textarea-title { min-height: 56px; }

.amc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: Jost, Inter, sans-serif;
	font-weight: 600;
	font-size: 16px;
	padding: 11px 22px;
	border-radius: 10px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, transform .05s;
}
.amc-btn-primary { background: var(--amc-orange); color: #1a1a1a; }
.amc-btn-primary:hover, .amc-btn-primary:focus-visible { background: var(--amc-orange-dark); color: #1a1a1a; }
.amc-btn:active { transform: translateY(1px); }
.amc-btn:disabled { opacity: .6; cursor: wait; }
.amc-btn:focus-visible, .amc-copy:focus-visible, .amc-toggle button:focus-visible {
	outline: 3px solid rgba(255, 122, 4, .45);
	outline-offset: 2px;
}

/* Fetch row */
.amc-fetch {
	background: var(--amc-bg);
	border: 1px solid var(--amc-line);
	border-radius: var(--amc-radius);
	padding: 20px;
	margin: 0 0 24px;
}
.amc-fetch-row { display: flex; gap: 10px; }
.amc-fetch-row .amc-input { flex: 1; min-width: 0; }
.amc-hint { color: var(--amc-muted); font-size: 14px; margin: 8px 0 0; }
.amc-message {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}
.amc-message-info { background: #eef3fb; color: #1d3f72; }
.amc-message-success { background: #e8f5ec; color: #145c2a; }
.amc-message-warn { background: #fff5e0; color: #6b4600; }
.amc-message-error { background: #fdecea; color: #8a1c13; }

/* Layout */
.amc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.amc-side { position: sticky; top: 24px; }

/* Fields */
.amc-field { margin: 0 0 22px; }
.amc-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.amc-copy {
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--amc-ink);
	background: #fff;
	border: 1px solid var(--amc-line);
	border-radius: 999px;
	padding: 3px 12px;
	cursor: pointer;
	margin-bottom: 6px;
}
.amc-copy:hover { border-color: var(--amc-orange); }
.amc-copy.is-copied { background: var(--amc-good); border-color: var(--amc-good); color: #fff; }

.amc-bar {
	height: 6px;
	background: #ece9e4;
	border-radius: 999px;
	margin: 10px 0 6px;
	overflow: hidden;
}
.amc-bar-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--amc-line);
	transition: width .2s, background .2s;
}
.amc-field[data-level="good"] .amc-bar-fill { background: var(--amc-good); }
.amc-field[data-level="warn"] .amc-bar-fill { background: var(--amc-warn); }
.amc-field[data-level="bad"] .amc-bar-fill { background: var(--amc-bad); }

.amc-meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.amc-status { font-weight: 700; }
.amc-field[data-level="good"] .amc-status { color: var(--amc-good); }
.amc-field[data-level="warn"] .amc-status { color: var(--amc-warn); }
.amc-field[data-level="bad"] .amc-status { color: var(--amc-bad); }
.amc-count { color: var(--amc-muted); font-variant-numeric: tabular-nums; }
.amc-tip { font-size: 14px; color: var(--amc-muted); margin: 4px 0 0; }

.amc-extra {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-top: 6px;
	border-top: 1px dashed var(--amc-line);
}
.amc-field-small { margin: 12px 0 0; }
.amc-field-small .amc-label { font-size: 14px; }

/* Preview */
.amc-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.amc-preview-head .amc-label { margin: 0; }
.amc-toggle { display: inline-flex; background: #efece7; border-radius: 999px; padding: 3px; }
.amc-toggle button {
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	border: 0;
	background: transparent;
	color: var(--amc-muted);
	padding: 5px 14px;
	border-radius: 999px;
	cursor: pointer;
}
.amc-toggle button.is-active { background: #fff; color: var(--amc-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.amc-serp {
	background: #fff;
	border: 1px solid var(--amc-line);
	border-radius: var(--amc-radius);
	padding: 20px 22px;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
	overflow: hidden;
}
.amc-serp[data-device="desktop"] .amc-serp-inner { width: 600px; }
.amc-serp[data-device="mobile"] { max-width: 380px; margin: 0 auto; border-radius: 18px; padding: 16px; }
.amc-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.amc-serp-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f3f4;
	border: 1px solid #dadce0;
	color: #4d5156;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.amc-serp-site-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.amc-serp-name { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amc-serp-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amc-serp-title {
	font-size: 20px;
	line-height: 1.3;
	color: #1a0dab;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	word-break: break-word;
}
.amc-serp[data-device="mobile"] .amc-serp-title {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.amc-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; word-break: break-word; }
.amc-serp-desc strong { color: #202124; font-weight: 700; }
.amc-serp .is-placeholder { opacity: .55; }
.amc-preview-note { font-size: 13px; color: var(--amc-muted); margin: 8px 0 20px; }

/* Checks */
.amc-check-list { list-style: none; margin: 0; padding: 0; }
.amc-check {
	position: relative;
	padding: 7px 0 7px 30px;
	font-size: 14px;
	border-bottom: 1px solid #f0ede8;
}
.amc-check:last-child { border-bottom: 0; }
.amc-check::before {
	position: absolute;
	left: 0;
	top: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.amc-check-good::before { content: "✓"; background: var(--amc-good); }
.amc-check-warn::before { content: "!"; background: var(--amc-warn); }
.amc-check-bad::before { content: "✕"; background: var(--amc-bad); }

/* CTA */
.amc-cta {
	margin-top: 32px;
	background: var(--amc-orange-soft);
	border: 1px solid #ffd9b5;
	border-radius: var(--amc-radius);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.amc-cta-title { font-family: Jost, Inter, sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 4px; }
.amc-cta-text { margin: 0; color: #4a4038; }
.amc-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.amc-cta-link { font-size: 14px; color: var(--amc-ink); text-decoration: underline; }

/* Mobile */
@media (max-width: 860px) {
	.amc-grid { grid-template-columns: 1fr; }
	.amc-side { position: static; }
	.amc-cta { flex-direction: column; align-items: flex-start; }
	.amc-cta-actions { align-items: flex-start; }
}
@media (max-width: 520px) {
	.amc-fetch { padding: 16px; }
	.amc-fetch-row { flex-direction: column; }
	.amc-extra { grid-template-columns: 1fr; }
	.amc-serp { padding: 16px; }
}
