/*
Theme Name: AddonSpot
Theme URI: https://www.addonspot.com/
Author: AddonSpot
Description: A lightweight, fast, light-and-clean theme purpose-built for the AddonSpot free-tools directory. Full-width hero, tool-card grid, and a clean reading layout for tool and article pages. Pairs with the AddonSpot Tools plugin.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: addonspot
*/

:root{
	--primary:#E63946; --primary-dark:#C42C39; --accent:#F97316;
	--ink:#1A1A1A; --muted:#6B7280; --line:#ECECEC;
	--bg:#FFFFFF; --bg-alt:#FBFBFB; --card:#FFFFFF;
	--radius:12px; --shadow:0 1px 2px rgba(0,0,0,.05); --shadow-lg:0 12px 30px rgba(230,57,70,.15);
	--wrap:1180px; --read:820px;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--bg);color:var(--ink);
	font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
	font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;}
h1,h2,h3,h4{font-family:"Sora","Inter",sans-serif;line-height:1.2;letter-spacing:-.01em;color:var(--ink);}
a{color:var(--primary);text-decoration:none;}
a:hover{color:var(--primary-dark);text-decoration:underline;}
img{max-width:100%;height:auto;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.25rem;}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.7rem 1.3rem;border-radius:11px;
	font-weight:700;font-size:.98rem;cursor:pointer;border:1px solid transparent;transition:transform .06s,background .15s,box-shadow .15s;text-decoration:none;}
.btn:hover{text-decoration:none;transform:translateY(-1px);}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-dark);color:#fff;}
.btn-ghost{background:#fff;color:var(--primary);border-color:var(--line);}
.btn-ghost:hover{background:var(--bg-alt);color:var(--primary);}

/* ---- Header / nav ---- */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.9);
	backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line);}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:66px;}
.site-logo{display:inline-flex;align-items:center;}
.site-logo svg{height:34px;width:auto;display:block;}
.main-nav{display:flex;align-items:center;gap:1.35rem;}
.main-nav a{color:var(--ink);font-weight:600;font-size:.93rem;}
.main-nav a:hover{color:var(--primary);text-decoration:none;}
.main-nav .btn{padding:.5rem .95rem;}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.4rem;color:var(--ink);}
.nav-toggle svg{width:26px;height:26px;}
@media(max-width:860px){
	.main-nav{position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);
		flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1.25rem 1rem;display:none;box-shadow:var(--shadow);}
	.main-nav.open{display:flex;}
	.main-nav a{padding:.7rem 0;border-bottom:1px solid var(--line);}
	.main-nav .btn{margin-top:.6rem;justify-content:center;}
	.nav-toggle{display:inline-flex;}
}

/* ---- Hero ---- */
.hero{background:linear-gradient(180deg,#F7F9FC 0%,#FFFFFF 100%);border-bottom:1px solid var(--line);
	text-align:center;padding:clamp(2.75rem,7vw,5rem) 0 clamp(2.25rem,5vw,3.5rem);}
.hero h1{font-size:clamp(2rem,5vw,3.25rem);margin:0 0 1rem;max-width:16ch;margin-inline:auto;font-weight:800;}
.hero h1 .grad{color:var(--primary);}
.hero p{font-size:clamp(1.05rem,2vw,1.25rem);color:var(--muted);max-width:620px;margin:0 auto 1.6rem;}
.hero-cta{display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap;}
.hero-trust{margin-top:1.75rem;display:flex;gap:1.25rem;justify-content:center;flex-wrap:wrap;color:var(--muted);font-size:.88rem;font-weight:600;}
.hero-trust span{display:inline-flex;align-items:center;gap:.4rem;}
.hero-trust svg{width:16px;height:16px;color:var(--primary);}

/* ---- Top announcement bar ---- */
.topbar{background:#16A34A;color:#fff;text-align:center;font-size:.85rem;font-weight:600;padding:.55rem 1rem;}
.topbar a{color:#fff;text-decoration:underline;}
.topbar a:hover{opacity:.9;}

/* ---- Sections ---- */
.section{padding:clamp(2.5rem,6vw,4rem) 0;}
.section--alt{background:var(--bg-alt);}
.section-head{text-align:center;max-width:640px;margin:0 auto 2rem;}
.section-head h2{font-size:clamp(1.5rem,3.5vw,2.1rem);margin:0 0 .6rem;color:var(--primary);}
.section-head h2::after{content:"";display:block;width:56px;height:3px;background:var(--primary);border-radius:2px;margin:.6rem auto 0;}
.section-head p{color:var(--muted);margin:0;font-size:1.05rem;}

/* ---- Tool card grid ---- */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.15rem;}
.tool-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;background:var(--card);border:1px solid var(--line);
	border-radius:var(--radius);padding:1.6rem 1.3rem;box-shadow:var(--shadow);transition:transform .13s,box-shadow .13s,border-color .13s;}
.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:#F5C2C6;}
.tool-card__icon{width:56px;height:56px;}
.tool-card__icon svg{width:100%;height:100%;display:block;}
.tool-card__title{font-size:1.1rem;font-weight:700;margin:.4rem 0 0;color:var(--primary);}
.tool-card__desc{color:var(--muted);font-size:.9rem;margin:0;flex:1;}
.tool-card__cta{margin-top:.7rem;font-weight:700;color:#fff;background:var(--primary);font-size:.85rem;
	padding:.5rem 1.1rem;border-radius:8px;display:inline-flex;align-items:center;gap:.35rem;transition:background .15s;}
.tool-card:hover .tool-card__cta{background:var(--primary-dark);}

/* ---- Category cards ---- */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.15rem;}
.cat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);}
.cat-card h3{margin:0 0 .4rem;font-size:1.15rem;}
.cat-card p{color:var(--muted);margin:0 0 .8rem;font-size:.93rem;}
.cat-card a.more{font-weight:700;font-size:.9rem;}

/* ---- Feature row ---- */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;text-align:center;}
.feature h3{font-size:1.05rem;margin:.6rem 0 .3rem;}
.feature p{color:var(--muted);font-size:.92rem;margin:0;}
.feature__ic{width:46px;height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
	background:var(--primary);color:#fff;}
.feature__ic svg{width:24px;height:24px;}

/* ---- Content (tool + article pages) ---- */
.page-hero{background:var(--bg-alt);border-bottom:1px solid var(--line);padding:2rem 0 1.75rem;}
.page-hero h1{font-size:clamp(1.7rem,4vw,2.5rem);margin:.3rem 0 0;}
.content{max-width:var(--read);margin:0 auto;padding:2.25rem 1.25rem 1rem;}
.content.wide{max-width:var(--wrap);}
.content h2{font-size:1.5rem;margin:2rem 0 .8rem;color:var(--primary);}
.content h3{font-size:1.18rem;margin:1.5rem 0 .5rem;}
.content p,.content li{font-size:1.05rem;}
.content ul,.content ol{padding-left:1.3rem;}
.content li{margin:.35rem 0;}
.content table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.97rem;}
.content th,.content td{border:1px solid var(--line);padding:.65rem .85rem;text-align:left;}
.content thead th{background:var(--bg-alt);font-weight:700;}
.content img{border-radius:12px;}

/* Breadcrumb (plugin outputs .as-breadcrumb; style it for this theme too) */
.breadcrumb,.as-breadcrumb{font-size:.85rem;color:var(--muted);}
.breadcrumb ol,.as-breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:0;}
.breadcrumb li,.as-breadcrumb li{display:flex;align-items:center;}
.breadcrumb li:not(:last-child)::after,.as-breadcrumb li:not(:last-child)::after{content:"/";margin-left:.4rem;color:#CBD5E1;}

/* ---- Footer ---- */
.site-footer{background:#2596be;color:#CBD5E1;margin-top:3rem;padding:3rem 0 1.5rem;font-size:.93rem;}
.footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem;}
.footer-brand svg{height:32px;margin-bottom:.7rem;}
/* The logo's "Addon" text is dark ink; make it legible on the dark footer. */
.footer-brand svg text{fill:#FFFFFF;}
.footer-brand p{color:#94A3B8;font-size:.9rem;max-width:34ch;}
.site-footer h4{color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;margin:0 0 .9rem;}
.site-footer ul{list-style:none;padding:0;margin:0;}
.site-footer li{margin-bottom:.55rem;}
.site-footer a{color:#CBD5E1;}
.site-footer a:hover{color:#fff;text-decoration:none;}
.footer-bar{border-top:1px solid #1E293B;margin-top:2rem;padding-top:1.3rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;color:#94A3B8;font-size:.85rem;}
@media(max-width:820px){.footer-cols{grid-template-columns:1fr 1fr;gap:1.5rem;}}
@media(max-width:480px){.footer-cols{grid-template-columns:1fr;}}

/* ---- Related tools box ---- */
.related{background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;margin:2rem auto;max-width:var(--read);}
.related h2{margin:0 0 .6rem;font-size:1.2rem;}

/* ================================================================
   Added sections: Who Needs / deep-dive tool guides / comparison /
   standout panel / FAQ / partners — matching the tool-directory
   homepage pattern used across the AddonSpot / QuickCounterTools
   family of sites.
   ================================================================ */

/* ---- Who needs + sidebar split ---- */
.split-grid{display:grid;grid-template-columns:2fr 1fr;gap:2.5rem;align-items:start;}
.who-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.1rem;}
.who-list li{font-size:1.02rem;line-height:1.6;padding-left:1.4rem;position:relative;}
.who-list li::before{content:"";position:absolute;left:0;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--primary);}
.who-list strong{color:var(--ink);}

.sidebar-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;box-shadow:var(--shadow);position:sticky;top:90px;}
.sidebar-box h4{margin:0 0 1rem;font-size:.95rem;color:var(--primary);text-transform:uppercase;letter-spacing:.06em;
	border-bottom:2px solid var(--line);padding-bottom:.7rem;}
.sidebar-box ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.15rem;}
.sidebar-box li a{display:flex;align-items:center;gap:.6rem;padding:.55rem 0;color:var(--ink);font-weight:600;font-size:.92rem;border-bottom:1px solid var(--line);}
.sidebar-box li:last-child a{border-bottom:0;}
.sidebar-box li a:hover{color:var(--primary);text-decoration:none;}
.sidebar-box__icon{width:20px;height:20px;flex:none;}
.sidebar-box__icon svg{width:100%;height:100%;display:block;}
@media(max-width:860px){.split-grid{grid-template-columns:1fr;}.sidebar-box{position:static;}}

/* ---- Deep-dive tool guide sections ---- */
.deep-dive .wrap{max-width:var(--read);}
.deep-h2{color:var(--primary);font-size:clamp(1.4rem,3.2vw,1.9rem);margin:0 0 1rem;}
.deep-dive h3{font-size:1.2rem;margin:2rem 0 .6rem;}
.deep-dive h4{font-size:1.02rem;margin:1.4rem 0 .5rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-family:"Inter",sans-serif;}
.deep-dive p{font-size:1.02rem;}
.muted-note{color:var(--muted);font-size:.93rem;font-style:italic;}
.steps-list,.who-uses{padding-left:1.2rem;margin:.8rem 0;}
.steps-list li,.who-uses li{margin:.6rem 0;font-size:1.02rem;line-height:1.6;}

/* ---- Generic data table (deep-dive + comparison sections) ---- */
.table-wrap{overflow-x:auto;margin:1.2rem 0;}
.table-wrap table{width:100%;border-collapse:collapse;font-size:.96rem;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
.table-wrap th,.table-wrap td{border:1px solid var(--line);padding:.75rem 1rem;text-align:left;}
.table-wrap thead th{background:var(--bg-alt);font-weight:700;color:var(--ink);}
.table-wrap tbody tr:nth-child(even){background:var(--bg-alt);}

/* ---- Standout panel (callout box) ---- */
.standout-panel{background:linear-gradient(135deg,#FFF1F2,#FFF7ED);border:1px solid #FBD5D8;border-radius:16px;padding:clamp(1.75rem,4vw,2.75rem);max-width:var(--read);margin:0 auto;}
.standout-panel h2{color:var(--primary);margin:0 0 .7rem;font-size:clamp(1.4rem,3.2vw,1.9rem);}
.standout-panel > p{color:var(--muted);margin:0 0 1.5rem;font-size:1.02rem;}
.standout-list{list-style:none;margin:0;padding:0;display:grid;gap:1rem;}
.standout-list li{display:flex;align-items:flex-start;gap:.7rem;font-size:1.02rem;}
.standout-list svg{width:20px;height:20px;flex:none;margin-top:.2rem;color:var(--primary);}
.standout-list strong{color:var(--ink);}

/* ---- FAQ ---- */
.faq-list{max-width:var(--read);margin:0 auto;display:flex;flex-direction:column;gap:1.5rem;}
.faq-item h3{font-size:1.1rem;margin:0 0 .4rem;}
.faq-item p{color:var(--muted);margin:0;font-size:1rem;}

/* ---- Partners row ---- */
.partners-row{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2.5rem;opacity:.7;}
.partners-placeholder{border:1px dashed var(--line);border-radius:10px;padding:1rem 2rem;color:var(--muted);font-size:.9rem;}
