/*
Theme Name: AI Prompt Gallery
Theme URI: https://example.com/
Author: AI Prompt Gallery
Description: A clean, responsive WordPress theme for sharing AI image prompts with prompt categories, trending prompts, copy buttons, SEO metadata and JSON-LD.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ai-prompt-gallery
*/

:root{--blue:#2563eb;--blue-dark:#1d4ed8;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--surface:#fff;--soft:#f8fafc;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 32px));margin:auto}.site-header{border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);position:sticky;top:0;z-index:50}.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:20px;font-weight:800;letter-spacing:-.02em}.brand span{color:var(--blue)}.menu{display:flex;gap:20px;align-items:center;font-weight:600;font-size:14px}.menu a:hover{color:var(--blue)}.hero{padding:82px 0 74px;background:linear-gradient(180deg,#eff6ff 0%,#fff 100%);border-bottom:1px solid #eaf0f7}.hero-inner{text-align:center;max-width:850px}.hero-kicker,.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}.hero h1{font-size:clamp(38px,6vw,64px);line-height:1.06;letter-spacing:-.045em;margin:14px 0}.hero p{font-size:18px;color:var(--muted);max-width:680px;margin:0 auto 26px}.hero-search{display:flex;max-width:720px;margin:auto;background:#fff;border:1px solid var(--line);padding:7px;border-radius:14px;box-shadow:0 10px 35px rgba(15,23,42,.07)}.hero-search input{border:0;outline:0;flex:1;padding:13px 14px;font-size:15px;min-width:0}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:10px 15px;font-weight:700;cursor:pointer;font:inherit}.btn.primary{background:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-dark)}.btn.secondary{background:#f1f5f9;color:#0f172a}.btn.small{font-size:13px;padding:8px 11px}.sections{padding:48px 0}.sections>section{margin-bottom:58px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:20px}.section-head h2{margin:5px 0 0;font-size:30px;line-height:1.15;letter-spacing:-.03em}.section-head>a{font-weight:700;color:var(--blue);font-size:14px}.prompt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.prompt-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04);display:flex;flex-direction:column}.prompt-card-media{display:block;aspect-ratio:4/3;background:#f1f5f9;overflow:hidden}.prompt-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.prompt-card:hover .prompt-card-media img{transform:scale(1.03)}.image-placeholder{height:100%;display:grid;place-items:center;color:#94a3b8;font-weight:800}.card-body{padding:16px;display:flex;flex-direction:column;flex:1}.card-body h3{font-size:18px;line-height:1.3;margin:7px 0}.card-body h3 a:hover{color:var(--blue)}.card-body p{font-size:14px;color:var(--muted);margin:0 0 16px}.card-actions{display:flex;gap:8px;margin-top:auto;flex-wrap:wrap}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.category-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff;display:flex;gap:14px;align-items:center}.category-card:hover{border-color:#bfdbfe}.category-card img{width:56px;height:56px;border-radius:12px;object-fit:cover}.category-card h3{margin:0;font-size:16px}.category-card p{margin:3px 0 0;color:var(--muted);font-size:13px}.detail-page{padding:34px 0 70px}.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:25px}.breadcrumb a{color:var(--blue)}.detail-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:start}.detail-image{width:100%;border-radius:22px;border:1px solid var(--line);display:block}.detail-grid h1{font-size:clamp(34px,5vw,52px);line-height:1.08;letter-spacing:-.04em;margin:8px 0 12px}.lead{font-size:17px;color:var(--muted)}.prompt-box{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#f8fafc;margin-top:24px}.prompt-box-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.prompt-box pre{white-space:pre-wrap;word-break:break-word;padding:18px;margin:0;font:500 14px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;max-height:560px;overflow:auto}.copy-status{padding:0 15px 12px;color:#16a34a;font-size:13px}.share-row{display:flex;gap:12px;align-items:center;margin-top:18px;font-size:14px}.share-row a{color:var(--blue);font-weight:700}.archive-header{padding:48px 0 26px}.archive-header h1{font-size:42px;line-height:1.1;margin:5px 0}.archive-header p{color:var(--muted)}.pagination{display:flex;gap:8px;justify-content:center;margin:36px 0}.pagination .page-numbers{border:1px solid var(--line);padding:8px 12px;border-radius:9px}.pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}.site-footer{border-top:1px solid var(--line);padding:34px 0;color:var(--muted);font-size:14px;margin-top:30px}.site-footer .footer-inner{display:flex;justify-content:space-between;gap:20px}.not-found{text-align:center;padding:100px 0}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:1fr}.menu{display:none}}
@media(max-width:600px){.container{width:min(100% - 22px,1180px)}.hero{padding:58px 0}.hero-search{display:block;background:transparent;border:0;box-shadow:none}.hero-search input{width:100%;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:#fff}.hero-search .btn{width:100%}.prompt-grid,.category-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.site-footer .footer-inner{flex-direction:column}.nav{min-height:62px}.detail-grid{gap:25px}}
