/*
Theme Name: fixupeasy
Theme URI: https://fixupeasy.com
Author: Maya
Author URI: https://fixupeasy.com
Description: A fast, lightweight theme for a multi-tool utility hub. Features a live tool-finder homepage, clean tool-page templates, and AdSense-friendly blog layouts. Site chrome is namespaced "fxe-" so it never clashes with embedded tools (which use "fue-").
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixupeasy
Tags: tools, utility, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   fixupeasy theme — site chrome (prefix: fxe-)
   Embedded tools use their own "fue-" prefix and are
   fully self-contained, so the two never collide.
   ========================================================= */
:root{
  --bg:#f7f8fb; --card:#ffffff; --border:#e6e8ef; --border-strong:#d7dae5;
  --text:#1a1d29; --muted:#6b7280; --faint:#9aa0ae;
  --accent:#4f46e5; --accent-soft:#eef0fe; --accent-press:#4338ca;
  --ok:#10b981; --radius:16px; --radius-sm:11px;
  --c-image:#4f46e5;   --c-image-bg:#eef0fe;
  --c-seo:#0d9488;     --c-seo-bg:#e6f6f4;
  --c-dev:#7c3aed;     --c-dev-bg:#f1ebfe;
  --c-text:#d97706;    --c-text-bg:#fcf2e3;
  --c-calc:#e11d48;    --c-calc-bg:#fdecf0;
  --shadow:0 1px 2px rgba(16,18,33,.04),0 8px 24px rgba(16,18,33,.05);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; height:auto;}
.fxe-wrap{max-width:1100px; margin:0 auto; padding:0 22px;}
.fxe-main{display:block;}

/* ---------- header ---------- */
.fxe-header{
  position:sticky; top:0; z-index:50; background:rgba(247,248,251,.85);
  backdrop-filter:saturate(140%) blur(10px); border-bottom:1px solid var(--border);
}
.fxe-header-in{display:flex; align-items:center; gap:20px; height:64px;}
.fxe-logo{display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.02em; color:var(--text);}
.fxe-logo-mark{
  width:34px; height:34px; border-radius:9px; background:var(--accent);
  display:flex; align-items:center; justify-content:center; color:#fff; flex:0 0 34px;
  box-shadow:0 4px 12px rgba(79,70,229,.35);
}
.fxe-logo img{max-height:38px; width:auto;}
.fxe-logo-accent{color:var(--accent);}
.fxe-nav{display:flex; gap:6px; margin-left:auto; align-items:center;}
.fxe-nav ul{list-style:none; display:flex; gap:6px; margin:0; padding:0; align-items:center;}
.fxe-nav a{
  display:inline-block; padding:8px 13px; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--muted);
  transition:background .15s,color .15s;
}
.fxe-nav a:hover{background:var(--card); color:var(--text);}
.fxe-nav .fxe-nav-cta{background:var(--accent); color:#fff;}
.fxe-nav .fxe-nav-cta:hover{background:var(--accent-press); color:#fff;}

/* ---------- hero + live tool finder ---------- */
.fxe-hero{padding:64px 0 40px; text-align:center;}
.fxe-eyebrow{
  display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); background:var(--accent-soft); padding:5px 12px; border-radius:20px; margin-bottom:18px;
}
.fxe-hero h1{font-size:clamp(32px,5vw,50px); font-weight:800; letter-spacing:-.03em; line-height:1.08; margin:0 0 16px;}
.fxe-hero h1 .fxe-em{color:var(--accent);}
.fxe-hero p{font-size:18px; color:var(--muted); max-width:560px; margin:0 auto 30px;}
.fxe-search{position:relative; max-width:560px; margin:0 auto;}
.fxe-search svg{position:absolute; left:18px; top:50%; transform:translateY(-50%); color:var(--faint);}
#fxeSearch{
  width:100%; height:58px; padding:0 18px 0 50px; font-size:17px; font-family:inherit;
  border:1px solid var(--border-strong); border-radius:14px; background:var(--card);
  color:var(--text); outline:none; box-shadow:var(--shadow); transition:border-color .15s,box-shadow .15s;
}
#fxeSearch:focus{border-color:var(--accent); box-shadow:0 0 0 4px rgba(79,70,229,.14);}
#fxeSearch::placeholder{color:var(--faint);}
.fxe-chips{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:16px;}
.fxe-chip{
  font-size:13px; font-weight:600; color:var(--muted); background:var(--card);
  border:1px solid var(--border); padding:6px 13px; border-radius:20px; cursor:pointer; transition:all .15s; font-family:inherit;
}
.fxe-chip:hover{border-color:var(--accent); color:var(--accent);}
.fxe-count{margin-top:18px; font-size:13.5px; color:var(--faint); min-height:20px;}

/* ---------- ad slot ---------- */
.fxe-ad{
  margin:8px auto 0; max-width:728px; padding:14px; text-align:center; background:#eef0f5;
  border-radius:12px; color:var(--faint); font-size:12.5px; letter-spacing:.04em;
}

/* ---------- tool sections ---------- */
.fxe-section{padding:34px 0 8px;}
.fxe-section-head{display:flex; align-items:center; gap:11px; margin-bottom:18px;}
.fxe-cat-dot{width:10px; height:10px; border-radius:3px; flex:0 0 10px;}
.fxe-section-head h2{font-size:21px; font-weight:800; letter-spacing:-.02em; margin:0;}
.fxe-section-head .fxe-note{font-size:13.5px; color:var(--faint); margin-left:auto;}
.fxe-tools-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
.fxe-tool-card{
  position:relative; display:flex; flex-direction:column; gap:11px; padding:18px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  transition:transform .15s,box-shadow .15s,border-color .15s; min-height:148px; color:var(--text);
}
.fxe-tool-card:hover{transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--border-strong);}
.fxe-tool-card:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.fxe-tool-ic{width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:0 0 42px;}
.fxe-tool-card h3{font-size:15.5px; font-weight:700; margin:0; letter-spacing:-.01em;}
.fxe-tool-card p{font-size:13px; color:var(--muted); margin:0; line-height:1.45;}
.fxe-tool-badge{
  position:absolute; top:14px; right:14px; font-size:10.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; padding:3px 8px; border-radius:20px;
}
.fxe-tool-badge.is-soon{background:#f1f2f6; color:var(--faint);}
.fxe-tool-badge.is-live{background:#e7f8f1; color:#089f6e;}
.fxe-tool-card.is-soon{opacity:.72;}
.fxe-tool-card.is-soon:hover{transform:none; box-shadow:none;}
.fxe-empty{display:none; text-align:center; padding:50px 20px; color:var(--muted);}
.fxe-empty strong{display:block; font-size:17px; color:var(--text); margin-bottom:6px;}

/* ---------- blog teaser + post grids ---------- */
.fxe-blog{padding:44px 0 8px;}
.fxe-posts-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px;}
.fxe-post{
  display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; transition:transform .15s,box-shadow .15s; color:var(--text);
}
.fxe-post:hover{transform:translateY(-3px); box-shadow:var(--shadow);}
.fxe-post-thumb{height:150px; background:var(--accent-soft); background-size:cover; background-position:center; display:block;}
.fxe-post-thumb.tint-2{background:var(--c-seo-bg);}
.fxe-post-thumb.tint-3{background:var(--c-text-bg);}
.fxe-post-body{padding:16px 17px 18px;}
.fxe-post-tag{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--accent);}
.fxe-post h3,.fxe-post h2{font-size:15.5px; font-weight:700; margin:7px 0 0; line-height:1.35;}
.fxe-post-excerpt{font-size:13px; color:var(--muted); margin:8px 0 0;}
.fxe-post-meta{font-size:12.5px; color:var(--faint); margin-top:10px;}

/* ---------- page / archive headers ---------- */
.fxe-page-head{padding:46px 0 6px; text-align:center;}
.fxe-page-head h1{font-size:clamp(26px,4vw,38px); font-weight:800; letter-spacing:-.02em; margin:0;}
.fxe-page-head p{color:var(--muted); margin:10px auto 0; max-width:560px;}

/* ---------- single post / prose ---------- */
.fxe-article{max-width:720px; margin:0 auto; padding:18px 0 10px;}
.fxe-article-head{text-align:center; padding:34px 0 18px;}
.fxe-article-head h1{font-size:clamp(28px,4.4vw,42px); font-weight:800; letter-spacing:-.02em; line-height:1.12; margin:0 0 14px;}
.fxe-article-meta{font-size:13.5px; color:var(--faint);}
.fxe-article-meta a{color:var(--accent); font-weight:600;}
.fxe-featured{border-radius:var(--radius); overflow:hidden; margin:0 0 26px;}
.fxe-prose{font-size:17px; color:#23262f; line-height:1.75;}
.fxe-prose p{margin:0 0 20px;}
.fxe-prose h2{font-size:24px; font-weight:800; letter-spacing:-.01em; margin:34px 0 12px;}
.fxe-prose h3{font-size:19px; font-weight:700; margin:26px 0 10px;}
.fxe-prose ul,.fxe-prose ol{margin:0 0 20px; padding-left:22px;}
.fxe-prose li{margin:0 0 8px;}
.fxe-prose a{color:var(--accent); text-decoration:underline; text-underline-offset:2px;}
.fxe-prose img{border-radius:12px;}
.fxe-prose blockquote{
  margin:0 0 22px; padding:4px 0 4px 20px; border-left:3px solid var(--accent);
  color:var(--muted); font-style:italic;
}
.fxe-prose code{background:#f1f2f6; padding:2px 6px; border-radius:6px; font-size:.9em;}
.fxe-prose pre{background:#1a1d29; color:#e8eaf2; padding:16px; border-radius:12px; overflow:auto; margin:0 0 22px;}
.fxe-prose pre code{background:none; padding:0;}
.alignleft{float:left; margin:6px 22px 16px 0;}
.alignright{float:right; margin:6px 0 16px 22px;}
.aligncenter{display:block; margin-left:auto; margin-right:auto;}
.wp-caption-text{font-size:13px; color:var(--faint); text-align:center;}

/* default page (About/Privacy/Contact) */
.fxe-page-body{max-width:760px; margin:0 auto; padding:8px 0 10px;}

/* tool page wrapper (template-tool.php) — minimal, lets the tool own the page */
.fxe-tool-page{padding:30px 0 12px;}

/* ---------- pagination ---------- */
.fxe-pagination{display:flex; gap:8px; justify-content:center; margin:34px 0 10px; flex-wrap:wrap;}
.fxe-pagination .page-numbers{
  display:inline-block; padding:9px 14px; border:1px solid var(--border); border-radius:10px;
  background:var(--card); color:var(--text); font-weight:600; font-size:14px;
}
.fxe-pagination .page-numbers.current{background:var(--accent); color:#fff; border-color:var(--accent);}
.fxe-pagination a.page-numbers:hover{border-color:var(--accent); color:var(--accent);}

/* ---------- search form ---------- */
.fxe-searchform{position:relative; max-width:460px; margin:0 auto;}
.fxe-searchform input[type=search]{
  width:100%; height:52px; padding:0 16px; font-size:16px; font-family:inherit;
  border:1px solid var(--border-strong); border-radius:12px; background:var(--card); outline:none;
}
.fxe-searchform input[type=search]:focus{border-color:var(--accent); box-shadow:0 0 0 4px rgba(79,70,229,.14);}
.fxe-searchform button{
  position:absolute; right:6px; top:6px; height:40px; padding:0 16px; border:none; border-radius:9px;
  background:var(--accent); color:#fff; font-weight:700; cursor:pointer; font-family:inherit;
}

/* ---------- 404 ---------- */
.fxe-404{text-align:center; padding:70px 0 30px;}
.fxe-404 .fxe-code{font-size:84px; font-weight:800; color:var(--accent); letter-spacing:-.04em; line-height:1;}
.fxe-404 h1{font-size:26px; font-weight:800; margin:8px 0 10px;}
.fxe-404 p{color:var(--muted); margin:0 auto 24px; max-width:440px;}

/* ---------- footer ---------- */
.fxe-footer{margin-top:54px; border-top:1px solid var(--border); background:var(--card);}
.fxe-footer-in{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px; padding:46px 0 30px;}
.fxe-footer h4{font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--faint); margin:0 0 14px;}
.fxe-footer ul{list-style:none; padding:0; margin:0;}
.fxe-footer li{margin-bottom:9px;}
.fxe-footer li a{font-size:14px; color:var(--muted);}
.fxe-footer li a:hover{color:var(--accent);}
.fxe-footer-about p{font-size:14px; color:var(--muted); margin:12px 0 0; max-width:260px;}
.fxe-footer-bottom{
  border-top:1px solid var(--border); padding:18px 0; display:flex; justify-content:space-between;
  flex-wrap:wrap; gap:10px; font-size:13px; color:var(--faint);
}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .fxe-tools-grid{grid-template-columns:repeat(2,1fr);}
  .fxe-posts-grid{grid-template-columns:1fr;}
  .fxe-footer-in{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .fxe-nav a:not(.fxe-nav-cta){display:none;}
  .fxe-tools-grid{grid-template-columns:1fr 1fr;}
  .fxe-hero{padding:42px 0 30px;}
  .fxe-footer-in{grid-template-columns:1fr 1fr;}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important; scroll-behavior:auto !important;}
}

/* breadcrumbs */
.fxe-breadcrumbs{padding:16px 0 0; font-size:13px; color:var(--muted);}
.fxe-breadcrumbs .fxe-wrap{display:block;}
.fxe-breadcrumbs a{color:var(--muted);}
.fxe-breadcrumbs a:hover{color:var(--accent);}
.fxe-breadcrumbs .separator{margin:0 7px; color:var(--faint);}
.fxe-breadcrumbs .last{color:var(--text); font-weight:600;}

/* accessibility helper */
.screen-reader-text{
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; width:1px;
  margin:-1px; overflow:hidden; padding:0; position:absolute; word-wrap:normal !important;
}
.skip-link{position:absolute; left:-9999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 8px 0; z-index:100;}
.skip-link:focus{left:0;}
