/*
Theme Name: SudhirPrompt
Theme URI: https://sudhirprompt.com/
Author: Sudhir Raj
Author URI: https://sudhirprompt.com/
Description: Custom theme for SudhirPrompt — free AI photo editing prompts for ChatGPT, Gemini and Grok. Hero with search, trending showcase, 3-column prompt grid, per-prompt copy/view buttons, table of contents, and a sidebar author box. Built from scratch; no part of this theme copies another site's design, text, or images.
Version: 3.8
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudhirprompt
Tags: blog, prompts, ai, photography, custom-menu, featured-images, threaded-comments
*/

/* ============ SudhirPrompt v2 — design tokens ============ */
:root {
  --sp-accent: #7c3aed;
  --sp-accent-dark: #6d28d9;
  --sp-accent-light: #ede9fe;
  --sp-slate: #0f172a;
  --sp-slate-soft: #334155;
  --sp-grey: #64748b;
  --sp-amber: #f59e0b;
  --sp-bg: #f8fafc;
  --sp-card: #ffffff;
  --sp-border: #e2e8f0;
  --sp-radius: 16px;
  --sp-max: 1240px;
  --sp-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  --sp-shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-slate-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 { color: var(--sp-slate); line-height: 1.3; margin: 0 0 0.6em; }
a { color: var(--sp-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--sp-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Section headings: short purple underline */
.section-title { font-size: 28px; font-weight: 800; margin: 0 0 20px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--sp-accent); border-radius: 2px; margin-top: 8px; }

/* ============ Header ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--sp-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.site-logo { font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -1px; color: var(--sp-slate); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 48px; width: 48px; border-radius: 12px; display: block; }
.site-logo .logo-prompt { color: #f97316; }
/* Swoosh under the wordmark — purple to orange gradient, like the reference logo's underline. */
.site-logo .logo-word { position: relative; padding-bottom: 6px; }
.site-logo .logo-word::after { content: ""; position: absolute; left: 0; right: -6px; bottom: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sp-accent), var(--sp-amber)); }
/* Little orange burst at the top-right end of the wordmark, like the reference logo. */
.site-logo .logo-word::before { content: "\2726"; position: absolute; top: -8px; right: -14px; font-size: 13px; font-style: normal; color: var(--sp-amber); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 16px; color: var(--sp-slate); font-weight: 600; font-size: 15px; border-radius: 999px; background: #f1f5f9; }
.main-nav a:hover { color: var(--sp-accent-dark); background: var(--sp-accent-light); text-decoration: none; }
.main-nav .current-menu-item a { color: #fff; background: var(--sp-accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-toggle, .menu-toggle { background: none; border: 1px solid var(--sp-border); border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--sp-slate); line-height: 1; }
.menu-toggle { display: none; border-radius: 8px; }
.header-search { display: none; padding: 0 20px 14px; }
.header-search.open { display: block; }
.header-search .search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }

/* Search form */
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--sp-border); border-radius: 999px; font-size: 16px; font-family: inherit; }
.search-form button { padding: 12px 22px; border: none; border-radius: 999px; background: var(--sp-accent); color: #fff; font-weight: 700; cursor: pointer; }
.search-form button:hover { background: var(--sp-accent-dark); }

/* ============ Hero ============ */
.hero { background: linear-gradient(180deg, #ecfdf5 0%, var(--sp-bg) 100%); text-align: center; padding: 48px 20px 40px; }
.hero-pill { display: inline-block; background: var(--sp-accent-light); color: var(--sp-accent-dark); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: 42px; font-weight: 800; margin: 0 0 12px; }
.hero h1 .accent { color: var(--sp-accent); }
.hero p { color: var(--sp-grey); font-size: 18px; max-width: 640px; margin: 0 auto 24px; }
.hero-search { max-width: 620px; margin: 0 auto; }
.hero-search .search-form { background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--sp-shadow); }
.hero-search input[type="search"] { border: none; }
.hero-search input[type="search"]:focus { outline: none; }
.hero-cats { text-align: center; padding: 20px 20px 12px; }
.hero-cats .hero-cat-pill { font-size: 15px; padding: 8px 18px; margin: 0 6px 10px; }
.hero-cats .hero-cat-pill:first-child { background: var(--sp-accent); color: #fff; }
.hero-cats .hero-cat-pill:first-child:hover { background: var(--sp-accent-dark); }

/* ============ Trending showcase ============ */
.trending { padding: 32px 0 8px; }
.trending-head { display: flex; align-items: center; justify-content: space-between; }
.trending-strip { display: flex; gap: 16px; overflow-x: auto; padding: 4px 20px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
/* No scroll-snap here: snap was pulling the strip back and stopping the continuous auto-scroll. */
.trending-strip::-webkit-scrollbar { display: none; }
/* Photo-only trending card: image fills the whole card, no text below it.
   v2.8: fixed card width (flex: 0 0 ...) so cards never shrink — earlier the
   card had no width, so on phones the images squeezed tiny and the strip had
   almost no overflow to scroll. v2.9: mobile cards 50vw (68vw was too big —
   on a phone the photo filled the screen and got cut off at the bottom).
   50vw shows one full photo plus a peek of the next, and the whole 3:4
   image fits on screen. */
.trend-card { flex: 0 0 260px; }
.trend-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 18px; }
.trend-card a { display: block; line-height: 0; }
.scroll-btn { background: #fff; border: 1px solid var(--sp-border); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; color: var(--sp-slate); }
.scroll-btn:hover { border-color: var(--sp-accent); color: var(--sp-accent-dark); }

/* ============ Post cards / grids ============ */
.latest { padding: 24px 0 40px; }
/* Category-wise homepage sections: one section per category that has posts. */
.category-section { padding: 24px 0 8px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cat-head .section-title { margin-bottom: 20px; }
.cat-view-all { font-weight: 700; font-size: 15px; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-tags { margin: 0 0 8px; }
.card-tag { display: inline-block; background: var(--sp-accent-light); color: var(--sp-accent-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin: 0 6px 4px 0; }
.card-tag:hover { text-decoration: none; background: #ddd6fe; }
.sp-pagination { text-align: center; padding: 28px 0 8px; }
.sp-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; margin: 0 3px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-border); color: var(--sp-slate); font-weight: 700; }
.sp-pagination .page-numbers:hover { text-decoration: none; border-color: var(--sp-accent); color: var(--sp-accent-dark); }
.sp-pagination .page-numbers.current { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }
.author-block { padding: 8px 0 48px; }
.author-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 32px 24px; text-align: center; }
.author-card .author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.author-card h2 { margin-bottom: 8px; }
.author-card p { color: var(--sp-grey); margin-bottom: 16px; }
.author-card .author-all-link { display: inline-block; background: var(--sp-accent-light); color: var(--sp-accent-dark); font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.author-card .author-all-link:hover { text-decoration: none; background: #ddd6fe; }
.post-card { background: var(--sp-card); border-radius: var(--sp-radius); overflow: hidden; box-shadow: var(--sp-shadow); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: var(--sp-shadow-hover); transform: translateY(-2px); }
.post-card .card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card .card-body { padding: 18px 18px 14px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 19px; margin: 0 0 8px; }
.post-card h2 a, .post-card h3 a { color: var(--sp-slate); }
.post-card .card-excerpt { color: var(--sp-grey); font-size: 15px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-byline { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sp-grey); }
.card-byline .avatar, .avatar-initials { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--sp-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: 0 0 32px; }
.card-byline .author-name { font-weight: 700; color: var(--sp-slate); }
.card-byline .read-link { margin-left: auto; color: var(--sp-accent-dark); font-weight: 700; white-space: nowrap; }
.cat-pill { display: inline-block; background: var(--sp-accent-light); color: var(--sp-accent-dark); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0; }
.cat-pill:hover { text-decoration: none; background: #99f6e4; }

/* Pagination */
.pagination { text-align: center; margin: 32px 0 8px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; background: #fff; border: 1px solid var(--sp-border); border-radius: 999px; color: var(--sp-slate); font-weight: 600; }
.pagination .page-numbers.current { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }
.pagination a:hover { text-decoration: none; border-color: var(--sp-accent); }

/* ============ About strip / FAQ / Community ============ */
.about-strip { background: #fff; border-top: 1px solid var(--sp-border); border-bottom: 1px solid var(--sp-border); padding: 40px 0; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.about-col { background: var(--sp-bg); border-radius: var(--sp-radius); padding: 20px; }
.about-col h3 { font-size: 18px; }
.faq-section { padding: 40px 0; }
.faq-item { background: #fff; border: 1px solid var(--sp-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 16px 18px; font-size: 17px; font-weight: 700; color: var(--sp-slate); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit; }
.faq-question .faq-icon { color: var(--sp-accent); font-size: 20px; flex: 0 0 auto; }
.faq-answer { display: none; padding: 0 18px 16px; color: var(--sp-grey); }
.faq-item.open .faq-answer { display: block; }
.community-card { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 32px 24px; text-align: center; margin: 0 0 48px; }
.community-card h2 { margin-bottom: 8px; }
.community-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-social { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; color: #fff; }
.btn-social:hover { text-decoration: none; opacity: 0.9; }
.btn-facebook { background: #1877f2; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ============ Single article ============ */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 24px 0 40px; align-items: start; }
.breadcrumb { display: inline-block; background: #fff; border: 1px solid var(--sp-border); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--sp-grey); margin-bottom: 16px; }
.breadcrumb a { color: var(--sp-accent-dark); }
.title-card { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 24px; margin-bottom: 20px; }
.title-card h1 { font-size: 32px; margin: 0 0 12px; }
.title-card .byline { color: var(--sp-grey); font-size: 15px; }
.title-card .byline .author-name { font-weight: 700; color: var(--sp-slate); }
.featured-img { border-radius: var(--sp-radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--sp-shadow); }
.featured-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-body { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 28px; }
.article-body p { margin: 0 0 1em; }
.article-body h2 { font-size: 26px; margin-top: 1.4em; }
.article-body h3 { font-size: 21px; margin-top: 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1em; padding-left: 24px; }
.article-body blockquote { border-left: 4px solid var(--sp-accent); background: var(--sp-accent-light); margin: 1em 0; padding: 12px 18px; border-radius: 0 12px 12px 0; }
/* v3.4: body images (wp-block-image figures) in a narrow centred column — rounded corners + soft shadow, like a photo print. Featured image and cards untouched. */
.article-body figure.wp-block-image { max-width: 390px; margin-left: auto; margin-right: auto; }
.article-body figure.wp-block-image img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14); }
.callout { background: #fffbeb; border-left: 4px solid var(--sp-amber); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }

/* Table of contents */
.toc { background: #f1f5f9; border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.toc h2 { font-size: 18px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.toc-toggle { background: none; border: none; color: var(--sp-accent-dark); font-weight: 700; cursor: pointer; font-size: 14px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc a { color: var(--sp-accent-dark); }
.toc.hidden ol { display: none; }

/* Prompt unit */
.prompt-unit { border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 20px; margin: 24px 0; background: #fff; animation: sp-blink 1.6s ease-in-out infinite; }
/* v2.7: the OUTER card around the prompt also blinks on all four sides now — same purple pulse as the prompt box inside it. */
.prompt-unit h3 { margin-top: 0; }
.prompt-unit img { display: block; margin: 0 auto 16px; border-radius: 12px; box-shadow: var(--sp-shadow); max-width: 360px; width: 100%; }
.prompt-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: #f8fafc; border: 1px solid var(--sp-border); border-radius: 12px; padding: 16px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; max-height: 9.5em; overflow: hidden; position: relative; animation: sp-blink 1.6s ease-in-out infinite; }
/* v2.6: the prompt text box blinks (pulsing purple border + glow) on all four sides, so readers notice the prompt at a glance. */
@keyframes sp-blink {
	0%, 100% { border-color: #c4b5fd; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12); }
	50% { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.35), 0 0 18px rgba(124, 58, 237, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .prompt-box { animation: none; } .prompt-unit { animation: none; } }
.prompt-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5em; background: linear-gradient(transparent, #f8fafc); }
.prompt-box.expanded { max-height: none; }
.prompt-box.expanded::after { display: none; }
.prompt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.prompt-actions .btn-launch { grid-column: span 1; }
.btn-view, .btn-copy { padding: 12px; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; color: #fff; }
.btn-view { background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark)); }
.btn-view:hover { opacity: 0.92; }
.btn-copy { background: #16a34a; }
.btn-copy:hover { background: #15803d; }
.btn-copy.copied { background: #059669; }
.btn-launch { display: block; text-align: center; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #fff; }
.btn-launch:hover { text-decoration: none; opacity: 0.92; }
.btn-chatgpt { background: #10b981; }
.btn-gemini { background: #2563eb; }
.btn-grok { background: #0f172a; }
.prompt-note { color: var(--sp-grey); font-size: 15px; margin: 14px 0 0; }

/* Auto-enhanced prompt units (v2.2): plain <pre> blocks wrapped by JS.
   Button colours chosen by colour psychology (not copied from any site):
   - View Prompt = brand purple: creativity, imagination, curiosity (AI prompts).
   - Copy Prompt = green: action + success, the main thing the reader wants.
   - ChatGPT / Gemini / Grok = their own brand colours (recognition + trust).
   - Share Prompt = warm amber: social warmth, enthusiasm for sharing. */
.article-body pre.prompt-box { margin: 0; }
.sp-prompt-actions { margin-top: 12px; grid-template-columns: repeat(6, 1fr); }
.sp-prompt-actions .sp-btn-view, .sp-prompt-actions .sp-btn-copy { grid-column: span 3; }
.sp-prompt-actions .btn-launch { grid-column: span 2; }
.sp-btn { padding: 12px; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.sp-btn-view { background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark)); color: #fff; }
.sp-btn-view:hover { opacity: 0.92; }
.sp-btn-copy { background: #16a34a; color: #fff; }
.sp-btn-copy:hover { background: #15803d; }
.sp-btn-copy.copied { background: #059669; }
.sp-btn-share { background: #f59e0b; color: #fff; grid-column: span 6; }
.sp-btn-share:hover { background: #d97706; }
.sp-btn-share.copied { background: #059669; border-color: #059669; color: #fff; }

/* Hashtag pills */
.tag-pills { margin: 24px 0 0; }
.tag-pills a { display: inline-block; background: #f1f5f9; color: var(--sp-slate-soft); padding: 6px 14px; border-radius: 999px; font-size: 14px; margin: 0 6px 6px 0; }

/* Related posts */
.related { margin-top: 32px; }
.related h2 { font-size: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { display: flex; gap: 12px; background: #fff; border-radius: 12px; box-shadow: var(--sp-shadow); padding: 12px; align-items: center; }
.related-card img { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; flex: 0 0 100px; }
.related-card h3 { font-size: 16px; margin: 0; }
.related-card h3 a { color: var(--sp-slate); }

/* Sidebar */
.sidebar .widget { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 20px; margin-bottom: 20px; }
.sidebar .widget h2, .sidebar .widget-title { font-size: 19px; margin-bottom: 14px; padding-bottom: 8px; position: relative; }
.sidebar .widget h2::after, .sidebar .widget-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--sp-accent); border-radius: 2px; margin-top: 6px; }
.author-box { text-align: center; }
.author-box .avatar-initials { width: 72px; height: 72px; font-size: 28px; flex-basis: 72px; margin: 0 auto 10px; }
.author-box .author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.author-photo-small { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; }
.author-box .author-name { font-size: 19px; font-weight: 800; color: var(--sp-slate); }
.author-box p { color: var(--sp-grey); font-size: 15px; }
.btn-outline { display: inline-block; border: 2px solid var(--sp-accent); color: var(--sp-accent-dark); padding: 8px 20px; border-radius: 999px; font-weight: 700; }
.btn-outline:hover { background: var(--sp-accent-light); text-decoration: none; }
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-list li { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.trending-list img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.trending-list a { color: var(--sp-slate); font-weight: 600; font-size: 15px; line-height: 1.35; }
.trending-list .tdate { display: block; color: var(--sp-grey); font-size: 13px; font-weight: 400; }
.tagcloud a { display: inline-block; background: #f1f5f9; color: var(--sp-slate-soft); padding: 5px 12px; border-radius: 999px; font-size: 14px !important; margin: 0 4px 6px 0; }
.widget_categories ul, .widget_archive ul { list-style: none; margin: 0; padding: 0; }
.widget_categories li, .widget_archive li { padding: 8px 0; border-bottom: 1px solid var(--sp-border); }
.widget_categories li:last-child, .widget_archive li:last-child { border-bottom: none; }

/* Pages, archives, search */
.page-card, .archive-card { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 28px; margin: 24px 0 40px; }
.page-card h1, .archive-head h1 { font-size: 32px; }
.archive-head { padding: 28px 0 0; }
.no-results { text-align: center; padding: 40px 0; color: var(--sp-grey); }

/* ============ Footer ============ */
.site-footer { background: var(--sp-slate); color: #cbd5e1; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px 20px 24px; }
.footer-about p { color: #cbd5e1; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 18px; padding-bottom: 8px; position: relative; }
.site-footer h3::after { content: ""; display: block; width: 40px; height: 3px; background: var(--sp-accent); border-radius: 2px; margin-top: 6px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; text-align: center; padding: 16px 20px; font-size: 14px; color: #94a3b8; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .trend-card { flex-basis: 50vw; }
  .site-logo { font-size: 22px; }
  .site-logo img { height: 40px; width: 40px; }
  .post-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
  .title-card h1 { font-size: 26px; }
  .prompt-actions { grid-template-columns: 1fr; }
  .article-body { padding: 20px; }
}
