/* 
Theme Name: FormatPilot
Theme URI: https://navajowhite-mouse-187608.hostingersite.com
Author: Format Pilot Team
Author URI: https://navajowhite-mouse-187608.hostingersite.com
Description: Custom WordPress theme for FormatPilot - Convert, Clean & Format Data or Text Instantly
Version: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formatpilot
*/

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:    #4F46E5;
  --primary-dk: #3730A3;
  --accent:     #06B6D4;
  --dark:       #0F172A;
  --dark-2:     #1E293B;
  --mid:        #334155;
  --muted:      #64748B;
  --light:      #F1F5F9;
  --white:      #FFFFFF;
  --border:     #E2E8F0;
  --radius:     12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--mid); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #1e1b4b 100%); padding: 6rem 0 5rem; text-align: center; }
.hero-inner { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); padding: .35rem 1rem; border-radius: 20px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.25rem,5vw,3.25rem); font-weight: 900; color: #fff; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto 2.25rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-item span { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s; border: none; font-family: var(--font); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); color: var(--white); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.btn-lg { padding: .875rem 2rem; font-size: 1.05rem; }

/* SECTION HEADER */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); display: block; margin-bottom: .75rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; line-height: 1.25; }
.section-header p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* TOOLS SECTION */
.tools-section { padding: 5rem 0; background: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.tool-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 1.75rem; text-decoration: none; color: var(--dark); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,.12); border-color: var(--primary); text-decoration: none; color: var(--dark); }
.tool-icon { font-size: 2rem; display: block; margin-bottom: 1rem; line-height: 1; }
.tool-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.tool-card p { font-size: .875rem; color: var(--muted); line-height: 1.55; flex-grow: 1; margin-bottom: .75rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tool-tags span { background: #F0EDFF; color: var(--primary); font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px; }
.tool-cta { font-size: .85rem; font-weight: 700; color: var(--primary); margin-top: auto; }

/* FEATURES SECTION */
.features-section { padding: 5rem 0; background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { background: #fff; border-radius: 16px; padding: 2rem 1.5rem; border: 1.5px solid var(--border); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* CTA SECTION */
.cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dk) 100%); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.cta-inner p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1.2rem; font-weight: 800; color: var(--dark); text-decoration: none; letter-spacing: -.02em; }
.site-logo span { color: var(--primary); }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.main-nav a { font-size: .88rem; font-weight: 500; color: var(--mid); text-decoration: none; padding: .45rem .85rem; border-radius: 8px; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--primary); background: #F0EDFF; }
.header-cta .btn { font-size: .875rem; padding: .5rem 1.15rem; }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 3rem 0 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* BLOG */
.blog-header { background: var(--light); padding: 4rem 0 3rem; text-align: center; }
.blog-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.blog-header p { color: var(--muted); font-size: 1.05rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-content { padding: 1.5rem; }
.blog-card-meta { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.blog-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; line-height: 1.4; }
.blog-card p { font-size: .875rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.blog-card-link { font-size: .875rem; font-weight: 600; color: var(--primary); }

/* SINGLE POST */
.post-header { background: var(--light); padding: 3.5rem 0; }
.post-header h1 { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 1rem; }
.post-meta { font-size: .875rem; color: var(--muted); }
.post-content { max-width: 760px; margin: 0 auto; padding: 3rem 2rem; }
.post-content h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 .5rem; }
.post-content p { margin-bottom: 1.25rem; line-height: 1.75; color: var(--mid); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .5rem; line-height: 1.7; color: var(--mid); }
.post-content code { background: var(--light); padding: .15rem .4rem; border-radius: 4px; font-family: monospace; font-size: .9em; color: var(--primary-dk); }
.post-content pre { background: var(--dark-2); color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin-bottom: 1.5rem; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: #F0EDFF; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: .95rem; font-family: var(--font); color: var(--dark); background: #fff; transition: border-color .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* RESPONSIVE */
@media (max-width: 1024px) { .tools-grid, .features-grid { grid-template-columns: repeat(2,1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .tools-grid, .features-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } .main-nav { display: none; } .hero h1 { font-size: 2rem; } .section-header h2 { font-size: 1.6rem; } .blog-grid { grid-template-columns: 1fr; } .hero-stats { gap: 1rem; } }


/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.blog-hero .section-label { color: var(--accent); }
.blog-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
  line-height: 1.2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.blog-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}
.blog-main { padding: 4rem 0 5rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.1);
  border-color: var(--primary);
}
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card-body { padding: 1.75rem; }
.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.blog-card-date { font-size: 0.78rem; color: var(--muted); }
.blog-card-readmore { font-size: 0.78rem; font-weight: 700; color: var(--primary); }
.blog-empty { text-align: center; color: var(--muted); padding: 4rem 0; font-size: 1.1rem; }
.blog-pagination { margin-top: 3rem; text-align: center; }
.blog-pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: all 0.15s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 3.5rem 0 3rem;
}
.post-hero-inner { max-width: 760px; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.post-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span { color: rgba(255,255,255,0.35); }
.post-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.post-meta { display: flex; gap: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.post-layout { padding: 3.5rem 0 5rem; }
.post-content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--mid); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.75; color: var(--mid); }
.post-content code { background: var(--light); padding: 0.15rem 0.4rem; border-radius: 4px; font-family: monospace; font-size: 0.88em; color: var(--primary-dk); }
.post-content pre { background: var(--dark-2); color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin-bottom: 1.5rem; font-family: monospace; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: #F0EDFF; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; }
.post-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--light);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-tools { list-style: none; margin: 0; padding: 0; }
.sidebar-tools li { margin-bottom: 0.6rem; }
.sidebar-tools a { font-size: 0.9rem; color: var(--mid); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.sidebar-tools a:hover { background: #fff; color: var(--primary); }
.sidebar-cta { background: var(--primary); border-radius: 16px; padding: 1.5rem; text-align: center; }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.5; }
.sidebar-cta .btn-primary { background: #fff; color: var(--primary); width: 100%; justify-content: center; }

/* ============================================
   TOOL PAGES
   ============================================ */
.tool-page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.tool-page-hero .section-label { color: var(--accent); }
.tool-page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
  line-height: 1.2;
}
.tool-page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.tool-page-main { padding: 3rem 0; background: var(--light); }
.tool-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.tool-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.tool-panels-single { grid-template-columns: 1fr; }
.tool-panel { display: flex; flex-direction: column; }
.tool-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.tool-textarea {
  width: 100%;
  min-height: 280px;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.tool-textarea:focus { border-color: var(--primary); background: #fff; }
.tool-textarea-tall { min-height: 340px; }
.text-stats-bar {
  display: flex;
  gap: 0;
  background: var(--light);
  border-radius: 12px;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
}
.text-stat {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid var(--border);
}
.text-stat:last-child { border-right: none; }
.text-stat span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.text-stat label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tool-controls { display: flex; flex-direction: column; gap: 1rem; }
.tool-convert-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tool-select {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  cursor: pointer;
  outline: none;
}
.tool-arrow { font-size: 1.25rem; color: var(--muted); font-weight: 700; }
.tool-action-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.tool-action-wrap { flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-dark {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.btn-ghost-dark:hover { background: var(--light); color: var(--dark); }
.tool-status {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0;
  min-height: 1.5rem;
  transition: all 0.2s;
}
.tool-status-ok { color: #16a34a; }
.tool-status-error { color: #dc2626; }
.tool-page-content { padding: 4rem 0 5rem; }
.page-content-inner { max-width: 860px; margin: 0 auto; }
.page-content-inner h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 0.75rem; }
.page-content-inner h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.page-content-inner p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--mid); }
.page-content-inner ul, .page-content-inner ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content-inner li { margin-bottom: 0.5rem; line-height: 1.75; color: var(--mid); }

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
  .post-content-wrap { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .tool-panels { grid-template-columns: 1fr; }
  .text-stats-bar { flex-wrap: wrap; }
  .text-stat { flex: 1 1 30%; border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem; }
}


/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero { background: linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 100%); padding: 4rem 0 3.5rem; text-align: center; }
.blog-hero .section-label { color: var(--accent); }
.blog-hero h1 { font-size: clamp(1.75rem,3.5vw,2.75rem); font-weight: 800; color: #fff; margin: .75rem auto; line-height: 1.2; max-width: 700px; }
.blog-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.65; }
.blog-main { padding: 4rem 0 5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.blog-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s,box-shadow .2s,border-color .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,.1); border-color: var(--primary); }
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card-body { padding: 1.75rem; }
.blog-card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .65rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: .65rem; }
.blog-card-excerpt { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-card-date { font-size: .78rem; color: var(--muted); }
.blog-card-readmore { font-size: .78rem; font-weight: 700; color: var(--primary); }
.blog-empty { text-align: center; color: var(--muted); padding: 4rem 0; font-size: 1.1rem; }
.blog-pagination { margin-top: 3rem; text-align: center; }
.blog-pagination .nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); font-size: .875rem; font-weight: 600; color: var(--mid); text-decoration: none; padding: 0 .75rem; transition: all .15s; }
.blog-pagination .page-numbers:hover, .blog-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero { background: linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 100%); padding: 3.5rem 0 3rem; }
.post-hero-inner { max-width: 760px; }
.post-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 1.25rem; flex-wrap: wrap; }
.post-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span:last-child { color: rgba(255,255,255,.35); }
.post-hero h1 { font-size: clamp(1.6rem,3vw,2.25rem); font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 1rem; }
.post-meta { display: flex; gap: .75rem; font-size: .85rem; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.post-layout { padding: 3.5rem 0 5rem; }
.post-content-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 .5rem; }
.post-content p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--mid); }
.post-content ul,.post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .5rem; line-height: 1.75; color: var(--mid); }
.post-content code { background: var(--light); padding: .15rem .4rem; border-radius: 4px; font-family: monospace; font-size: .88em; color: var(--primary-dk); }
.post-content pre { background: var(--dark-2); color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin-bottom: 1.5rem; font-family: monospace; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: #F0EDFF; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; }
.post-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--light); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.sidebar-widget h3 { font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-tools { list-style: none; margin: 0; padding: 0; }
.sidebar-tools li { margin-bottom: .5rem; }
.sidebar-tools a { font-size: .875rem; color: var(--mid); text-decoration: none; display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 8px; transition: background .15s,color .15s; }
.sidebar-tools a:hover { background: #fff; color: var(--primary); }
.sidebar-cta { background: var(--primary); border-radius: 16px; padding: 1.5rem; text-align: center; }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .875rem; margin-bottom: 1rem; line-height: 1.5; }
.sidebar-cta .btn { background: #fff; color: var(--primary); width: 100%; justify-content: center; display: flex; font-weight: 700; }

/* ============================================
   TOOL PAGES
   ============================================ */
.tool-page-hero { background: linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 100%); padding: 3.5rem 0 3rem; text-align: center; }
.tool-page-hero .section-label { color: var(--accent); }
.tool-page-hero h1 { font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 800; color: #fff; margin: .75rem 0; line-height: 1.2; }
.tool-page-hero p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.tool-page-main { padding: 3rem 0; background: var(--light); }
.tool-wrapper { background: #fff; border-radius: 20px; padding: 2rem; border: 1.5px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.tool-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { padding: .45rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--border); background: transparent; color: var(--mid); font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: var(--font); }
.tab-btn.active,.tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.tool-panels-single { grid-template-columns: 1fr; }
.tool-panel { display: flex; flex-direction: column; }
.tool-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.tool-textarea { width: 100%; min-height: 280px; padding: 1rem; border: 1.5px solid var(--border); border-radius: 12px; font-family: 'Fira Mono','Courier New',monospace; font-size: .875rem; line-height: 1.6; color: var(--dark); background: var(--light); resize: vertical; outline: none; transition: border-color .15s; }
.tool-textarea:focus { border-color: var(--primary); background: #fff; }
.tool-textarea-tall { min-height: 340px; }
.text-stats-bar { display: flex; background: var(--light); border-radius: 12px; padding: 1rem 0; margin-bottom: 1.5rem; border: 1.5px solid var(--border); }
.text-stat { flex: 1; text-align: center; padding: 0 1rem; border-right: 1px solid var(--border); }
.text-stat:last-child { border-right: none; }
.text-stat span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.text-stat label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tool-controls { display: flex; flex-direction: column; gap: 1rem; }
.tool-convert-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tool-select { padding: .6rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: .875rem; font-family: var(--font); color: var(--dark); background: var(--light); cursor: pointer; outline: none; }
.tool-arrow { font-size: 1.25rem; color: var(--muted); font-weight: 700; }
.tool-action-row { display: flex; gap: .65rem; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); padding: .6rem 1.1rem; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .15s; text-decoration: none; display: inline-flex; align-items: center; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-ghost-dark { background: transparent; border: 1.5px solid var(--border); color: var(--muted); padding: .6rem 1.1rem; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .15s; }
.btn-ghost-dark:hover { background: var(--light); color: var(--dark); }
.tool-status { font-size: .875rem; font-weight: 600; padding: .5rem 0; min-height: 1.5rem; }
.tool-status-ok { color: #16a34a; }
.tool-status-error { color: #dc2626; }
.tool-page-content { padding: 4rem 0 5rem; }
.page-content-inner { max-width: 860px; margin: 0 auto; }
.page-content-inner h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.page-content-inner h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 .5rem; }
.page-content-inner p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--mid); }
.page-content-inner ul,.page-content-inner ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content-inner li { margin-bottom: .5rem; line-height: 1.75; color: var(--mid); }

@media (max-width:1024px) { .post-content-wrap { grid-template-columns: 1fr; } .post-sidebar { position: static; } .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px) { .blog-grid { grid-template-columns: 1fr; } .tool-panels { grid-template-columns: 1fr; } .text-stats-bar { flex-wrap: wrap; } .text-stat { flex: 1 1 30%; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem; } }


/* ============================================
   FILE TOOLS
   ============================================ */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  background: var(--light);
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--primary);
  background: #F0EDFF;
}
.file-drop-icon { font-size: 2.5rem; line-height: 1; }
.file-drop-text { font-size: 1rem; color: var(--mid); margin: 0; }
.file-browse-link { color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: underline; }
.file-drop-hint { font-size: .8rem; color: var(--muted); margin: 0; }
.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #F0EDFF;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  flex-wrap: wrap;
}
.file-info-name { font-weight: 700; color: var(--dark); font-size: .9rem; flex: 1; }
.file-info-size { font-size: .8rem; color: var(--muted); }

/* ============================================
   DEV TOOLS
   ============================================ */
.dev-tools-tabs { display: flex; gap: .5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.dev-tool-panel { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.uuid-display {
  background: var(--light);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
}
.uuid-value {
  font-family: 'Fira Mono','Courier New',monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  word-break: break-all;
}
.uuid-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.jwt-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.jwt-section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .5rem; }
.jwt-pre { background: var(--dark-2); color: #e2e8f0; padding: 1rem; border-radius: 10px; font-family: monospace; font-size: .8rem; overflow-x: auto; margin: 0; }
.jwt-note { font-size: .8rem; color: var(--muted); padding: .75rem 1rem; background: #FEF3C7; border-radius: 8px; border-left: 3px solid #F59E0B; }
@media (max-width: 640px) { .jwt-sections { grid-template-columns: 1fr; } }

/* Fix header top for logged-in users with admin bar */
.admin-bar .site-header { top: 32px; }
body:not(.admin-bar) .site-header { top: 0; }

/* Inter font variable fix */
:root { --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* OG image fallback & favicon styles */
.wp-site-icon { display: none; }

/* About page hero */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); padding: 3.5rem 0 3rem; }
.page-hero h1 { font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 800; color: #fff; margin-bottom: .75rem; line-height: 1.25; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; line-height: 1.65; }
.page-content-wrap { max-width: 860px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }
.page-content-wrap h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.page-content-wrap h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 .5rem; }
.page-content-wrap p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--mid); }
.page-content-wrap ul, .page-content-wrap ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content-wrap li { margin-bottom: .5rem; line-height: 1.75; color: var(--mid); }

/* Contact form */
.contact-page-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 960px; margin: 3.5rem auto; padding: 0 2rem 5rem; }
.contact-info h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.contact-info p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.contact-detail { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; color: var(--mid); }
.wpcf7-form .form-group { margin-bottom: 1.25rem; }
.wpcf7-submit { background: var(--primary); color: #fff; border: none; padding: .75rem 2rem; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .2s; }
.wpcf7-submit:hover { background: var(--primary-dk); }
@media (max-width:640px) { .contact-page-wrap { grid-template-columns: 1fr; } }
