/*
Theme Name: AIdeaStorm Hub
Theme URI: https://aideastorm.com/
Author: AIdeaStorm
Description: Lightweight editorial and product hub for AIdeaStorm and RHTool.
Version: 1.3.7
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: aideastorm-hub
License: GNU General Public License v2 or later
*/

:root {
  --as-ink: #111827;
  --as-navy: #172033;
  --as-blue: #2563eb;
  --as-green: #059669;
  --as-muted: #64748b;
  --as-line: #dbe3ee;
  --as-bg: #eef2f7;
  --as-white: #fff;
  --as-radius: 18px;
  --as-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--as-bg); color: var(--as-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--as-blue); }
img { max-width: 100%; height: auto; }
.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; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--as-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; color: var(--as-ink); text-decoration: none; white-space: nowrap; }
.brand strong { font-size: 21px; font-weight: 900; letter-spacing: -.035em; }
.brand span { color: var(--as-blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 9px 11px; border-radius: 9px; color: #4b5563; font-size: 14px; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: #eaf1ff; color: #1d4ed8; }
.primary-nav .menu-item-app > a { background: var(--as-green); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--as-line); border-radius: 9px; background: #fff; padding: 8px 11px; font-weight: 800; }
.site-main { flex: 1; }
.content-width { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: clamp(66px, 9vw, 112px) 0 60px; background: linear-gradient(145deg, #172033 0%, #111827 62%, #123b5a 100%); color: #fff; }
.hero-inner { width: min(1080px, calc(100% - 40px)); margin: auto; }
.eyebrow { margin: 0 0 12px; color: #7dd3fc; font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy { max-width: 760px; margin: 22px 0 0; color: #d8e2f0; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: var(--as-blue); color: #fff; font-weight: 850; text-decoration: none; }
.button:hover { filter: brightness(1.05); }
.button-secondary { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button-green { background: var(--as-green); }
.section { padding: 66px 0; }
.section-white { background: #fff; }
.section-heading { max-width: 720px; margin: 0 0 28px; }
.section-heading h2 { margin: 0 0 9px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.15; }
.section-heading p { margin: 0; color: var(--as-muted); font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-height: 250px; padding: 25px; border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--as-shadow); }
.card:hover { transform: translateY(-2px); border-color: #bfdbfe; }
.card-number { color: #94a3b8; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.card h3 { margin: 24px 0 9px; font-size: 21px; letter-spacing: -.025em; }
.card p { margin: 0 0 20px; color: var(--as-muted); }
.card-link { margin-top: auto; color: var(--as-blue); font-size: 13px; font-weight: 850; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.workflow article { counter-increment: step; }
.workflow article::before { content: "0" counter(step); display: block; margin-bottom: 12px; color: var(--as-blue); font-weight: 900; letter-spacing: .1em; }
.workflow h3 { margin: 0 0 7px; }
.workflow p { margin: 0; color: var(--as-muted); }
.feature-copy { max-width: 900px; color: #334155; font-size: 17px; }
.feature-copy p { margin: 0 0 1.15em; }
.tool-lead { max-width: 850px; margin: 0 0 24px; color: #334155; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; }
.tool-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.button-outline { border-color: var(--as-line); background: #fff; color: var(--as-ink); }
.tool-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 34px; }
.tool-facts div { padding: 18px; border: 1px solid var(--as-line); border-radius: 12px; background: #f8fafc; }
.tool-facts strong, .tool-facts span { display: block; }
.tool-facts strong { margin-bottom: 4px; color: var(--as-blue); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tool-facts span { color: #334155; font-size: 14px; }
.example-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--as-line); border-radius: 12px; }
.example-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.example-table th, .example-table td { padding: 11px 13px; border-bottom: 1px solid var(--as-line); text-align: left; white-space: nowrap; }
.example-table th { background: #eff6ff; color: #1e3a8a; }
.example-table tr:last-child td { border-bottom: 0; }
.tool-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 34px; padding: 20px; border-radius: 12px; background: #eff6ff; }
.detailed-cards .card { min-height: 340px; }
.future-section { padding-top: 0; }
.future-panel { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 34px; padding: clamp(28px, 5vw, 52px); border-radius: var(--as-radius); background: var(--as-navy); color: #fff; box-shadow: var(--as-shadow); }
.future-panel h2 { max-width: 760px; margin: 0 0 14px; font-size: clamp(28px, 4vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.future-panel p:not(.eyebrow) { max-width: 760px; color: #cbd5e1; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { overflow: hidden; border: 1px solid var(--as-line); border-radius: 15px; background: #fff; }
.post-card a { color: inherit; text-decoration: none; }
.post-card .post-body { padding: 22px; }
.post-meta { color: var(--as-muted); font-size: 12px; font-weight: 750; }
.view-separator { padding: 0 5px; color: #94a3b8; }
.post-view-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.post-view-meta strong { font-weight: 900; }
/* WordPress informational pages never expose the legacy post-view counter.
   This also protects against a cached pre-1.3.2 page.php response. */
body.page .page-header .eyebrow { display: none !important; }
.post-card h3 { margin: 8px 0 9px; font-size: 19px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--as-muted); font-size: 14px; }
.page-wrap, .single-wrap, .archive-wrap { padding: 60px 0 80px; }
.page-header { max-width: 820px; margin-bottom: 28px; }
.page-header .eyebrow { color: var(--as-blue); }
.page-header h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.entry-panel { padding: clamp(26px, 5vw, 56px); border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; box-shadow: var(--as-shadow); }
.entry-content { font-size: 16px; }
.entry-content h2 { margin: 2.3em 0 .65em; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.2; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 1.8em 0 .55em; font-size: 21px; }
.entry-content p, .entry-content ul { max-width: 820px; }
.entry-content li + li { margin-top: .45em; }
.entry-content .policy-language { display: flex; gap: 8px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--as-line); }
.entry-content .policy-language a { padding: 7px 10px; border-radius: 8px; background: #eef4ff; font-size: 13px; font-weight: 800; text-decoration: none; }
.entry-content .notice { padding: 16px 18px; border-left: 4px solid var(--as-blue); background: #eff6ff; color: #334155; }
.comments-area { max-width: 820px; margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--as-line); }
.comments-title, .comment-reply-title { font-size: 24px; letter-spacing: -.025em; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { margin: 14px 0 0 24px; list-style: none; }
.comment-body { margin-bottom: 16px; padding: 18px; border: 1px solid var(--as-line); border-radius: 12px; background: #f8fafc; }
.comment-meta { color: var(--as-muted); font-size: 12px; }
.comment-content p { margin-bottom: .6em; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 750; }
.comment-form input:not([type=checkbox]), .comment-form textarea { width: 100%; padding: 11px; border: 1px solid #cbd5e1; border-radius: 9px; }
.comment-form .submit { border: 0; border-radius: 9px; background: var(--as-blue); color: #fff; padding: 12px 18px; font-weight: 850; }
.tool-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.tool-links a { padding: 22px; border: 1px solid var(--as-line); border-radius: 14px; color: inherit; text-decoration: none; }
.tool-links strong { display: block; margin-bottom: 6px; }
.tool-links span { color: var(--as-muted); font-size: 14px; }
.ppt-tools-wrap { padding: clamp(52px, 7vw, 92px) 0 82px; }
.ppt-tools-width { width: min(1180px, calc(100% - 40px)); }
.ppt-tools-hero { max-width: 850px; margin-bottom: 42px; }
.ppt-tools-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); letter-spacing: -.055em; line-height: 1; }
.ppt-tools-hero > p:not(.eyebrow) { max-width: 760px; margin: 20px 0 24px; color: var(--as-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.ppt-tools-hero .button { gap: 18px; }
.ppt-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ppt-tool-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--as-line); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; box-shadow: var(--as-shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ppt-tool-card:hover { transform: translateY(-5px); border-color: #93b4f8; box-shadow: 0 26px 54px rgba(15, 23, 42, .14); }
.ppt-tool-card:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
.ppt-tool-visual { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-bottom: 1px solid var(--as-line); background: #e8edf5; }
.ppt-tool-visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .28s ease; }
.ppt-tool-card:hover .ppt-tool-visual img { transform: scale(1.045); }
.ppt-tool-visual.is-flashcard-preview img { transform: scale(1.72); }
.ppt-tool-card:hover .ppt-tool-visual.is-flashcard-preview img { transform: scale(1.78); }
.ppt-tool-visual.is-issuelist-preview img { transform: scale(1.82); }
.ppt-tool-card:hover .ppt-tool-visual.is-issuelist-preview img { transform: scale(1.88); }
.ppt-tool-visual figcaption { position: absolute; right: 12px; bottom: 11px; padding: 5px 8px; border-radius: 999px; background: rgba(15,23,42,.8); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ppt-tool-copy { display: flex; flex: 1; flex-direction: column; padding: 24px 25px 26px; }
.ppt-tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ppt-tool-meta span { color: var(--as-blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.ppt-tool-meta small { overflow: hidden; color: #8b95a7; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.ppt-tool-placeholder { display: grid; width: 100%; height: 100%; place-content: center; gap: 9px; background: #e8edf5; color: #8b95a7; text-align: center; }
.ppt-tool-placeholder span { color: #b7c1d0; font-size: 48px; font-weight: 900; letter-spacing: -.06em; }
.ppt-tool-placeholder strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ppt-tool-copy h2 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.ppt-tool-copy p { margin: 0 0 22px; color: var(--as-muted); line-height: 1.65; }
.ppt-tool-copy strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--as-blue); font-size: 13px; }
.ppt-tool-copy strong span { font-size: 20px; }
.ppt-tools-workflow { margin-top: 58px; padding: 30px 32px 34px; border-top: 4px solid var(--as-blue); border-radius: 16px; background: #eff5ff; }
.ppt-tools-goal { margin: 0 0 36px; padding: 28px 32px; border-left: 5px solid var(--as-blue); border-radius: 14px; background: #fff; box-shadow: var(--as-shadow); }
.ppt-tools-goal h2 { max-width: 820px; margin: 0 0 10px; color: var(--as-ink); font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -.035em; line-height: 1.08; }
.ppt-tools-goal-lead { max-width: 820px; margin: 0 0 18px; color: var(--as-blue); font-size: 17px; font-weight: 750; line-height: 1.55; }
.ppt-tools-goal ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ppt-tools-goal li { padding: 15px 16px; border: 1px solid #dbe7fb; border-radius: 10px; background: #f8fbff; color: var(--as-muted); font-size: 13px; line-height: 1.55; }
.ppt-tools-workflow > h2 { margin: 0 0 22px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
.ppt-tools-workflow > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ppt-tools-workflow article { padding: 20px; border: 1px solid #dbe7fb; border-radius: 13px; background: rgba(255,255,255,.88); }
.ppt-tools-workflow article > span { color: var(--as-blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.ppt-tools-workflow h3 { margin: 12px 0 7px; font-size: 18px; }
.ppt-tools-workflow article p { margin: 0; color: var(--as-muted); font-size: 13px; line-height: 1.6; }
.pagination { margin-top: 30px; }
.site-footer { background: var(--as-navy); color: #cbd5e1; }
.footer-inner { width: min(1080px, calc(100% - 40px)); margin: auto; padding: 42px 0; display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer-brand { margin: 0 0 8px; color: #fff; font-size: 19px; font-weight: 900; }
.footer-copy { max-width: 560px; margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 9px 15px; }
.footer-links a { color: #dbeafe; font-size: 13px; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; color: #94a3b8; font-size: 12px; }
.footer-bottom .content-width { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 12px 20px 18px; border-bottom: 1px solid var(--as-line); background: #fff; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .card-grid, .post-grid, .tool-links { grid-template-columns: 1fr 1fr; }
  .tool-facts { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .future-panel { grid-template-columns: 1fr; align-items: start; }
  .ppt-tools-grid { grid-template-columns: 1fr; }
  .ppt-tool-card { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(280px, .95fr); }
  .ppt-tool-visual { height: 100%; min-height: 310px; aspect-ratio: auto; border-right: 1px solid var(--as-line); border-bottom: 0; }
}
@media (max-width: 580px) {
  .header-inner, .content-width, .hero-inner, .footer-inner { width: min(100% - 28px, 1080px); }
  .card-grid, .post-grid, .tool-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom .content-width { flex-direction: column; gap: 4px; }
  .ppt-tools-width { width: min(100% - 28px, 1180px); }
  .ppt-tool-card { display: flex; }
  .ppt-tool-visual { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--as-line); }
  .ppt-tools-workflow { padding: 26px 20px; }
  .ppt-tools-workflow > div { grid-template-columns: 1fr; }
  .ppt-tools-goal { padding: 24px 20px; }
  .ppt-tools-goal ul { grid-template-columns: 1fr; }
}
