/*
Theme Name: MultiToolZone
Theme URI: https://multitoolzone.com/
Author: MultiToolZone Team
Author URI: https://multitoolzone.com/
Description: Ultra-fast, privacy-focused online utilities suite for WordPress featuring 125+ client-side developer, text, social media, hashtag, QR code, comma separator, data, and calculator tools, customizable landing blocks, native blog posts, AdSense video placements, dark mode toggle, and Ko-fi integration.
Version: 3.0.0
Tested up to: 6.7
Requires at least: 5.8
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: multitoolzone
Tags: custom-background, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
}

body.dark-mode {
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-border: #3730a3;
  --bg-page: #0b0f19;
  --bg-card: #111827;
  --bg-input: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 1.25rem; }
.logo-icon { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.main-nav ul { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.main-nav a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 700; padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: all 0.15s; }
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.btn-kofi { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(135deg, #ff5e5b, #ff416c); color: #fff !important; font-size: 0.85rem; font-weight: 700; padding: 0.45rem 0.95rem; border-radius: var(--radius-sm); text-decoration: none; box-shadow: var(--shadow-sm); }
.btn-kofi:hover { opacity: 0.95; }

/* Hero */
.hero-section { text-align: center; padding: 3rem 1rem 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--primary-light); color: var(--primary); padding: 0.35rem 0.85rem; border-radius: 9999px; font-weight: 700; font-size: 0.82rem; margin-bottom: 1rem; border: 1px solid var(--primary-border); }
.hero-title { font-size: 2.75rem; font-weight: 900; line-height: 1.15; margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.hero-title span { color: var(--primary); background: linear-gradient(135deg, #4f46e5, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-search-wrapper { max-width: 640px; margin: 1.5rem auto 0; position: relative; }
.hero-search-input { width: 100%; padding: 0.85rem 1.25rem 0.85rem 2.75rem; font-size: 0.95rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); outline: none; box-shadow: var(--shadow-sm); }
.hero-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* Category Pills */
.category-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 1rem 0; margin-bottom: 1.5rem; }
.cat-pill { padding: 0.45rem 0.95rem; border-radius: 9999px; font-size: 0.82rem; font-weight: 700; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Workspace Card */
.workspace-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm); }
.workspace-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.tool-title { font-size: 1.4rem; font-weight: 800; }
.tool-badge { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 9999px; background: var(--primary-light); color: var(--primary); }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) { .workspace-grid { grid-template-columns: 1fr; } }
.tool-textarea { width: 100%; height: 220px; padding: 0.85rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-main); font-family: monospace; font-size: 0.88rem; outline: none; resize: vertical; }
.tool-textarea:focus { border-color: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem 1.15rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-card); border-color: var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.2s; }
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Custom Content Section */
.custom-editorial-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; margin: 3rem 0; box-shadow: var(--shadow-sm); }
.custom-editorial-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; }
.custom-editorial-section h3 { font-size: 1.25rem; font-weight: 800; margin: 1.25rem 0 0.5rem; }
.custom-editorial-section p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; }
.custom-editorial-section ul { margin: 0.75rem 0 1rem 1.25rem; color: var(--text-muted); font-size: 0.92rem; }
.custom-editorial-section li { margin-bottom: 0.35rem; }

/* FAQ Accordion */
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question { padding: 1.15rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-answer { padding: 0 1.15rem 1.15rem; font-size: 0.88rem; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 0.85rem; display: none; }
.faq-item.active .faq-answer { display: block; }

/* Footer */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-links-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-links-grid { grid-template-columns: 1fr; } }
.footer-column h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.45rem; }
.footer-column a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; }
.footer-column a:hover { color: var(--primary); }
