/*
Theme Name: Free Prompt Library 2026
Theme URI: https://freepromptlibrary.site/
Author: Free Prompt Library
Description: A fast, search-first WordPress theme for a curated AI prompt library. Built for clean indexing, editorial trust, prompt discovery and AdSense-ready content presentation.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fpl
*/

:root{
  --ink:#151526;
  --muted:#646579;
  --paper:#fbfaf7;
  --surface:#ffffff;
  --surface-2:#f2f0ff;
  --line:#e7e3ef;
  --brand:#6757e8;
  --brand-dark:#4436b8;
  --accent:#ff7a68;
  --mint:#dff7ef;
  --yellow:#fff1b8;
  --shadow:0 16px 44px rgba(26,22,55,.08);
  --radius:22px;
  --radius-sm:14px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.68;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand-dark)}
img{max-width:100%;height:auto;border-radius:18px}
button,input,select,textarea{font:inherit}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.site-main{min-height:65vh}
.skip-link{position:absolute;left:-999px;top:10px;background:#fff;padding:10px 14px;z-index:9999;border-radius:8px}.skip-link:focus{left:10px}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(251,250,247,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(231,227,239,.85)}
.header-inner{height:74px;display:flex;align-items:center;justify-content:space-between;gap:26px}
.brand{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.03em;white-space:nowrap}
.brand-mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--brand),#9a8cff 55%,var(--accent));display:grid;place-items:center;color:#fff;font-weight:900;box-shadow:0 8px 24px rgba(103,87,232,.24)}
.brand small{display:block;font-size:11px;line-height:1;color:var(--muted);font-weight:650;letter-spacing:.02em;margin-top:2px}
.primary-nav{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:700;color:#3d3d4e}
.primary-nav a{padding:8px 0}
.primary-nav a:hover{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:9px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 18px;font-weight:800;line-height:1.1;cursor:pointer;transition:.2s ease}
.btn-primary{background:var(--ink);color:#fff}.btn-primary:hover{background:var(--brand);color:#fff;transform:translateY(-1px)}
.btn-secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn-secondary:hover{border-color:#c8c0e7;background:#faf9ff;color:var(--brand-dark)}
.nav-toggle{display:none;width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:12px;font-size:20px}

/* Hero */
.hero{padding:78px 0 58px;position:relative;overflow:hidden}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}
.hero:before{width:380px;height:380px;background:rgba(103,87,232,.11);right:-150px;top:-160px}
.hero:after{width:250px;height:250px;background:rgba(255,122,104,.11);left:-120px;bottom:-100px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #d9d3ff;border-radius:999px;background:#f6f3ff;color:var(--brand-dark);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:52px;align-items:center}
.hero h1{font-size:clamp(42px,6vw,76px);line-height:.98;letter-spacing:-.055em;margin:20px 0 24px;max-width:850px}
.hero h1 span{color:var(--brand)}
.hero-copy{font-size:19px;color:var(--muted);max-width:720px;margin:0 0 28px}
.hero-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:var(--shadow);transform:rotate(1deg)}
.hero-card .mini-label{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:12px}
.hero-card pre{white-space:pre-wrap;margin:0;background:#171725;color:#f7f7fb;padding:20px;border-radius:16px;font-size:13px;line-height:1.6;min-height:200px}
.hero-card .mini-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;color:var(--muted);font-size:12px}
.search-shell{background:#fff;border:1px solid var(--line);border-radius:18px;padding:7px;box-shadow:0 10px 34px rgba(35,27,78,.08);display:grid;grid-template-columns:1fr 210px auto;gap:7px;max-width:860px}
.search-shell input,.search-shell select{width:100%;border:0;background:transparent;padding:12px 14px;outline:0;color:var(--ink)}
.search-shell select{border-left:1px solid var(--line)}
.search-shell .btn{border-radius:12px;padding:14px 22px}
.quick-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.quick-links a{font-size:12px;font-weight:750;padding:7px 10px;border-radius:999px;background:#efedf5;color:#55566b}.quick-links a:hover{background:var(--surface-2);color:var(--brand-dark)}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px;max-width:700px}
.stat{padding:14px 16px;border-left:2px solid var(--line)}.stat:first-child{border-left-color:var(--brand)}.stat b{display:block;font-size:22px;letter-spacing:-.04em}.stat span{font-size:12px;color:var(--muted);font-weight:700}

/* Sections */
.section{padding:72px 0}.section-tight{padding:48px 0}.section-alt{background:#f4f2ed;border-block:1px solid #ece8e1}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:28px}.section-head h2{font-size:clamp(29px,4vw,44px);line-height:1.08;letter-spacing:-.04em;margin:0}.section-head p{max-width:590px;margin:8px 0 0;color:var(--muted)}.text-link{font-size:14px;font-weight:800;color:var(--brand-dark)}

.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-card{position:relative;min-height:192px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;overflow:hidden;transition:.2s ease}.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d4cdef}.category-card:after{content:"";position:absolute;width:88px;height:88px;border-radius:50%;right:-25px;bottom:-25px;background:var(--surface-2)}.category-icon{width:42px;height:42px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;font-size:18px;margin-bottom:23px}.category-card h3{font-size:18px;margin:0 0 7px;letter-spacing:-.025em}.category-card p{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 14px}.category-card .count{font-size:12px;font-weight:800;color:var(--brand-dark)}

.prompt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.prompt-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;display:flex;flex-direction:column;min-height:250px;transition:.2s ease}.prompt-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d6d0e9}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;background:var(--mint);color:#235f4e}.save-prompt{border:0;background:transparent;color:#858598;cursor:pointer;font-size:18px;padding:4px}.save-prompt.is-saved{color:var(--brand)}.prompt-card h3{font-size:20px;line-height:1.25;letter-spacing:-.025em;margin:0 0 10px}.prompt-card p{font-size:14px;color:var(--muted);margin:0 0 20px}.card-meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);font-weight:700}.card-arrow{color:var(--brand);font-size:19px}

/* Utility / prompt builder */
.utility-panel{display:grid;grid-template-columns:.82fr 1.18fr;gap:26px;background:#171725;color:#fff;padding:34px;border-radius:28px;box-shadow:var(--shadow)}
.utility-panel h2{font-size:38px;letter-spacing:-.04em;line-height:1.04;margin:0 0 14px}.utility-panel p{color:#c6c4d1}.builder-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-form input,.builder-form textarea,.builder-form select{width:100%;border:1px solid #39384a;border-radius:12px;background:#232232;color:#fff;padding:12px 13px;outline:0}.builder-form textarea{grid-column:1/-1;min-height:95px;resize:vertical}.builder-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.builder-output{grid-column:1/-1;background:#0e0e18;border:1px solid #343343;border-radius:14px;padding:16px;white-space:pre-wrap;color:#ecebf4;min-height:92px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.utility-panel .btn-primary{background:#fff;color:#171725}.utility-panel .btn-primary:hover{background:var(--surface-2);color:var(--brand-dark)}

.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.trust-card{border-top:1px solid var(--line);padding-top:18px}.trust-card b{display:block;font-size:18px;margin-bottom:7px}.trust-card p{margin:0;color:var(--muted);font-size:14px}

/* Archive/search */
.archive-hero{padding:58px 0 28px}.archive-hero h1{font-size:clamp(38px,5vw,62px);line-height:1;letter-spacing:-.05em;margin:15px 0}.archive-hero p{max-width:760px;color:var(--muted);font-size:18px}.archive-tools{display:flex;align-items:center;gap:10px;margin:24px 0 0}.archive-tools .search-shell{width:100%;max-width:800px}
.results-note{font-size:13px;color:var(--muted);margin-bottom:16px}.pagination{display:flex;justify-content:center;gap:7px;margin-top:34px}.pagination .page-numbers{min-width:38px;height:38px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;background:#fff;font-weight:750}.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}

/* Single */
.single-wrap{display:grid;grid-template-columns:minmax(0,760px) 280px;gap:54px;align-items:start;padding:52px 0 84px}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:24px}.breadcrumbs a{font-weight:700}.single-title{font-size:clamp(38px,5.5vw,64px);line-height:1.02;letter-spacing:-.05em;margin:0 0 17px}.single-dek{color:var(--muted);font-size:18px;margin-bottom:20px}.byline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-weight:650;padding-bottom:22px;border-bottom:1px solid var(--line)}.byline b{color:var(--ink)}
.prompt-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0 30px}.fact{background:#f3f1f8;border-radius:13px;padding:11px 12px;min-height:64px}.fact span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:850}.fact b{display:block;font-size:13px;margin-top:4px}
.entry-content{font-size:17px}.entry-content h2{font-size:30px;line-height:1.2;letter-spacing:-.035em;margin:44px 0 14px}.entry-content h3{font-size:23px;line-height:1.25;letter-spacing:-.025em;margin:32px 0 11px}.entry-content p{margin:0 0 20px}.entry-content ul,.entry-content ol{padding-left:22px}.entry-content li{margin:7px 0}.entry-content pre,.entry-content .wp-block-code{position:relative;white-space:pre-wrap;background:#171725;color:#f8f7fb;border-radius:18px;padding:22px;overflow:auto;box-shadow:0 10px 25px rgba(20,20,38,.08);font-size:14px;line-height:1.65}.entry-content blockquote{border-left:3px solid var(--brand);margin:28px 0;padding:4px 0 4px 20px;color:#48485b;font-size:19px}.entry-content table{width:100%;border-collapse:collapse;display:block;overflow:auto}.entry-content th,.entry-content td{padding:12px;border:1px solid var(--line);text-align:left}.entry-content .copy-prompt,.auto-copy-btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--brand);color:#fff;font-weight:800;border-radius:10px;padding:9px 12px;cursor:pointer;margin-top:8px;font-size:12px}.pre-wrap{position:relative}.pre-wrap .auto-copy-btn{position:absolute;right:10px;top:10px;margin:0;background:#fff;color:#171725}
.editor-note{margin:34px 0;background:#fff6df;border:1px solid #f0dfad;border-radius:16px;padding:18px}.editor-note strong{display:block;margin-bottom:5px}.editor-note p{margin:0;font-size:14px;color:#625b47}
.related-box{margin-top:46px;border-top:1px solid var(--line);padding-top:30px}.related-box h2{font-size:27px;margin-top:0}.sidebar{position:sticky;top:98px}.side-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px}.side-card h3{font-size:15px;margin:0 0 10px}.side-card p{font-size:13px;color:var(--muted);margin:0 0 12px}.side-list{list-style:none;margin:0;padding:0}.side-list li{padding:9px 0;border-top:1px solid #f0edf5;font-size:13px;font-weight:700}.side-list li:first-child{border-top:0}.sticky-actions{display:grid;grid-template-columns:1fr;gap:8px}

/* Pages */
.page-wrap{max-width:820px;padding:58px 0 84px}.page-wrap h1{font-size:52px;line-height:1.02;letter-spacing:-.05em}.page-wrap .entry-content{font-size:17px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fpl-form label{font-size:12px;font-weight:800;display:block;margin-bottom:5px}.fpl-form input,.fpl-form textarea,.fpl-form select{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;margin-bottom:12px}.fpl-form textarea{min-height:150px}.notice{padding:12px 14px;border-radius:12px;background:var(--mint);margin-bottom:18px;font-size:14px}.notice.error{background:#ffe9e5}

/* Footer */
.site-footer{background:#171725;color:#dedde7;padding:58px 0 28px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:36px}.site-footer .brand{color:#fff}.site-footer p{color:#9f9eae;font-size:13px;max-width:420px}.footer-title{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#8a8999;font-weight:850;margin-bottom:14px}.footer-links{list-style:none;margin:0;padding:0}.footer-links li{margin:9px 0}.footer-links a{font-size:13px;color:#d3d2dc}.footer-links a:hover{color:#fff}.footer-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #2c2b38;margin-top:36px;padding-top:22px;color:#858492;font-size:11px}

/* 404 */
.not-found{text-align:center;padding:90px 0}.not-found .code{font-size:90px;font-weight:900;letter-spacing:-.07em;color:var(--brand)}.not-found h1{font-size:38px;margin:0 0 12px}.not-found p{color:var(--muted);max-width:560px;margin:0 auto 24px}

@media(max-width:980px){
 .primary-nav{display:none;position:absolute;top:74px;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--line);padding:18px 20px;flex-direction:column;align-items:flex-start}.primary-nav.is-open{display:flex}.nav-toggle{display:block}.header-actions .btn-secondary{display:none}
 .hero-grid{grid-template-columns:1fr}.hero-card{display:none}.category-grid{grid-template-columns:repeat(2,1fr)}.prompt-grid{grid-template-columns:repeat(2,1fr)}.utility-panel{grid-template-columns:1fr}.single-wrap{grid-template-columns:1fr}.sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}.footer-grid{grid-template-columns:1.5fr 1fr 1fr}
}
@media(max-width:680px){
 .container{width:min(calc(100% - 28px),var(--max))}.header-inner{height:66px}.brand small{display:none}.primary-nav{top:66px}.header-actions .btn-primary{display:none}
 .hero{padding:54px 0 42px}.hero h1{font-size:46px}.hero-copy{font-size:17px}.search-shell{grid-template-columns:1fr}.search-shell select{border-left:0;border-top:1px solid var(--line)}.stats{grid-template-columns:1fr 1fr 1fr}.stat{padding:10px}.stat b{font-size:18px}.stat span{font-size:10px}
 .section{padding:54px 0}.section-head{align-items:start;flex-direction:column}.category-grid,.prompt-grid,.trust-grid{grid-template-columns:1fr}.category-card{min-height:168px}.prompt-card{min-height:220px}.builder-form{grid-template-columns:1fr}.builder-form textarea,.builder-actions,.builder-output{grid-column:1}.utility-panel{padding:24px}.utility-panel h2{font-size:31px}
 .prompt-facts{grid-template-columns:1fr 1fr}.single-wrap{padding-top:36px;gap:32px}.sidebar{grid-template-columns:1fr}.entry-content{font-size:16px}.entry-content h2{font-size:27px}.single-title{font-size:42px}.page-wrap h1{font-size:42px}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{align-items:flex-start;flex-direction:column}.contact-grid{grid-template-columns:1fr}
}
