/* RankLogicHub LLMs.txt Generator — frontend styles.
   Scoped under .rlh-llms so it never leaks into the theme. */

.rlh-llms {
	/* Brand palette (ranklogichub.com / Cloudly theme):
	   primary purple #7B1FE4, magenta #A121CA, dark #1A192E, body #6D6B7B.
	   The signature gradient runs magenta → purple like the site's buttons. */
	--rlh-primary: #7B1FE4;
	--rlh-primary-2: #A121CA;
	--rlh-grad: linear-gradient(270deg, #A121CA 0%, #7B1FE4 100%);
	--rlh-grad-hover: linear-gradient(270deg, #7B1FE4 0%, #A121CA 100%);
	--rlh-ink: #1A192E;
	--rlh-dark: #1A192E;
	--rlh-white: #ffffff;
	--rlh-muted: #6D6B7B;
	--rlh-line: rgba(26, 25, 46, .12);
	--rlh-bg: #ffffff;
	--rlh-soft: rgba(123, 31, 228, .06);
	--rlh-purple-line: rgba(123, 31, 228, .32);
	--rlh-radius: 16px;
	--rlh-shadow: 0 1px 2px rgba(26, 25, 46, .05), 0 12px 32px -12px rgba(26, 25, 46, .22);
	/* Brand typography (matches the site): DM Sans headings/buttons, Open Sans body. */
	--rlh-font-heading: 'DM Sans', sans-serif;
	--rlh-font-body: 'Open Sans', sans-serif;

	max-width: 760px;
	margin: 0 auto;
	font-family: var(--rlh-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--rlh-muted);
	-webkit-font-smoothing: antialiased;
	/* Breathing room so cards never touch the screen edge (iPhone X etc.).
	   No-op on desktop where the 760px block is centered with space to spare. */
	padding-left: 16px;
	padding-right: 16px;
}

/* Headings use DM Sans (matches the site's h1–h4). */
.rlh-llms h2 { font-family: var(--rlh-font-heading); font-weight: 700; color: var(--rlh-ink); }
.rlh-llms h3 { font-family: var(--rlh-font-heading); font-weight: 700; color: var(--rlh-ink); }

.rlh-llms input,
.rlh-llms select,
.rlh-llms textarea,
.rlh-llms button { font-family: var(--rlh-font-body); }

.rlh-llms *,
.rlh-llms *::before,
.rlh-llms *::after { box-sizing: border-box; }

/* ── Cards ── */
.rlh-llms-card {
	background: var(--rlh-bg);
	border: 1px solid var(--rlh-line);
	border-radius: var(--rlh-radius);
	padding: 28px;
	margin-bottom: 20px;
	box-shadow: var(--rlh-shadow);
}

/* ── Intro / hero: dark navy like the site's dark sections ── */
.rlh-llms-intro {
	background: var(--rlh-dark);
	border-color: var(--rlh-dark);
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Soft brand glow in the hero corner, echoing the site's gradient accents. */
.rlh-llms-intro::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(161, 33, 202, .45) 0%, rgba(123, 31, 228, 0) 70%);
	pointer-events: none;
}

.rlh-llms-intro .rlh-llms-title { color: var(--rlh-white); position: relative; }
.rlh-llms-intro .rlh-llms-sub { color: rgba(255, 255, 255, .78); position: relative; }

.rlh-llms-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--rlh-white);
	background: var(--rlh-grad);
	border: 0;
	padding: 6px 15px;
	border-radius: 999px;
	margin-bottom: 14px;
	position: relative;
}

.rlh-llms-title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0;
}

.rlh-llms-sub {
	margin: 0 auto;
	max-width: 560px;
	color: var(--rlh-muted);
	font-size: 15.5px;
}

/* ── Form ── */
.rlh-llms-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.rlh-llms-field { margin-bottom: 18px; }

.rlh-llms-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 7px;
	color: var(--rlh-ink);
}

.rlh-llms-field input[type="text"],
.rlh-llms-field input[type="url"],
.rlh-llms-field input[type="email"],
.rlh-llms-field input[type="tel"],
.rlh-llms-field select,
.rlh-llms-field textarea {
	width: 100%;
	padding: 12px 14px;
	/* 16px minimum: any smaller and iOS Safari auto-zooms the page when a
	   field is focused, leaving the whole page zoomed and cut off on the right. */
	font-size: 16px;
	color: var(--rlh-ink);
	background: var(--rlh-bg);
	border: 1.5px solid var(--rlh-line);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rlh-llms-field input:focus,
.rlh-llms-field select:focus,
.rlh-llms-field textarea:focus {
	outline: none;
	border-color: var(--rlh-primary);
	box-shadow: 0 0 0 3px rgba(123, 31, 228, .22);
}

.rlh-llms-hint {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--rlh-muted);
}

.rlh-llms-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 13.5px;
	color: var(--rlh-muted);
	cursor: pointer;
}

.rlh-llms-consent input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	accent-color: var(--rlh-primary);
}

.rlh-llms-consent a { color: var(--rlh-primary); text-decoration-color: var(--rlh-primary); }

/* ── Buttons: brand gradient (magenta → purple) with white text,
      hover reverses the gradient and lifts ── */
.rlh-llms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--rlh-white) !important;
	background: var(--rlh-grad);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
	box-shadow: 0 8px 20px -8px rgba(123, 31, 228, .7);
}

.rlh-llms-btn:hover {
	background: var(--rlh-grad-hover);
	color: var(--rlh-white) !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -10px rgba(161, 33, 202, .7);
}
.rlh-llms-btn:active { transform: translateY(0); }
.rlh-llms-btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.rlh-llms-btn-block { width: 100%; padding: 15px; font-size: 16px; }

.rlh-llms-btn-ghost {
	background: var(--rlh-bg) !important;
	color: var(--rlh-primary) !important;
	border: 1.5px solid var(--rlh-purple-line);
	box-shadow: none;
}
.rlh-llms-btn-ghost:hover { background: var(--rlh-soft) !important; border-color: var(--rlh-primary); color: var(--rlh-primary) !important; }

.rlh-llms-trust {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--rlh-muted);
}

.rlh-llms-trust strong { color: var(--rlh-ink); }

/* Captcha (math spam-check) */
.rlh-llms-captcha {
	background: var(--rlh-soft);
	border: 1px solid var(--rlh-purple-line);
	border-radius: 10px;
	padding: 14px 16px;
}
.rlh-llms-captcha label { font-weight: 700; }
.rlh-llms-captcha input { max-width: 200px; }

/* Honeypot */
.rlh-llms-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

/* Error: soft red so problems read as problems. */
.rlh-llms-error {
	margin: 14px 0 0;
	color: #8a1c1c;
	background: rgba(255, 16, 16, .07);
	border: 1.5px solid rgba(255, 16, 16, .35);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
}

.rlh-llms-note { font-size: 14px; color: var(--rlh-muted); margin: 4px 0 0; }

/* ── Progress ── */
.rlh-llms-status { font-weight: 700; font-size: 15px; margin: 0 0 12px; color: var(--rlh-ink); }

.rlh-llms-bar {
	height: 10px;
	background: rgba(26, 25, 46, .08);
	border-radius: 999px;
	overflow: hidden;
}

.rlh-llms-bar-fill {
	height: 100%;
	width: 5%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rlh-primary), var(--rlh-primary-2), var(--rlh-primary));
	background-size: 200% 100%;
	transition: width .6s ease;
	animation: rlh-llms-shimmer 1.6s linear infinite;
}

@keyframes rlh-llms-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.rlh-llms-progress-hint { margin: 12px 0 0; font-size: 13px; color: var(--rlh-muted); }

/* ── Result / report ── */
.rlh-llms-result { border-color: var(--rlh-purple-line); }

.rlh-llms-result-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 22px;
}

.rlh-llms-check {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rlh-grad);
	color: var(--rlh-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	box-shadow: 0 8px 18px -8px rgba(123, 31, 228, .8);
}

.rlh-llms-result-head h3 { margin: 2px 0 4px; font-size: 20px; font-weight: 700; }

/* Stats */
.rlh-llms-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 22px;
}

.rlh-llms-stat {
	background: var(--rlh-soft);
	border: 1px solid var(--rlh-line);
	border-top: 3px solid var(--rlh-primary);
	border-radius: 12px;
	padding: 16px 12px;
	text-align: center;
}

.rlh-llms-stat strong {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--rlh-ink);
}

.rlh-llms-stat span { display: block; margin-top: 5px; font-size: 12px; color: var(--rlh-muted); }

/* Actions */
.rlh-llms-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.rlh-llms-actions .rlh-llms-download { flex: 1 1 220px; }

/* Preview as a "code window" — brand dark with purple accents */
.rlh-llms-preview-wrap {
	border: 1px solid var(--rlh-line);
	border-radius: 12px;
	overflow: hidden;
}

.rlh-llms-preview-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--rlh-dark);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.rlh-llms-dots { display: inline-flex; gap: 6px; }
.rlh-llms-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.rlh-llms-dots i:nth-child(1) { background: var(--rlh-primary); }
.rlh-llms-dots i:nth-child(2) { background: var(--rlh-primary-2); }
.rlh-llms-dots i:nth-child(3) { background: rgba(255, 255, 255, .35); }

.rlh-llms-filename { color: rgba(255, 255, 255, .65); font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.rlh-llms-preview {
	max-height: 460px;
	overflow: auto;
	margin: 0;
	padding: 18px;
	background: var(--rlh-dark);
	color: rgba(255, 255, 255, .88);
	font-size: 12.5px;
	line-height: 1.6;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre-wrap;
	word-break: break-word;
}

.rlh-llms-preview::-webkit-scrollbar { width: 10px; height: 10px; }
.rlh-llms-preview::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 999px; }

/* ── Daily limit notice ── */
.rlh-llms-limit {
	text-align: center;
	background: var(--rlh-soft);
	border-color: var(--rlh-purple-line);
}

.rlh-llms-limit-icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 10px;
}

.rlh-llms-limit h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--rlh-ink);
}

.rlh-llms-limit-msg {
	margin: 0 auto;
	max-width: 460px;
	color: var(--rlh-muted);
	font-size: 15px;
}

.rlh-llms-limit-pitch {
	margin: 12px auto 0;
	max-width: 460px;
	color: var(--rlh-ink);
	font-size: 15px;
}

.rlh-llms-limit .rlh-llms-limit-cta { margin-top: 18px; }

/* ── Responsive ── */
@media (max-width: 560px) {
	.rlh-llms-card { padding: 20px; }
	.rlh-llms-grid { grid-template-columns: 1fr; }
	.rlh-llms-stats { grid-template-columns: repeat(2, 1fr); }
	.rlh-llms-title { font-size: 18px; }
	.rlh-llms-actions .rlh-llms-download { flex-basis: 100%; }
}

/* ─────────────────────────────────────────────
   Dormant Pro wizard styles (kept for parity).
   ───────────────────────────────────────────── */
.rlh-llms-link { background: none; border: 0; color: var(--rlh-primary); cursor: pointer; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--rlh-primary); }
.rlh-llms-joblog { max-height: 180px; overflow: auto; background: var(--rlh-dark); color: rgba(255, 255, 255, .82); padding: 12px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; }
.rlh-llms-steps-nav { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; }
.rlh-llms-steps-nav li { padding: 6px 12px; background: rgba(26, 25, 46, .06); border-radius: 999px; font-size: 13px; cursor: pointer; }
.rlh-llms-steps-nav li.active { background: var(--rlh-grad); color: var(--rlh-white); }
.rlh-llms-steps-nav li.done { background: rgba(123, 31, 228, .18); }
.rlh-llms-step { border: 0; padding: 0; margin: 0 0 16px; }
.rlh-llms-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rlh-llms-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.rlh-llms-row input { flex: 1; padding: 8px 10px; border: 1px solid rgba(26, 25, 46, .2); border-radius: 6px; }
.rlh-llms-remove { background: rgba(26, 25, 46, .08); color: var(--rlh-ink); border: 0; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 16px; line-height: 1; }
.rlh-llms-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rlh-llms-credits { font-weight: 700; background: rgba(123, 31, 228, .12); color: var(--rlh-primary); padding: 6px 12px; border-radius: 999px; }
.rlh-llms-summary dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; }
.rlh-llms-summary dt { font-weight: 600; }
.rlh-llms-summary dd { margin: 0; }
.rlh-llms-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.rlh-llms-score { background: var(--rlh-soft); border: 1px solid var(--rlh-line); border-radius: 10px; padding: 14px; text-align: center; }
.rlh-llms-score strong { display: block; font-size: 26px; color: var(--rlh-primary); }
.rlh-llms-score span { font-size: 12px; color: var(--rlh-muted); }
.rlh-llms-checklist ul { list-style: none; padding: 0; margin: 0 0 12px; }
.rlh-llms-checklist li { padding: 3px 0; font-size: 14px; }
.rlh-llms-checklist li.pass { color: rgba(26, 25, 46, .75); }
.rlh-llms-checklist li.warn { color: #a77c00; }
.rlh-llms-checklist li.fail { color: #8a1c1c; font-weight: 600; }
.rlh-llms-history-list table { width: 100%; border-collapse: collapse; }
.rlh-llms-history-list td { padding: 8px 6px; border-bottom: 1px solid var(--rlh-line); font-size: 14px; }
.rlh-llms-pricing { list-style: none; padding: 0; }
.rlh-llms-pricing li { padding: 6px 0; }
