/*
Theme Name: ToolBites Sub
Theme URI: https://toolbites.com
Author: ToolBites
Description: Subdomain theme for ToolBites tool sites — SEO, Image, PDF, Calculator etc
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2
Text Domain: toolbites-sub
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --brand:         #534AB7;
  --brand-dark:    #3C3489;
  --brand-light:   #EEEDFE;
  --brand-xlight:  #F7F6FF;
  --teal:          #0F6E56;
  --teal-dark:     #085041;
  --teal-light:    #E1F5EE;
  --accent:        #9FE1CB;
  --text-primary:  #2C2C2A;
  --text-secondary:#5F5E5A;
  --text-muted:    #888780;
  --border:        #E8E6DF;
  --border-dark:   #D3D1C7;
  --bg:            #FFFFFF;
  --bg-secondary:  #F7F6F2;
  --bg-tertiary:   #F1EFE8;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(44,44,42,0.08);
  --shadow-md:     0 4px 16px rgba(44,44,42,0.10);
  --shadow-lg:     0 8px 32px rgba(44,44,42,0.12);
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --transition:    0.18s ease;
  /* Category color — customizer se change hoti hai */
  --cat-color:     #534AB7;
  --cat-light:     #EEEDFE;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(24px, 4vw, 38px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(16px, 2vw, 20px); }
h4 { font-size: 16px; }
p  { color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   LAYOUT
============================================================ */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1360px; }
.section { padding: 56px 0; }
.section--sm { padding: 32px 0; }

/* ============================================================
   BUTTONS
============================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); border: 1.5px solid transparent; text-decoration: none; white-space: nowrap; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(83,74,183,0.3); }
.btn--teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-light); }
.btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--lg { padding: 13px 28px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   BADGES
============================================================ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.badge--brand { background: var(--brand-light); color: var(--brand-dark); }
.badge--teal  { background: var(--teal-light);  color: var(--teal-dark); }
.badge--hot   { background: #FAECE7; color: #993C1D; }
.badge--new   { background: var(--brand-light); color: var(--brand-dark); }
.badge--free  { background: var(--teal-light);  color: var(--teal-dark); }

/* ============================================================
   AD SLOTS
============================================================ */
.ad-slot { width: 100%; background: var(--bg-secondary); border: 1px dashed var(--border-dark); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; min-height: 60px; }
.ad-slot::before { content: 'Advertisement'; position: absolute; top: 4px; right: 8px; font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 280px; max-width: 336px; }
.ad-slot--banner      { min-height: 60px; }
.ad-slot--sidebar     { min-height: 600px; }
.ad-wrap { padding: 16px 0; display: flex; justify-content: center; }
.ad-wrap--labeled::before { content: 'Advertisement'; display: block; font-size: 10px; color: var(--text-muted); text-align: right; padding: 0 0 4px; }

/* ============================================================
   TOOL CARDS
============================================================ */
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; transition: all var(--transition); }
.tool-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tool-card__body { flex: 1; min-width: 0; }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tool-card__title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tool-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-card__arrow { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; transition: transform var(--transition); }
.tool-card:hover .tool-card__arrow { transform: translateX(3px); color: var(--brand); }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tools-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header__title { font-size: 20px; font-weight: 600; }
.section-header__link { font-size: 14px; color: var(--brand); font-weight: 500; }
.section-header__link:hover { text-decoration: underline; }

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text-primary); }

/* ============================================================
   UTILITIES
============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.bg-secondary { background: var(--bg-secondary); }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px} .mb-4{margin-bottom:32px}
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 99px; } ::-webkit-scrollbar-thumb:hover { background: var(--brand); }
