/* MentorsBoss — Robots.txt Generator tool styles
 * Loaded only on /tools/robots-txt-generator/ (see
 * functions.php). Scoped under .rb-tool. Uses the theme's own
 * variables (--navy, --violet, --gold, --ink, --line, --mist)
 * so the tool stays in step with the rest of the site. No new
 * dependency.
 */

/* Layout: form card + 360px output panel in a grid
   (minmax(0,1fr) 360px). The panel gets a DEFINITE inner column
   (grid-template-columns:minmax(0,1fr)) and min-width:0 on the panel
   and every card inside it — an `auto` inner column sizes to its
   widest min-content child (a long robots.txt line) and spills
   past 360px. Long content must scroll internally, never push a
   card wider. */
.rb-tool{
	background:linear-gradient(135deg,var(--navy) 0%,var(--navy3) 55%,#241056 100%);
	border-radius:18px;
	padding:28px;
	color:#DBE2F5;
}
.rb-tool h2{color:#fff}
.rb-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.rb-form-card,.rb-output{min-width:0}
.rb-output{position:sticky;top:84px;align-self:start}
.rb-form-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:22px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);
}
.rb-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.rb-preset{
	font:inherit;font-size:13.5px;font-weight:700;color:var(--violet-d);
	background:var(--violet-100);border:1px solid #DDD6FE;border-radius:999px;
	padding:7px 14px;min-height:36px;cursor:pointer;
}
.rb-preset:hover{background:var(--violet);color:#fff}
.rb-preset-note{
	display:none;font-size:13.5px;line-height:1.55;color:var(--ink-soft);
	background:#F5F3FF;border-radius:10px;padding:10px 12px;margin:10px 0 16px;
}
.rb-field{margin-bottom:16px}
.rb-label{display:block;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:6px}
.rb-input,.rb-select{
	width:100%;font:inherit;font-size:15px;color:var(--ink);
	background:#fff;border:1px solid var(--line);border-radius:8px;
	padding:10px 12px;min-height:44px;
}
.rb-input:focus,.rb-select:focus{outline:2px solid var(--violet);outline-offset:1px;border-color:var(--violet)}
textarea.rb-input{resize:vertical;min-height:84px;line-height:1.5}
.rb-hint{font-size:13px;color:var(--ink-soft);margin:5px 0 0;line-height:1.45}
.rb-group{
	border:1px solid var(--line);border-radius:12px;padding:16px;
	margin-bottom:14px;background:#FBFAFF;
}
.rb-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.rb-group-title{font-size:14px;font-weight:800;color:var(--navy)}
.rb-remove-group{
	font:inherit;font-size:13px;font-weight:700;color:#B91C1C;background:none;
	border:0;cursor:pointer;padding:4px 6px;
}
.rb-agent-custom{margin-top:8px}
.rb-rules{margin-top:12px}
.rb-rule-row{display:flex;gap:8px;align-items:stretch;margin-bottom:8px}
.rb-rule-row .rb-rule-type{flex:0 0 118px;min-width:0}
.rb-rule-row .rb-rule-path{flex:1 1 auto;min-width:0}
.rb-remove{
	flex:0 0 36px;font-size:20px;line-height:1;color:#B91C1C;background:#FDECEC;
	border:1px solid #FECACA;border-radius:8px;cursor:pointer;min-height:44px;
}
.rb-add-rule{
	font:inherit;font-size:13.5px;font-weight:700;color:var(--violet-d);
	background:var(--violet-100);border:1px solid #DDD6FE;border-radius:999px;
	padding:6px 14px;min-height:34px;cursor:pointer;margin-top:2px;
}
.rb-add-rule:hover{background:var(--violet);color:#fff}
.rb-adv{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.rb-add-group{width:100%;margin-bottom:16px}
.rb-import{margin-top:4px;padding-top:16px;border-top:1px solid var(--line)}
.rb-import-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.rb-note{font-size:13.5px;color:var(--ink-soft);line-height:1.6;margin:0}
.rb-note b{color:var(--ink)}
.rb-output{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.rb-output>*{min-width:0}
.rb-preview-card{background:var(--navy2);border-radius:14px;padding:18px 20px;box-shadow:0 18px 40px rgba(6,13,36,.35)}
.rb-preview-card h3{color:#fff;font-size:15px;margin:0 0 12px}
.rb-preview{
	font-family:"JetBrains Mono",ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
	font-size:12.5px;line-height:1.6;color:#D8CCFF;background:rgba(0,0,0,.25);
	border:1px solid rgba(255,255,255,.12);border-radius:8px;
	margin:0;padding:12px;white-space:pre;overflow:auto;max-height:320px;min-width:0;
}
.rb-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.rb-actions .btn{flex:1 1 auto}
/* The theme's .btn-ghost is dark navy text for LIGHT backgrounds —
   inside the dark preview card it would be dark-on-dark. Light ghost
   styling for the Share button on dark surfaces (same fix as the
   UTM Builder and Review Link Generator). */
.rb-actions .btn-ghost{color:#DBE2F5;border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.06)}
.rb-actions .btn-ghost:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.12)}
.rb-warnings-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:18px 20px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);
}
.rb-warnings-card h3{color:var(--navy);font-size:15px;margin:0 0 12px}
.rb-warn{font-size:13.5px;line-height:1.55;border-radius:10px;padding:10px 12px;margin:0 0 8px}
.rb-warn:last-child{margin-bottom:0}
.rb-warn-error{background:#FDECEC;color:#991B1B}
.rb-warn-warning{background:#FFFBEB;color:#92400E}
.rb-warn-info{background:#EFF6FF;color:#1E40AF}
.rb-ok{font-size:13.5px;line-height:1.55;color:#166534;background:#F0FDF4;border-radius:10px;padding:10px 12px;margin:0}
.rb-test-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:18px 20px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);
}
.rb-test-card h3{color:var(--navy);font-size:15px;margin:0 0 12px}
.rb-test-row{display:flex;gap:8px;margin-bottom:8px}
.rb-test-row .rb-test-agent{flex:0 0 130px;min-width:0}
.rb-test-row .rb-test-path{flex:1 1 auto;min-width:0}
.rb-test-result{font-size:14px;font-weight:700;line-height:1.55;border-radius:10px;padding:10px 12px;margin:10px 0 0;background:#F1F5F9;color:var(--ink-soft)}
.rb-test-result.rb-allowed{background:#F0FDF4;color:#166534}
.rb-test-result.rb-blocked{background:#FDECEC;color:#991B1B}
.rb-test-note{font-size:13px;color:var(--ink-soft);line-height:1.5;margin:10px 0 0}
.rb-guide-list{margin:0 0 16px;padding-left:20px;color:var(--ink-soft);font-size:16px;line-height:1.7}
.rb-guide-list li{margin-bottom:8px}
.rb-guide-list li::marker{color:var(--violet)}
.rb-guide-list b{color:var(--ink)}
.rb-guide-list a{color:var(--violet-d);font-weight:700;text-decoration:none}

@media (max-width:900px){
	.rb-layout{grid-template-columns:1fr}
	.rb-output{position:static}
	.rb-tool{padding:20px 16px}
	.rb-form-card{padding:18px 16px}
	.rb-rule-row{flex-wrap:wrap}
	.rb-rule-row .rb-rule-type{flex:1 1 110px}
	.rb-test-row{flex-wrap:wrap}
	.rb-test-row .rb-test-agent{flex:1 1 120px}
}
