import Link from "next/link";
import { FreeToolsLottie } from "@/components/common/FreeToolsLottie";

/**
 * Real inline SVG icons, copied verbatim from the live "Rightbar Service"
 * module's own stored content (`JM_modules` id 115 — see AGENTS.md
 * "Services-page right sidebar"). The live site renders these as raw
 * `<svg class="tool-image">...</svg>` markup, not bitmap images — this
 * app previously stood in PNG icons here, which not only didn't match the
 * real artwork but meant the real hover rule already ported into
 * `app/css/sidebars.css` (`.box-tool:hover .tool-image path{fill:#fff}`)
 * had nothing to act on, since a bitmap `<img>` has no `<path>` elements.
 */
export const FREE_TOOLS: { label: string; href: string; svg: string }[] = [
  {
    label: "AI Humanizer",
    href: "/ai-humanizer",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M19.8897 3.45292C22.2383 3.20612 24.4354 1.91052 26.4951 3.80512C28.447 5.60059 27.4027 8.39077 26.9155 10.6141C31.2962 12.8722 30.8177 17.0141 26.7006 19.263C29.3594 25.3626 26.0248 28.5053 19.9679 25.9974C18.3468 30.67 12.7824 30.6806 11.2327 25.9737C8.25304 26.988 4.02852 27.3711 3.72712 23.2083C3.64286 22.0448 4.73659 19.4863 4.59616 19.061C4.54214 18.8974 2.48606 17.2814 2.09241 16.6927C0.481303 14.2831 2.43302 11.7278 4.63609 10.62C2.26585 4.91445 5.21737 1.32719 11.2384 3.69622C12.8151 -1.19596 17.984 -1.18566 19.8897 3.45292ZM18.7573 4.13618C18.3388 2.60919 17.0132 0.718072 15.1636 1.10287C14.3075 1.28098 12.4878 2.96281 12.3473 3.80771C12.2685 4.28125 12.4474 4.07323 12.6623 4.1592C13.2015 4.37483 15.4115 5.45624 15.5705 5.46958C16.2037 5.52304 17.8501 4.05568 18.7573 4.13618ZM25.8161 9.64312C27.7812 4.86037 25.417 2.86082 20.7466 4.58223C21.1292 5.33176 21.7256 8.03455 22.1264 8.49421C22.2555 8.64223 25.6598 9.75649 25.8161 9.64312ZM10.5842 4.58231C5.99784 2.95977 3.39547 5.29074 5.71285 9.7795C5.93745 9.98269 6.11997 9.76814 6.32007 9.7024C6.66831 9.58787 9.25649 8.45212 9.36372 8.32415C9.80546 7.79661 10.2041 5.36435 10.5842 4.58231ZM14.3395 6.34179C14.2145 5.86933 11.8117 4.93237 11.6911 5.02111L10.8068 8.10816C11.8995 7.40188 13.0118 6.53011 14.3395 6.34179ZM19.6402 5.02066C19.5562 4.94338 17.792 5.7479 17.5256 5.88347C17.3532 5.97123 16.8423 5.95297 17.2127 6.3409C17.4547 6.59432 20.2569 7.65065 20.7448 8.32872L19.6402 5.02066ZM15.8144 6.82526C12.3797 8.33561 10.5475 9.30776 9.06824 12.8802C8.24765 14.8617 8.18861 14.7858 9.06841 16.7865C10.5349 20.1212 12.5081 21.1622 15.5905 22.8452C15.8826 22.872 20.1405 20.0991 20.5355 19.6938C21.0476 19.1683 23.162 15.3931 23.1618 14.8332C23.1615 14.2482 21.3541 10.6735 20.8633 10.087C19.6447 8.63104 17.4149 7.83932 15.8144 6.82526ZM9.03585 9.6528L6.16572 11.0978L7.27219 13.619L9.03585 9.6528ZM25.3874 10.756L22.296 9.6518C22.2089 9.75586 23.3545 11.7369 23.5053 12.08C23.7651 12.6717 23.7779 13.9806 24.3356 13.1164C24.5589 12.7703 25.5775 10.9776 25.3874 10.756ZM4.95185 11.6437C3.84637 12.269 2.52797 13.7325 2.61115 15.0556C2.65924 15.8206 4.50446 17.9468 5.14854 17.7952C5.31643 17.7557 6.79528 15.0397 6.78657 14.8725C6.77697 14.6871 5.13723 11.6587 4.95185 11.6437ZM26.2735 18.0302C29.4587 16.2939 29.8569 13.6047 26.5998 11.6438C26.3507 12.2311 24.7434 14.4609 24.7321 14.8323C24.714 15.431 26.2871 17.1672 26.2735 18.0302ZM9.25676 20.0141C9.56444 19.6884 7.64386 16.7141 7.60196 16.0473C7.31563 16.1747 6.25321 18.709 6.39176 18.904L9.25676 20.0141ZM25.3868 18.9098L23.8432 16.0479L22.0729 20.0131L25.3868 18.9098ZM9.45533 21.1407C9.33007 20.9873 6.22881 20.2327 5.72614 19.795C4.36223 22.6168 4.23329 25.8519 8.27359 25.5359C11.5138 25.2824 9.94993 24.2004 9.53519 22.2715C9.46745 21.956 9.53815 21.242 9.45533 21.1407ZM25.8277 20.0147C25.6868 19.8868 22.3058 20.9722 22.1825 21.117C21.7671 21.6054 21.232 24.3175 20.747 25.0839C25.4331 26.8704 27.7543 24.7881 25.8277 20.0147ZM20.967 21.1189C17.1786 23.2857 18.1545 22.6467 16.7704 23.7614L19.6506 24.556L20.967 21.1189ZM14.3393 23.3258C13.6196 23.527 10.7579 21.1715 10.5837 21.3404L11.4695 24.6463C11.5703 24.7373 13.8131 23.9497 14.0582 23.8157C14.3134 23.6762 14.4306 23.8241 14.3393 23.3258ZM15.7754 24.2856C15.5882 24.2861 12.389 25.6678 12.3768 25.8543C13.7431 29.1569 17.4926 29.3433 18.7359 25.8544C18.7234 25.6875 15.9875 24.285 15.7754 24.2856Z" fill="black"></path> <path d="M18.7584 16.7109C18.7144 16.9595 18.8295 17.7399 18.7564 17.8115C18.4082 18.1525 13.4358 17.9851 12.5713 18.0352V16.711L18.7584 16.7109Z" fill="black"></path> <path d="M12.352 13.6236C11.8912 12.3941 14.0046 12.285 14.8937 12.2813C16.0995 12.2764 17.5383 12.7148 18.8339 12.5569C19.4835 12.7614 19.1398 13.6235 18.87 13.6235L12.352 13.6236Z" fill="black"></path> </svg>',
  },
  {
    label: "AI Essay Writer",
    href: "/ai-essay-writer",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.0604 24.0041C11.3261 24.6114 3.71475 27.5285 2.46244 27.8496C1.68244 28.0496 0.740288 28.2319 1.06627 27.1224C2.87363 24.2547 3.94229 20.1919 5.81948 17.4557C7.00365 15.7297 16.7035 7.26692 18.2566 5.86145C20.3137 3.99974 21.5901 1.48514 24.876 2.09242C26.1736 2.33223 28.5378 4.71777 28.8703 5.95953C29.6478 8.86269 26.7465 10.1543 25.0324 11.745C21.477 15.0446 17.9117 18.3088 14.3125 21.5612C13.5647 22.2369 12.6855 23.487 12.0604 24.0041ZM22.6296 3.35233C22.319 3.76702 26.595 8.00513 27.114 8.58088C29.3885 6.35631 25.2211 1.90115 22.6296 3.35233ZM25.0632 10.0811C25.3307 10.233 25.8175 10.0708 25.8997 9.76124C26.1533 8.80554 22.0921 5.21351 21.4258 4.22964C21.1538 4.54794 20.4993 4.85145 20.7564 5.31114L25.0632 10.0811ZM24.1301 11.1749L23.9523 10.4277C23.1965 9.99575 20.1025 5.91026 19.7038 5.98211L7.54927 17.6077C9.12801 19.0316 10.2009 21.0306 12.1385 22.0244L24.1301 11.1749ZM7.09188 18.6207C6.37461 18.1016 4.07414 23.3362 4.07343 23.3471C4.05779 23.6152 5.19843 25.2768 5.49617 25.3522C5.87919 25.4492 11.0279 23.3902 11.0299 23.0911C9.97288 21.6754 8.62461 20.5445 7.41103 19.2785C7.17975 19.0371 7.12155 18.6422 7.09188 18.6207ZM3.81027 24.947C3.31254 24.5165 3.06199 26.0415 3.16025 26.254L4.25166 26.0348C4.30977 25.9819 3.85478 24.9854 3.81027 24.947Z" fill="black"></path> </svg>',
  },
  {
    label: "Essay Typer Tool",
    href: "/essay-typer",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.43034 0.141896C7.48387 0.00140382 11.0422 -0.0841746 11.9871 0.127196C14.0628 0.591422 13.1196 3.82063 13.0925 5.23409C13.0046 9.82293 13.6773 16.3075 13.0837 20.596C12.9621 21.474 9.53312 28.3905 9.10145 28.4926C8.37611 28.6639 5.21094 22.1702 4.71679 20.4189C5.22614 14.4586 4.03912 7.36534 4.71291 1.54098C4.84767 0.376029 5.40136 0.27907 6.43034 0.141896ZM12.1258 1.25352H5.69209V3.39377H12.1258V1.25352ZM8.03161 17.0134V4.65844C8.03161 4.19611 6.10817 4.40496 5.69209 4.36664V19.5428H12.1258V4.36664H9.20137V17.0135L8.03161 17.0134ZM11.9308 20.7102H6.17951C6.12313 20.7102 6.04047 20.4737 5.88901 20.5156C5.43002 21.1426 8.61459 25.7421 8.8138 26.7412C9.43177 26.2103 12.1764 20.9478 11.9308 20.7102Z" fill="#333333"></path> <path d="M17.9313 1.30396C18.8876 1.20116 20.2219 1.63338 20.7143 2.51157C21.5276 3.96217 20.9062 11.6931 20.8891 13.6034C20.8545 17.4683 21.5188 22.0355 20.2127 25.5752C19.9992 26.1539 19.0903 28.5045 18.4614 28.5045C17.7078 28.2013 17.3079 27.0232 16.9654 26.2932C15.2286 22.5917 15.7927 21.5168 15.8387 17.7078C15.89 13.4628 15.3391 8.78491 15.6364 4.66456C15.7629 2.91093 15.8719 1.52536 17.9313 1.30396ZM20.1185 5.53809C20.1002 4.35441 20.3215 2.97012 19.0264 2.44623C16.8811 1.57839 16.4356 3.87399 16.6092 5.53809H20.1185ZM20.1185 6.70549H16.6092V7.8729H20.1185V6.70549ZM19.9236 9.0403H16.8043L16.6093 21.1035H19.9237L19.9236 9.0403ZM19.9236 22.2709H16.6092C16.5119 22.7665 18.2829 27.1491 18.5565 26.94C19.1053 25.427 19.8942 23.926 19.9236 22.2709Z" fill="#333333"></path> <path d="M25.1876 7.08339C25.2925 7.1794 25.4315 9.33918 25.7631 9.8667C25.9935 10.2332 26.9057 10.2923 26.9479 10.8771V26.0625C27.0134 28.6214 23.829 29.08 23.2515 26.6258C23.5524 21.6629 22.8083 16.1562 23.2311 11.2591C23.3699 9.65121 24.1785 10.2814 24.3782 9.67965C24.5745 9.08829 24.1613 7.48645 24.593 7.17078C24.737 7.06537 25.1385 7.03843 25.1876 7.08339ZM24.213 10.9747C24.4518 14.8527 23.721 25.803 24.4951 26.9407C24.7097 27.2561 25.6017 27.2448 25.7459 26.8051C25.8016 26.6353 25.9665 24.5 25.9766 24.1169C26.006 22.999 25.7731 22.0141 25.7643 21.005C25.7367 17.8236 26.1344 14.6502 25.9688 11.4616C25.8474 10.6726 24.8143 11.0455 24.213 10.9747Z" fill="#333333"></path> </svg>',
  },
  {
    label: "Plagiarism Checker",
    href: "/plagiarism-checker",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M26.6727 28.2584H6.61261C6.48234 28.2584 5.66885 27.7021 5.52064 27.5199C5.17743 27.0978 4.92954 25.7742 4.84941 25.7212C4.66452 25.5987 3.314 25.8247 3.21401 25.3974C2.85406 23.8594 4.82537 24.65 4.87433 24.3143V22.9554C3.45455 22.8887 3.24727 23.4349 3.05011 21.9372C2.96939 21.3238 4.81979 21.9351 4.87433 21.5713V20.0302L3.22138 19.926V18.9331H4.87306C5.01895 17.3139 4.84174 17.1411 3.22138 17.2896V16.1139L4.87313 16.0099V14.5453H3.22249V13.3715L4.87313 13.2674V11.6201H3.22249V10.6292L4.87313 10.525V8.87769H3.22256C2.67386 7.10995 4.60514 7.85282 4.87313 7.59948C4.93421 7.54179 4.82946 6.40361 4.87306 6.13527C2.32612 6.5363 2.42589 4.62123 4.87238 5.03837C4.39861 3.5305 5.23895 2.19556 6.65099 1.60386C11.6467 1.52679 16.6453 1.57097 21.6424 1.57297C25.7423 1.57461 26.8687 1.05301 26.8343 2.77546C26.677 10.6425 27.3118 18.8952 26.8644 26.7125C26.8339 27.2464 26.6953 27.7319 26.6727 28.2584ZM25.7563 2.47972H6.97894C6.26098 2.47972 5.48106 4.16742 5.78736 4.85728C6.68887 4.96613 8.77378 4.35141 8.36435 5.84584C8.27016 6.18969 6.18413 6.15019 5.78773 6.13534V7.59888H8.35296C8.76306 9.43249 6.99659 8.7652 5.78729 8.87776V10.5251C6.58791 10.6926 8.37336 10.0165 8.34859 11.1749C8.33155 11.9715 6.33666 11.5003 5.78736 11.6203C5.46164 13.811 6.51878 13.2181 8.17069 13.2656V14.3645C6.51075 14.4111 5.46335 13.8218 5.78729 16.0099L8.17181 16.1139V17.2897H5.78729V18.9351C6.88328 19.0859 8.66805 18.3216 8.35296 20.0312H5.78773V21.6776H8.17069V22.7745C7.84675 22.7526 5.87627 22.876 5.78981 22.9582C5.72047 23.0241 5.83364 24.1474 5.78729 24.42H8.17009C8.34753 26.1224 6.96824 25.3754 5.78878 25.517C5.69228 25.8982 6.31546 27.3443 6.61261 27.3443H23.9247V24.6933C23.9247 24.4533 24.6012 24.3593 24.8408 24.4191V27.0701C24.8408 27.3094 25.5172 27.4047 25.7563 27.345V2.47972Z" fill="black"></path> <path d="M21.8511 14.1719H11.3525V15.2689H21.8511V14.1719Z" fill="black"></path> <path d="M21.8511 11.6016H11.3525V12.6985H21.8511V11.6016Z" fill="black"></path> <path d="M11.3525 10.1429V9.04495C14.8703 8.91301 18.3383 9.27158 21.8525 9.22777V10.1429H11.3525Z" fill="black"></path> <path d="M21.8511 19.6562H11.3525V20.5704H21.8511V19.6562Z" fill="black"></path> <path d="M21.8511 16.9062H11.3525V17.8204H21.8511V16.9062Z" fill="black"></path> </svg>',
  },
  {
    label: "Paraphrasing Tool",
    href: "/paraphrasing-tool",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18.922 3.99186H22.8608C22.9971 3.99186 23.9649 4.29576 24.0716 4.42889C25.0943 5.70651 24.1719 21.7589 24.2941 26.63C23.9821 27.4751 23.6101 27.8673 22.689 27.9545C17.4302 28.4524 11.3625 27.5659 6.01699 27.9318C5.34739 27.8259 4.60684 27.0494 4.5 26.3778V4.53938C4.92155 3.67392 8.57062 4.55014 9.22415 4.09477C9.55344 3.86534 9.28167 2.99618 9.49014 2.53197C9.65367 2.16777 10.3454 1.66094 10.7601 1.60547C11.8115 1.46492 17.1295 1.44924 18.0581 1.65447C19.0168 1.86638 19.3016 3.1959 18.922 3.99186ZM10.495 3.99186H18.0065V2.52832C16.9979 2.55839 11.0608 2.0659 10.6692 2.43603C10.3308 2.7559 10.5469 3.53782 10.495 3.99186ZM5.36548 5.08882V26.2055C5.36548 26.4271 6.00293 27.116 6.36407 26.9874H22.9533C23.7889 26.5244 23.2518 22.4007 23.3114 19.799C23.3689 17.283 24.0551 5.68135 23.2015 5.07265C22.4251 4.5189 19.9088 5.21453 18.9212 5.08793C18.8469 6.62684 19.4142 8.38709 17.3737 8.57138C16.0831 8.68787 11.9637 8.75202 10.8121 8.52044C8.69555 8.09484 10.0399 5.4254 9.40749 4.98584C8.05818 4.76495 6.702 4.94834 5.36548 5.08882ZM10.495 7.64845H17.7313C18.1435 7.64845 18.1435 5.08882 17.7313 5.08882H10.495V7.64845Z" fill="#333333"></path> <path d="M8.29606 8.1875V22.997C8.29606 23.0605 9.06289 23.2105 9.29911 23.733C10.1839 25.6896 7.59557 23.6145 7.36947 23.2358C6.92426 22.4901 7.3744 21.64 7.38749 20.9021C7.46234 16.6672 7.31709 12.421 7.37906 8.1875H8.29606Z" fill="#333333"></path> <path d="M21.3042 23.191H20.3872C20.2895 19.1442 20.5185 15.0718 20.3958 11.0249C20.3794 10.4849 19.8337 8.43342 20.4981 8.21357C20.7504 8.13004 21.3042 8.25546 21.3042 8.47286V23.191Z" fill="#333333"></path> <path d="M17.64 15.5156H11.228V16.6126H17.64V15.5156Z" fill="#333333"></path> <path d="M17.64 12.9531H11.228V14.0501H17.64V12.9531Z" fill="#333333"></path> <path d="M11.228 11.4866V10.3887C13.3765 10.2568 15.4946 10.6153 17.6408 10.5715V11.4866H11.228Z" fill="#333333"></path> <path d="M17.64 21H11.228V21.9142H17.64V21Z" fill="#333333"></path> <path d="M17.64 18.2578H11.228V19.172H17.64V18.2578Z" fill="#333333"></path> </svg>',
  },
  {
    label: "Grammar Checker Tool",
    href: "/grammar-checker",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18.7906 17.0125L25.0967 16.0147C25.5401 16.7769 24.7798 18.2517 24.8754 18.4039C25.0541 18.6883 27.2349 19.5831 26.9792 20.4471C26.8216 20.9793 22.9422 21.8512 22.1906 21.9565C23.1518 23.1945 24.6001 24.378 24.5817 26.0965C23.2805 26.4354 21.9232 26.2685 20.5905 26.3045C21.5918 30.4628 13.3822 28.4622 6.30795 28.8561C5.24945 28.6662 4.18533 27.9423 4.1777 26.8103C4.61955 19.1372 3.43757 2.92203 4.36775 0.522305C4.66779 0.113198 18.7905 -0.405799 18.7905 0.506743L18.7906 17.0125ZM5.19063 1.19851V26.7976C5.19063 27.1022 6.24078 27.9902 6.38828 27.8842C6.5712 27.467 6.63666 25.3149 7.0907 25.3149H23.1907C23.1688 24.6786 21.114 21.859 20.5916 22.3509C20.6022 22.6399 20.9869 23.7336 20.4906 23.7336H6.59011V2.58124H7.59063V20.1754H17.7906V13.2567H8.79062L8.98888 1.39802L5.19063 1.19851ZM17.7906 1.19851H9.99061L9.79065 12.2684H17.7906V1.19851ZM21.6906 17.8032C20.7744 17.9004 19.7243 17.733 18.7906 17.8032C18.8325 18.851 18.5816 19.9371 19.1893 20.8681C20.0965 22.258 20.5944 21.3848 21.7883 21.0627C23.0438 20.7241 24.3224 20.4547 25.5901 20.1729C25.3332 19.5052 23.959 19.5113 23.6781 18.9894C23.3903 18.4547 24.2 17.819 23.9886 17.2102C23.9186 17.1155 22.0158 17.7688 21.6906 17.8032ZM19.3906 22.7452L17.4923 21.1621C14.1126 21.2659 10.7517 21.0287 7.39146 20.9655V22.7452H19.3906ZM19.7906 26.3033H7.89058C7.62628 26.3033 7.30049 27.6056 7.39057 27.8848H18.2905C18.9788 27.8847 19.8157 27.0374 19.7906 26.3033Z" fill="black"></path> </svg>',
  },
  {
    label: "Reference Generator",
    href: "/referencing",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M27.1442 28.2034C26.1181 28.0667 25.0567 28.4338 24.0955 28.4351C20.4107 28.4401 16.6633 28.2361 12.9823 28.2157C10.3095 28.2009 2.37984 28.9932 1.79113 27.9951C1.20032 26.9934 1.71631 15.2311 1.5708 11.6956C1.86165 9.86064 4.31371 10.1562 4.63898 9.60714C4.70266 9.49966 4.90388 7.51096 4.93193 7.12625C5.06316 5.32675 4.47559 3.86811 6.02672 2.47416C8.04195 0.663244 12.2939 1.75318 12.5488 1.66766C12.9449 1.53476 13.0018 -0.00721504 14.5615 2.54173e-05C16.1855 0.00750722 16.3316 1.50329 16.7775 1.65309C17.1983 1.79444 19.2016 1.41353 20.0939 1.50741C21.9877 1.70661 23.4534 2.86949 23.7388 4.80309C23.8933 5.85006 23.5971 8.94841 24.0796 9.61341C24.3258 9.95266 27.0743 9.92476 27.3519 11.6962C27.0832 17.2667 27.917 24.6744 27.1442 28.2034ZM15.4258 3.43345C16.0926 0.288918 13.1265 0.482165 13.6909 3.4407C14.2959 3.60264 14.8471 3.77552 15.4258 3.43345ZM2.84971 27.4327H26.0735C26.7252 27.4327 26.1785 25.0316 26.1645 24.5686C26.0364 20.3368 26.2296 16.0625 26.2437 11.8373C25.5637 10.7671 23.8422 11.3606 23.3095 10.3817C21.8914 7.77603 24.473 2.8506 19.9188 2.47619C18.772 2.3819 17.7755 2.75526 16.644 2.66998C16.6254 2.98985 16.5614 4.25572 16.9428 4.25572H19.8215V5.24725L16.6432 5.445C16.6951 7.6436 17.0973 9.88293 16.6933 12.089C16.7594 12.505 16.7107 12.3775 24.9819 12.3775V25.8478H4.23923C3.24278 25.8478 3.47955 14.6075 3.9625 12.3991C6.83761 12.6928 9.96171 11.693 12.6741 12.5746L12.4767 5.24613H8.90384V4.25564H12.4767C12.4072 3.03434 12.9349 2.64601 11.5617 2.4971C10.1236 2.34119 7.54755 2.40924 6.4792 3.46281C5.28824 4.63729 5.99609 5.60003 5.93676 6.93565C5.90718 7.60258 5.72782 9.78969 5.48663 10.2547C5.00094 11.1912 3.6111 11.0138 2.77644 11.4132C2.61772 15.8545 2.89623 20.3242 2.75879 24.7664C2.74138 25.325 2.18474 27.2269 2.84971 27.4327ZM15.6525 3.85911H13.6666C13.7774 5.7306 13.687 7.53468 13.667 9.40714C13.8766 9.40062 15.6525 9.30771 15.6525 9.20812V3.85911ZM15.642 10.4065C15.5725 10.3356 13.7376 10.1282 13.6668 10.1977V12.1806H15.6536C15.5916 11.848 15.7464 10.5132 15.642 10.4065ZM23.9894 13.3681H5.03319C4.44319 13.3681 4.93064 15.0815 4.94208 15.4398C5.21834 24.0945 4.30186 24.3601 4.92774 24.8156H23.9893L23.9894 13.3681Z" fill="black"></path> <path d="M22.0054 14.961V23.2814C21.7458 23.3463 21.0129 23.2443 21.0129 22.9842V15.9519H7.91241C7.8384 16.1653 8.11089 16.3866 8.11089 16.4472V23.6776L7.11064 23.3464L6.91895 14.9609L22.0054 14.961Z" fill="black"></path> </svg>',
  },
  {
    label: "AI homework helper",
    href: "/ai-homework-helper",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M26.2787 21.5762C26.4639 21.7642 28.0931 21.1998 28.4742 21.9189C28.8334 22.5967 28.866 28.7008 28.516 29.3315C28.3283 29.6698 27.0327 29.8574 26.5915 29.8932C20.4309 29.59 4.67628 30.4421 2.23777 29.6563C1.48836 29.4147 1.65796 25.7015 1.69451 24.9114C1.74037 23.9198 2.04829 22.8614 1.93438 21.8068C2.30698 21.4352 4.05985 21.6559 4.13912 21.5743C4.35862 21.3482 4.03403 18.5786 5.90931 18.1562H24.5415C26.6487 18.4881 26.1308 21.4262 26.2787 21.5762ZM5.35896 20.4603C5.19539 21.5899 5.47857 23.0404 5.35896 24.2108H4.34228C4.50041 22.4361 4.34436 22.7677 2.71951 22.7924C2.59924 23.0756 2.9216 23.3977 2.9216 23.5008V28.6698H27.4982V22.5887C26.0159 22.8634 25.937 22.539 26.0755 24.2113C25.8788 24.1778 25.3167 24.2606 25.2649 24.2113C25.0847 24.0395 25.4952 19.8157 24.7225 19.3294C23.3286 18.4522 11.3982 19.63 6.46685 19.1337C5.78864 19.0653 5.43757 19.9173 5.35896 20.4603Z" fill="#333333"></path> <path d="M7.7964 4.35076C9.41828 4.36608 11.4757 4.3725 12.8612 3.42555C13.4987 2.98982 14.4975 1.43385 15.1996 1.50218C15.6022 1.54137 17.4165 3.58288 18.4484 3.95678C19.4344 4.31406 22.4173 4.26836 22.5948 4.379C23.068 4.67421 22.7131 7.00399 22.6234 7.5949L19.9833 7.39329C20.8237 7.80383 20.6447 10.2291 20.7958 10.2291H28.9203V15.9048L17.0697 16.098C16.7137 17.2974 16.273 17.4268 15.0068 17.4121C13.1252 17.3902 13.6905 16.184 13.3595 16.0948C10.0749 15.9045 1.5 16.7405 1.5 15.398V10.2291H9.52295C10.032 9.47809 10.0153 8.30327 10.2331 7.39181H7.79648L7.7964 4.35076ZM21.8104 6.17402C21.9811 4.90981 20.2236 5.46072 19.2942 5.34242C17.4949 5.11332 16.2176 3.97768 15.0069 2.73281C13.306 4.90479 11.6146 5.62454 8.81216 5.36317V6.37703C9.65246 6.06923 10.4792 6.23495 11.3294 6.15402C15.6515 5.7425 17.5717 6.16867 21.8104 6.17402ZM10.64 10.0264H13.4836C13.5777 10.0264 13.5287 9.23146 15.0082 9.19903C16.3639 9.16931 16.9755 9.87085 17.8605 10.0165C18.5157 10.1243 19.3065 9.96495 19.9825 10.0254C20.1729 9.84394 19.2586 7.7015 18.9595 7.50072C18.0286 6.87573 12.0088 6.80716 11.2984 7.43865C11.0167 7.68908 10.8776 9.52527 10.64 10.0264ZM13.4835 11.2427C2.84044 11.2427 2.51543 11.1124 2.51543 11.5468V14.8913L13.2786 15.0923L13.4835 11.2427ZM15.9219 11.2436C14.9593 11.3091 14.2721 10.8355 14.4982 12.0526C15.4608 11.9869 16.148 12.4606 15.9219 11.2436ZM27.9046 11.2427H16.9365V14.8913H27.9046V11.2427ZM15.7189 13.2706L14.5011 13.5707C15.0573 14.0809 15.9676 14.1288 15.7189 13.2706ZM15.6938 14.7114C15.6545 14.6653 14.5455 14.4391 14.5003 14.4868C14.4868 15.7135 14.1575 16.5192 15.6993 16.0886C15.7658 15.9715 15.7541 14.7823 15.6938 14.7114Z" fill="#333333"></path> <path d="M15.5145 15.0938C15.4463 15.3869 15.1865 15.5594 14.9062 15.497V15.0938H15.5145Z" fill="#333333"></path> <path d="M23.0303 25.633H7.59375V21.9844C21.033 22.7601 23.0303 21.4297 23.0303 22.2885V25.633ZM11.8591 24.6195C12.291 22.4868 9.99967 23.0747 8.60876 22.9968V24.6195H11.8591ZM17.7499 22.9978H12.8741V24.6205C14.516 24.471 16.1191 24.8846 17.7499 24.8231V22.9978ZM18.9675 24.6195H22.0147C21.8836 24.2555 22.3424 22.9835 21.708 22.9901C20.861 22.9988 19.8929 23.3858 18.9675 23.1996V24.6195Z" fill="#333333"></path> </svg>',
  },
  {
    label: "Thesis statement",
    href: "/thesis-tool",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.233 26.2418C3.5569 25.8525 1.2492 26.8358 1.76411 24.9467H4.06612C4.74341 21.783 1.00784 24.677 1.55494 21.8152L3.85848 21.6962V20.1455H1.55477V18.6846L4.06765 18.5657V17.015H1.55477V15.5542L4.06765 15.4353V13.8846H1.55477V12.4237L4.06884 12.3053C4.4082 10.1578 3.10272 10.8346 1.55477 10.7564V9.50191H3.8572V7.83241H1.55477C1.24521 5.87847 2.43681 6.41249 3.85712 6.37368V4.70198H1.76377V3.4498C4.42688 3.78619 3.37219 2.99824 4.2736 1.6764C4.6792 1.08159 5.75564 0.237343 6.48346 0.125212C11.1889 0.353881 16.2446 -0.224832 20.9074 0.103423C24.5513 0.359977 23.3567 1.90735 23.5044 4.81606C24.7005 28.3769 23.8998 28.0208 21.527 28.2862C18.2267 28.6554 10.8944 28.5726 7.51879 28.2824C4.23461 28.0001 4.73432 26.5304 4.233 26.2418ZM22.4674 1.36407C22.006 1.33305 21.5852 1.18048 21.1163 1.14633C17.5436 0.885706 10.8133 0.804771 7.30954 1.15845C5.94732 1.29593 4.8567 1.94465 4.9012 3.45006H6.78478V4.49568H4.90061V6.37395H6.78478V7.83469L4.90179 7.62576V9.50435L6.78605 9.62327V10.7566H4.90061C4.95394 11.0683 4.82375 12.3465 4.90358 12.4231C4.98018 12.4965 6.96388 12.5203 7.00134 12.7518C7.0556 13.0874 6.95208 13.5262 6.99395 13.8859H4.90061V15.5565C7.83039 15.0559 7.82954 17.5162 4.90061 17.0153V18.687H6.78478V20.1478H4.90061V21.8174H6.78478C6.75836 22.1876 6.91683 22.9562 6.588 23.1862C6.22621 23.4393 5.00252 23.1739 4.90061 23.2761C4.54961 23.6283 5.40082 27.0336 6.05178 27.0336H22.4674V1.36407Z" fill="#333333"></path> <path d="M29.9998 3.35016V26.7325C30.0285 28.7306 25.8392 28.9635 25.5967 27.1555V3.34942C25.6498 0.995602 29.9262 1.31884 29.9998 3.35016ZM28.9501 27.0408V3.35391C28.9501 2.62179 26.6498 2.8441 26.6498 3.56257V26.9364C26.6498 27.3767 28.4803 26.8752 28.9501 27.0408Z" fill="#333333"></path> <path d="M18.2372 18.9424C21.2266 18.5807 21.6309 23.105 19.3335 24.0078C18.1207 24.4844 16.033 24.3065 15.7869 22.7407C15.4486 20.5892 15.9161 19.2232 18.2372 18.9424ZM19.4719 22.5829C21.2802 20.6065 17.9478 19.1605 16.8416 20.8951C15.6615 22.7455 18.2952 23.8688 19.4719 22.5829Z" fill="#333333"></path> <path d="M15.3574 17.0233V15.5625H18.5987C18.7236 15.5625 20.2358 15.8941 20.2867 15.9642C20.5138 16.2777 20.327 17.0234 20.0625 17.0234L15.3574 17.0233Z" fill="#333333"></path> <path d="M14.521 19.3125H9.08398V20.5647H14.521V19.3125Z" fill="#333333"></path> <path d="M14.5209 12.2109V13.4631H9.39759C9.07802 13.4631 9.02876 12.5089 9.08396 12.2109H14.5209Z" fill="#333333"></path> <path d="M9.08398 6.37716V5.125H14.2073C14.6223 5.125 14.6226 6.37716 14.2073 6.37716H9.08398Z" fill="#333333"></path> <path d="M20.3773 5.125H15.1494V6.37716H20.3773V5.125Z" fill="#333333"></path> <path d="M14.3119 17.0178H9.08398V15.7656H13.9982C14.3178 15.7656 14.3671 16.7198 14.3119 17.0178Z" fill="#333333"></path> <path d="M20.3763 12.2109V13.4631H15.462C15.1425 13.4631 15.0932 12.5089 15.1484 12.2109H20.3763Z" fill="#333333"></path> <path d="M14.7293 22.8594H8.87402V23.9029H14.7293V22.8594Z" fill="#333333"></path> <path d="M14.3119 8.88281H9.08398V9.92632H14.3119V8.88281Z" fill="#333333"></path> <path d="M20.3762 8.88281H15.3574V9.92632H20.3762V8.88281Z" fill="#333333"></path> </svg>',
  },
  {
    label: "Dissertation generator",
    href: "/dissertation-outline-generator",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_4214_1885)"> <path d="M0 3.41719H2.76339C2.75666 2.78765 2.72741 1.22449 3.3319 0.910235C3.8998 0.615016 7.76655 0.0522211 8.59506 0.0140699C10.9097 -0.0925467 13.3789 0.387056 15.0082 2.1303C16.6003 0.797159 18.3886 0.0806411 20.4936 0.0145009C21.6096 -0.02055 26.2581 0.367505 26.98 0.983435C27.6963 1.59454 27.2964 3.09088 27.4095 3.2055C27.5067 3.30411 29.6841 3.12068 30.1728 3.4165V24.7281C30.1728 25.5984 28.6941 26.557 27.8907 26.6917C25.0211 27.1731 21.187 26.4415 18.211 26.7389C17.4389 28.454 15.8614 28.6154 14.1194 28.4491C12.3484 28.28 12.1204 26.8942 11.3642 26.7463C8.79206 26.2433 4.80632 27.2135 2.11308 26.6484C1.36008 26.4904 0 25.5314 0 24.7282V3.41719ZM14.4468 23.3498C14.8889 22.0992 14.4563 20.9935 14.4403 19.8597C14.362 14.3134 14.6137 8.75663 14.3324 3.21481C11.9177 -0.119501 7.36968 1.35418 3.94743 1.90785L3.61347 22.9247C7.17043 21.3808 11.039 21.4559 14.4468 23.3498ZM15.7239 3.31048V23.1377C22.7921 20.192 24.2331 22.7366 26.5606 22.9257C26.5606 1.76739 26.7429 1.97227 26.1836 1.72467C25.5697 1.45296 21.5557 1.06129 20.7257 1.08049C19.447 1.11003 16.0843 1.87891 15.7239 3.31048ZM1.06245 4.47681V24.3041C1.06245 26.8449 8.67445 25.2583 12.6093 25.7159C13.1492 25.8939 13.0772 27.3289 14.558 27.3919C14.8657 27.405 16.117 27.1878 16.3569 27.0573C16.9148 26.7538 16.6571 26.1973 16.8291 25.9401C17.2182 25.3587 25.7972 25.863 27.2857 25.664C27.9882 25.57 29.1103 25.1188 29.1103 24.3041V4.47681H27.623V23.4559C27.623 23.5611 27.1948 23.8576 27.0414 23.9368C25.4217 24.7732 23.5999 22.1726 18.7727 23.3176C17.7069 23.5704 15.924 24.5628 14.9649 24.608C13.0401 24.6984 12.1832 22.5717 7.14117 23.1606C5.89025 23.3068 3.74758 24.6893 2.81715 23.7196C2.07295 22.944 2.81819 7.28381 2.55016 5.00662C2.46128 4.25135 1.63441 4.49825 1.06245 4.47681Z" fill="#333333"></path> <path d="M24.8596 17.2003C23.6594 17.3987 22.5283 16.5306 21.3636 16.5587C20.2508 16.5854 18.9428 17.3754 17.8508 17.6256C17.812 14.8985 24.3757 14.6399 24.8596 17.2003Z" fill="#333333"></path> <path d="M19.9185 9.17671C20.8782 9.01567 24.8612 9.17146 24.8561 10.5061C24.8536 11.1614 22.8769 10.0384 20.933 10.1893C20.1338 10.2513 18.3422 11.1229 17.9738 11.0269C16.6578 10.6837 19.1985 9.29754 19.9185 9.17671Z" fill="#333333"></path> <path d="M12.5348 17.6202C10.8302 17.1479 9.90896 16.5236 8.0186 16.8239C6.95926 16.9923 5.23381 18.3843 5.526 17.0944C5.9724 15.1233 12.5344 14.7649 12.5348 17.6202Z" fill="#333333"></path> <path d="M12.5352 11.0521C11.4235 10.8716 10.3825 10.2373 9.23134 10.1994C7.56025 10.1443 5.50654 11.7966 5.51664 10.5215C5.5295 8.88854 12.5518 8.37862 12.5352 11.0521Z" fill="#333333"></path> </g> <defs> <clipPath id="clip0_4214_1885"> <rect width="30" height="30" fill="white"></rect> </clipPath> </defs> </svg>',
  },
  {
    label: "Summary generator",
    href: "/summary-generator",
    svg: '<svg class="tool-image" width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M27.5311 4.91749C27.7184 5.14418 29.222 5.63055 29.5105 6.12193C30.4924 7.79412 29.6936 23.4435 29.6933 23.4537C29.6534 24.6131 30.0133 28.4918 29.2907 29.114C28.6434 29.6713 24.1128 29.4062 22.9231 29.4155C20.6507 29.4335 19.1848 29.8138 16.8121 29.0762C16.2995 28.9169 14.8418 28.0367 14.6808 28.0459C14.3379 28.0655 12.4189 29.1741 11.5581 29.3678C9.07663 29.9262 2.33445 30 1.5 26.8027V3.94704C4.36448 1.10636 9.55784 0.800957 13.0675 2.70878C13.3948 2.88672 14.2535 3.6972 14.4435 3.69729C14.5655 3.69729 15.9971 2.58575 16.4909 2.36957C19.2801 1.14895 25.296 0.883689 27.1169 3.8158C27.3264 4.15329 27.3956 4.7535 27.5311 4.91749ZM14.9487 4.86931V24.7757C14.7405 24.739 14.2432 24.8426 14.1544 24.7618C13.426 24.0986 14.2679 7.38021 13.9335 5.07605C11.8311 1.98619 6.9981 2.10422 3.89552 3.51606C1.81764 4.46165 2.25911 3.85561 2.63042 19.6126C3.03283 21.555 1.67835 25.8852 3.02051 27.3063C4.69648 29.0808 9.89812 28.7191 12.0749 28.0658C12.6058 27.9064 14.8548 26.7983 15.0196 26.8304C15.189 26.8633 15.8196 27.5009 16.1849 27.6822C18.7166 28.9394 26.1219 29.299 26.2179 25.087V4.16511C24.3355 2.2302 19.6551 2.24645 17.3152 3.194C16.8971 3.36332 15.0394 4.54446 14.9487 4.86931ZM28.6911 28.2112V7.29445C28.6911 6.97748 27.7314 6.06588 27.2765 6.18291V26.2913C27.2765 26.8038 25.939 27.9336 25.6598 28.4113L28.6911 28.2112Z" fill="black"></path> <path d="M11.5141 17.6969H5.14813C4.83929 17.6969 4.79167 16.7729 4.84502 16.4844H11.4131C11.8372 16.4844 11.4554 17.3996 11.5141 17.6969Z" fill="black"></path> <path d="M24.0423 6.79456C24.0693 6.82238 24.0763 7.46166 24.0122 7.56975C23.8472 7.8479 18.56 7.92546 17.8784 7.8021C17.2931 7.69614 17.1687 6.9555 17.5105 6.79398C18.1377 6.49753 23.7709 6.51476 24.0423 6.79456Z" fill="black"></path> <path d="M5.04623 8.80496C5.03146 8.01294 4.88225 7.68776 5.74379 7.58263C6.37732 7.50531 11.3067 7.59256 11.5143 7.79372C11.5716 7.84929 11.4752 8.58131 11.5132 8.80496H5.04623Z" fill="black"></path> <path d="M11.5138 22.1529C11.329 22.1452 6.18691 22.2347 5.17978 21.9174C4.58629 21.7304 4.89981 20.9396 5.14701 20.9396C11.3917 20.9396 11.6626 20.484 11.5138 22.1529Z" fill="black"></path> <path d="M17.3737 12.0423C17.4141 11.8138 17.3076 11.1016 17.3763 11.0343C17.6722 10.7447 23.1507 11.2151 24.0433 11.0307V12.0423H17.3737Z" fill="black"></path> <path d="M24.042 15.4844V16.4949H17.676C17.4107 16.4949 17.3067 15.7487 17.3729 15.4844H24.042Z" fill="black"></path> <path d="M11.514 12.2422H5.04688V13.2527H11.514V12.2422Z" fill="black"></path> <path d="M23.8417 20.1328V21.1444C23.0542 21.1211 18.0503 21.2111 17.7775 20.9395C17.749 20.911 17.738 20.1328 17.7784 20.1328H23.8417Z" fill="black"></path> </svg>',
  },
];

export function ExploreFreeToolsBlock() {
  return (
    <div className="sidebar-tools-adv">
      <div className="top-heading">
        <FreeToolsLottie />
        <p className="card-heading">Explore Our FREE Tools</p>
      </div>
      <div className="listing-bar">
        <div className="tools-inner-box">
          {FREE_TOOLS.map((tool) => (
            <Link key={tool.href} href={tool.href} className="box-tool group">
              {/* Real inline SVG from the live module content — safe,
                  static markup with no user input, same pattern as other
                  verbatim-copied real markup elsewhere in this app. Sized
                  by its own native `width="30" height="30"` attributes,
                  same as the live markup — the real CSS never overrides
                  `.tool-image`'s size, only its transition/hover color. */}
              <span className="shrink-0" dangerouslySetInnerHTML={{ __html: tool.svg }} />
              <p className="tool-name">{tool.label}</p>
              <div className="arrow" aria-hidden="true" />
            </Link>
          ))}
        </div>
      </div>
    </div>
  );
}
