/*
Theme Name: 50 Tools
Theme URI: https://example.com/50-tools
Author: 50 Tools Team
Author URI: https://example.com
Description: Fast, lightweight, SEO-optimized tools theme with custom Tools admin section.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiftytools
*/

/* Base reset and typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; color: #222222; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1A73E8; text-decoration: none; }
a:hover { text-decoration: none; }

/* Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #ffffffcc; backdrop-filter: blur(8px); border-bottom: 1px solid #eee; }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo-svg { width: 36px; height: 36px; display:block; }
.nav-links { display: flex; gap: 16px; }

/* Hero */
.hero { padding: 72px 0; background: linear-gradient(180deg, #f9fbff, #fff); border-bottom: 1px solid #eee; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 18px; color: #333; margin: 0 0 24px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; background: #0b63f6; color: #fff; font-weight: 600; border: 1px solid #0a57d6; }
.btn.secondary { background: #fff; color: #0b63f6; border-color: #cfe0ff; }

/* Cards */
.card { border: 1px solid #eee; border-radius: 12px; padding: 16px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card.card-tool h3 { color:#111 !important; }
.card .meta { color: #666; font-size: 13px; }

/* Sections */
.section { padding: 48px 0; }
.section h2 { margin: 0 0 12px; font-size: 28px; }
.section p.lead { color: #444; font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid #eee; background: #fafafa; padding: 24px 0; color: #555; font-size: 14px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: #666; margin: 12px 0 24px; }
.breadcrumbs a { color: #666; }

/* Tool page layout */
.tool-section { margin: 24px 0; }
.box { border: 1px solid #eee; border-radius: 12px; padding: 16px; background: #fff; }
.box h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item { margin: 8px 0; }
.comparison { overflow-x: auto; }

/* Admin-only hint */
.admin-hint { padding: 10px; border: 1px dashed #cfe0ff; background: #f8fbff; border-radius: 8px; color: #0b63f6; font-size: 13px; }

:root { --bg:#FFFFFF; --text:#222222; --muted:#667085; --border:#e6e6e6; --primary:#1A73E8; --primary-600:#1669d4; --secondary:#4aa0ff; --accent:linear-gradient(135deg, var(--primary), var(--secondary)); --card-bg:#fff; --surface:#F5F5F5; --shadow-sm:0 1px 2px rgba(0,0,0,.06); --shadow-md:0 8px 24px rgba(0,0,0,.08); }
body { color: var(--text); background: var(--bg); }
a { color: var(--primary); }

.site-header { background: rgba(255,255,255,.85); box-shadow: 0 1px 0 var(--border); }
.brand .logo-svg { background: transparent; }
.nav-links ul { display:flex; gap:12px; list-style:none; margin:0; padding:0; }
.nav-links a { display:inline-block; padding:8px 12px; border-radius:10px; color:#111; }
.nav-links a:hover { background:#f1f5ff; color: var(--primary); text-decoration: none; }

.hero { background: radial-gradient(600px 200px at 20% 0%, #eef4ff 0%, #fff 60%), linear-gradient(180deg, #f9fbff, #fff); }
.hero .container { text-align:center; }
.hero h1 { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { background: var(--accent); border-color: var(--primary-600); box-shadow: 0 6px 20px rgba(11,99,246,.18); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(11,99,246,.22); }
.btn.secondary { background: #fff; color: var(--primary); border-color: #cfe0ff; }
.btn.secondary:hover { background:#f7fbff; }

.card { border: 1px solid var(--border); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); }
.card .meta { display:inline-block; background:#f1f5ff; color: var(--primary); padding:4px 10px; border-radius:999px; border:1px solid #e0ebff; }

.card.card-tool { position: relative; overflow: hidden; border-radius: 16px; border-color:#e6edf7; }
.card-link { display:block; text-decoration:none; color:inherit; }
.tool-card { display:block; }
.tool-icon { display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:16px; background:transparent; border:none; margin-bottom:8px; }
.tool-icon svg { width:60px !important; height:60px !important; }
.tool-icon svg circle:first-child { fill: transparent !important; }
.tool-title { font-size:14px; line-height:1.25; margin:0 0 2px; font-weight:700; color:#0f172a; }
.tool-desc { margin:0; font-size:14px; color:#667085; }
.card.card-tool:hover { border-color:#dbe6f5; }
.badge.featured { background:#0b63f6; color:#fff; border-color:#0a57d6; position:absolute; right:12px; top:12px; }

.card.card-about { padding:24px; border-radius:16px; border:1px solid var(--border); box-shadow: var(--shadow-md); background:#fff; }
.card.card-about h2 { margin:0 0 8px; font-size:24px; color:#0f172a; }
.card.card-about .lead { color:#475569; font-size:16px; }

.section:nth-of-type(even) { background: var(--surface); }
.section h2 { color:#0f172a; }
.section p.lead { color: var(--muted); }

.site-footer { background:#0f172a; color:#cbd5e1; }
.site-footer a { color:#e2e8f0; }

.breadcrumbs { color:#8a94a6; }
.breadcrumbs a { color:#64748b; }

.box { border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.category-title { margin: 8px 0 12px; font-size: 24px; }
.box h3 { color:#0f172a; }

input, select, textarea { border:1px solid var(--border); border-radius:10px; padding:10px 12px; width:100%; font: inherit; background:#fff; color:#222; }
label { display:block; font-size:13px; color:#334155; margin-bottom:6px; }

/* Hero search and tags */
.hero-title { font-size:42px; font-weight:800; margin:0 0 10px; color:#0f172a; }
.hero-sub { font-size:18px; color:#475569; margin:0 0 18px; }
.hero-search { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--border); border-radius:14px; padding:10px 12px; box-shadow: var(--shadow-sm); max-width:720px; margin:0 auto; }
.hero-search .search-icon { font-size:18px; opacity:.7; }
.hero-search .search-input { flex:1; border:none; outline:none; font-size:15px; }
.hero-search .search-btn { border-radius:10px; }
.tag-filters { margin-top:14px; justify-content:center; }


.tool-hero { padding: 36px 0; background: var(--accent); color:#fff; }
.tool-hero .hero-title { color:#fff; -webkit-text-fill-color: unset; }
.tool-layout { display:grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.tool-main { min-width:0; }
.tool-sidebar .sidebar-list { list-style:none; margin:0; padding:0; }
.tool-sidebar .sidebar-list li { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.tool-sidebar .sidebar-list a { display:flex; align-items:center; gap:8px; text-decoration:none; color:#222; }
.tool-desc p { color:#444; }

.accordion .accordion-item { border:1px solid var(--border); border-radius:10px; margin:8px 0; overflow:hidden; }
.accordion-header { width:100%; text-align:left; padding:12px 14px; background:#fff; color:#222; border:none; font-weight:600; }
.accordion-header[aria-expanded="true"] { background:#f5f5ff; color:var(--primary); }
.accordion-content { padding:12px 14px; background:#fff; }


.single-tool .tool-hero .hero-title { color:#fff; }
.single-tool .tool-hero .breadcrumbs { color:#fff; }
.single-tool .tool-hero .breadcrumbs a { color:#fff; }

.single-tool .tool-main .box { border:none; }
.single-tool .tool-main .box.tool-input { border:1px solid #e6edf7; }
.single-tool .tool-sidebar .box { border:none; }
.single-tool .tool-sidebar .box.popular-box { border:1px solid #e6edf7; }
