/*
Theme Name: FixioSpot Tools
Theme URI: https://fixiospot.example
Author: FixioSpot
Author URI: https://fixiospot.example
Description: FixioSpot ultra-premium stylish font generator & bio decorator theme. Ported from the original React app with the exact same design. Built to be modular: new Unicode fonts, frame designs, and future tools can be added without touching existing code.
Version: 3.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fixiospot
*/

/* All real styling lives in assets/css/app.css (Tailwind utility classes,
   same as the original app, plus the small hand-written rules below it).
   This file only needs to exist so WordPress recognizes the theme. */

/* =====================================================================
   Hand-written patch layer.
   assets/dist/app.css is generated by `npm run build` (Tailwind, scanned
   against every .php template + .tsx tool source — see build/README.md).
   This sandbox has no network access to run that build, so any brand
   new utility class introduced in this pass is added here by hand to
   keep 1:1 visual parity until the next real `npm run build`.
   ===================================================================== */

/* ---------- Unicode "tofu box" fix for generated tool output ----------
   See inc/class-enqueue.php for where Noto Sans Math + Noto Sans Symbols
   are conditionally loaded. This override extends Tailwind's default
   font-sans stack so the browser falls through to those fonts, per
   character, only for the rare Unicode symbols the OS's own UI font is
   missing — ordinary text is completely unaffected. Do not remove the
   base OS fonts before Noto here: they render 99% of the page and are
   already installed (zero network cost), so they must stay first. */
.font-sans {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
		"Noto Sans Math", "Noto Sans Symbols", "Segoe UI Symbol",
		"Segoe UI Historic", "Apple Symbols", sans-serif,
		"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

/* ---------- Header ---------- */
.backdrop-blur-xl { --tw-backdrop-blur: blur(24px); backdrop-filter: var(--tw-backdrop-blur); -webkit-backdrop-filter: var(--tw-backdrop-blur); }
.bg-slate-100\/70 { background-color: rgba(241,245,249,.7); }
.bg-white\/80 { background-color: rgba(255,255,255,.8); }
.border-slate-200\/70 { border-color: rgba(226,232,240,.7); }
.h-16 { height: 4rem; }

#fixiospot-primary-nav ul { list-style: none; margin: 0; padding: 0; }
#fixiospot-primary-nav a {
	display: block;
	padding: 0.5rem 1.05rem;
	border-radius: 9999px;
	transition: color .15s ease, background-color .15s ease;
}
#fixiospot-primary-nav a:hover { background: #fff; color: #4f46e5; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
#fixiospot-primary-nav .current-menu-item > a,
#fixiospot-primary-nav .current_page_item > a { background: #fff; color: #4f46e5; box-shadow: 0 1px 2px rgba(15,23,42,.08); }

#fixiospot-mobile-menu {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .28s ease, opacity .2s ease;
}
#fixiospot-mobile-menu.is-open { max-height: 480px; opacity: 1; }
#fixiospot-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
#fixiospot-mobile-menu a { display: block; padding: 0.75rem 0.5rem; border-radius: 0.75rem; }
#fixiospot-mobile-menu a:hover,
#fixiospot-mobile-menu .current-menu-item > a { background: #f1f5f9; color: #4f46e5; }

#fixiospot-header { transition: box-shadow .2s ease; }
#fixiospot-header.is-scrolled { box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04); }

/* ---------- Logo sizing (header + footer, real uploaded logos) ---------- */
.fixiospot-logo-img img { max-height: 40px; width: auto; display: block; }
.fixiospot-footer-logo-img img { max-height: 36px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .95; }
.custom-logo-link { display: flex; align-items: center; }

/* ---------- Blog: full-width, clean reading experience ---------- */
.fixiospot-post-content img { border-radius: 1rem; }
.fixiospot-post-content :where(h1, h2, h3, h4, h5, h6) { letter-spacing: -0.02em; scroll-margin-top: 5rem; }

/* ---------- Tool loading skeleton (see template-parts/tool-skeleton.php) ---------- */
.fixiospot-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) { .fixiospot-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fixiospot-skeleton-shimmer {
	background: linear-gradient(90deg, #eef1f5 25%, #f8fafc 37%, #eef1f5 63%);
	background-size: 400% 100%;
	animation: fixiospot-shimmer 1.4s ease infinite;
}
@keyframes fixiospot-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
	.fixiospot-skeleton-shimmer { animation: none; background: #f1f5f9; }
}

/* ---------- Blog/page templates: additional missing utilities ---------- */
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(226 232 240); }
.gap-y-1 { row-gap: .25rem; }
.max-w-4xl { max-width: 56rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.text-right { text-align: right; }
@media (min-width: 640px) {
	.sm\:mb-12 { margin-bottom: 3rem; }
	.sm\:mb-14 { margin-bottom: 3.5rem; }
	.sm\:pt-14 { padding-top: 3.5rem; }
	.sm\:text-5xl { font-size: 3rem; line-height: 1; }
	.sm\:w-56 { width: 14rem; }
}
.fixiospot-post-content.prose-lg { font-size: 1.125rem; line-height: 1.78; }

/* ---------- Blog Sidebar (right column on blog index / archive / single) ---------- */
.max-w-6xl { max-width: 72rem; }
.gap-10 { gap: 2.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) {
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:col-span-2 { grid-column: span 2 / span 2; }
	.lg\:col-span-1 { grid-column: span 1 / span 1; }
}
.items-start { align-items: start; }

/* Default styling for whatever widgets get dropped into "Blog Sidebar"
   (Search, Categories, Recent Posts, Tag Cloud, Text, etc.) so they match
   the site without any extra setup. */
.fixiospot-sidebar .widgettitle,
.fixiospot-sidebar h2,
.fixiospot-sidebar h3 {
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0f172a;
	margin-bottom: 0.75rem;
}
.fixiospot-sidebar ul { list-style: none; margin: 0; padding: 0; }
.fixiospot-sidebar li { margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f1f5f9; }
.fixiospot-sidebar li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.fixiospot-sidebar a { color: #475569; font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.fixiospot-sidebar a:hover { color: #4f46e5; }
.fixiospot-sidebar select,
.fixiospot-sidebar input[type="text"],
.fixiospot-sidebar input[type="search"] {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 0.6rem 0.9rem;
	font-size: 0.875rem;
}
.fixiospot-sidebar .search-form { display: flex; gap: 0.5rem; }
.fixiospot-sidebar .search-submit,
.fixiospot-sidebar button[type="submit"] {
	background: #fbbf24;
	color: #0f172a;
	font-weight: 800;
	font-size: 0.8rem;
	border: none;
	border-radius: 0.75rem;
	padding: 0.6rem 1rem;
	cursor: pointer;
	white-space: nowrap;
}
.fixiospot-sidebar .tagcloud a {
	display: inline-block;
	font-size: 0.75rem !important;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	background: #f1f5f9;
	color: #475569;
	margin: 0 0.35rem 0.35rem 0;
}
.fixiospot-sidebar .tagcloud a:hover { background: #e2e8f0; color: #4f46e5; }
