
/*
 Theme Name: Multi Tools Theme
 Theme URI: https://example.com/multi-tools-theme
 Author: ChatGPT
 Description: A clean, lightweight WordPress theme for multi-tool websites. Create each tool as a Page and show them in a left sidebar (via the "Tools Menu" or automatic fallback).
 Version: 1.0.0
 License: GPL-2.0+
 Text Domain: multi-tools-theme
*/

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #0f172a; background: #f8fafc; }

a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.site-header { position: sticky; top: 0; z-index: 20; background: #0b1220; color: #fff; border-bottom: 1px solid #1f2a44; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; max-width: 1200px; margin: 0 auto; }
.site-title { margin: 0; font-size: 20px; font-weight: 700; }
.site-description { margin: 0; opacity: .6; font-size: 12px; }

.btn-toggle { display: none; border: 1px solid #334155; background: #111827; color: #e5e7eb; border-radius: 8px; padding: 6px 10px; font-size: 14px; }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; max-width: 1200px; margin: 0 auto; }
.sidebar { min-height: calc(100vh - 58px); background: #0f172a; color: #e5e7eb; border-right: 1px solid #1f2a44; position: sticky; top: 58px; padding: 18px 14px; }
.sidebar h2 { font-size: 14px; margin: 0 0 10px; color: #cbd5e1; text-transform: uppercase; letter-spacing: .06em; }
.sidebar .tools-nav, .sidebar .tools-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar .tools-nav li { margin: 2px 0; }
.sidebar .tools-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: #cbd5e1; }
.sidebar .tools-nav a:hover { background: #111827; color: #fff; }
.sidebar .current-menu-item > a,
.sidebar .current_page_item > a,
.sidebar .current_page_parent > a { background: #1f2937; color: #fff; }

.main { padding: 24px; background: #f8fafc; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }

.site-footer { max-width: 1200px; margin: 24px auto; padding: 18px; color: #475569; font-size: 14px; }

/* Grid for Tools Index */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.tool-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; transition: transform .08s ease, box-shadow .08s ease; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.tool-card h3 { margin: 8px 0 6px; font-size: 16px; }
.tool-card p { margin: 0; color: #64748b; font-size: 13px; }

/* Content */
.entry-title { margin: 0 0 14px; font-size: 28px; }
.entry-content { display: grid; gap: 14px; }
.entry-content .shortcode-container { margin-top: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; min-height: auto; display: none; }
  .sidebar.open { display: block; }
  .btn-toggle { display: inline-flex; }
}
