/**
 * Ideas hub (/ideas/) + article pages — load only when is_blog / is_blog_post.
 * Scoped under .ideas-layout; works alongside Bulma.
 */

.ideas-layout {
  --ideas-bg: #eeefe9;
  --ideas-surface: #ffffff;
  --ideas-text: #0f172a;
  --ideas-muted: #475569;
  --ideas-border: rgba(15, 23, 42, 0.08);
  --ideas-radius-lg: 16px;
  --ideas-radius-md: 12px;
  --ideas-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --ideas-max-prose: 42rem;
}

/* ——— Index: hero ——— */
.ideas-index__hero {
  color: #f8fafc;
  padding: 2.25rem 1rem 2.5rem;
  background-color: #0c1222;
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 55%), radial-gradient(ellipse 90% 60% at 100% 50%, rgba(139, 92, 246, 0.12), transparent 50%), radial-gradient(ellipse 70% 50% at 0% 80%, rgba(14, 165, 233, 0.1), transparent 45%), linear-gradient(180deg, #0c1222 0%, #111827 45%, #0a0f1a 100%);
}

@media (min-width: 769px) {
  .ideas-index__hero {
    padding: 2.75rem 1.5rem 3rem;
  }
}

.ideas-index__eyebrow {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
  margin: 0 0 0.75rem;
}

.ideas-index__headline {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 1rem;
  max-width: 40rem;
}

.ideas-index__lead {
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.92);
  margin: 0 auto;
  max-width: 44rem;
}

.ideas-index__lead-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--ideas-radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

/* ——— Index: main grid area ——— */
.ideas-index__main {
  background: var(--ideas-bg);
  padding-top: 1.5rem !important;
  padding-bottom: 3rem !important;
}

.ideas-index__posts-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Article ——— */
.ideas-article .ideas-article__intro {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 769px) {
  .ideas-article .ideas-article__intro {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.ideas-breadcrumb {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ideas-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.ideas-breadcrumb a {
  color: var(--ideas-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ideas-breadcrumb a:hover {
  color: var(--ideas-text);
}

.ideas-breadcrumb__current {
  color: var(--ideas-text);
  font-weight: 600;
}

.ideas-article__title {
  font-family: "Freeman", cursive, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ideas-text);
  margin: 0 0 1rem;
}

.ideas-article__meta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ideas-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.ideas-article__hero-card {
  border-radius: var(--ideas-radius-lg);
  overflow: hidden;
  box-shadow: var(--ideas-shadow);
  border: 1px solid var(--ideas-border);
  margin-bottom: 0.5rem;
}

.ideas-article__hero-card .image img {
  border-radius: var(--ideas-radius-lg);
}

/* Tag overlay on hero: improve contrast */
.ideas-article__hero-card .tag.is-white {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--ideas-text) !important;
  border: 1px solid var(--ideas-border);
}

/* ——— Prose (CMS HTML) ——— */
.ideas-prose {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ideas-text);
  max-width: var(--ideas-max-prose);
}

.ideas-prose > *:first-child {
  margin-top: 0;
}

.ideas-prose > *:last-child {
  margin-bottom: 0;
}

.ideas-prose h2,
.ideas-prose h3,
.ideas-prose h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: var(--ideas-text);
  line-height: 1.25;
  margin-top: 1.75em;
  margin-bottom: 0.65em;
}

.ideas-prose h2 {
  font-size: 1.45rem;
}

.ideas-prose h3 {
  font-size: 1.2rem;
}

.ideas-prose h4 {
  font-size: 1.05rem;
}

.ideas-prose p {
  margin: 0 0 1em;
}

.ideas-prose ul,
.ideas-prose ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}

.ideas-prose li {
  margin-bottom: 0.35em;
}

.ideas-prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ideas-prose a:hover {
  color: #4338ca;
}

.ideas-prose blockquote {
  margin: 1.25em 0;
  padding: 0.75em 1em 0.75em 1.15em;
  border-left: 4px solid #c7d2fe;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 0 var(--ideas-radius-md) var(--ideas-radius-md) 0;
}

.ideas-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ideas-radius-md);
}

.ideas-prose code {
  font-size: 0.9em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

/* ——— Sample boards section ——— */
.ideas-sample-boards {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ideas-border);
}

.ideas-sample-boards__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ideas-muted);
  margin: 0 0 0.35rem;
}

.ideas-sample-boards__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ideas-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.ideas-sample-boards__lede {
  font-size: 1rem;
  color: var(--ideas-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
  line-height: 1.5;
}

/* Sidebar: align with ideas surface */
.ideas-layout .ideas-sidebar-column {
  background: #f1f5f9 !important;
}

@media (max-width: 768px) {
  .ideas-layout .ideas-sidebar-column {
    margin-top: 2rem;
  }
}

/* ——— Sidebar (blog_sidebar include; may appear outside .ideas-layout) ——— */
.ideas-blog-sidebar {
  position: sticky;
  top: 10px;
  border-radius: 16px;
  background: #f9f9f9;
  border-right: 2px solid lightgrey;
  padding-top: 10px;
}

.ideas-sidebar-heading {
  font-weight: 600;
  font-size: 1.3em;
}

.ideas-sidebar-tag-link {
  text-decoration: none;
  color: inherit;
}

.ideas-sidebar-tag-link:hover {
  filter: brightness(0.92);
}

.ideas-index__tag-filter {
  font-size: 1rem;
  color: var(--ideas-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.ideas-index__tag-filter a {
  font-weight: 600;
  text-decoration: underline;
}

.ideas-card-tag-link {
  font-weight: 500;
  text-decoration: none;
}

.ideas-hero-tag-link {
  text-decoration: none;
  color: inherit;
}
