/* ==========================================================
   ADVANCED MODERN APP IDEA BLUEPRINT STYLING (Scoped)
   ========================================================== */
.category-app-ideas {
  --ai-primary: #4f46e5;        /* Indigo */
  --ai-primary-light: #eef2ff;
  --ai-secondary: #06b6d4;      /* Cyan */
  --ai-accent: #f59e0b;         /* Amber Accent */
  --ai-dark: #1e293b;           /* Slate 800 */
  --ai-light: #f8fafc;          /* Slate 50 */
  --ai-border: #cbd5e1;         /* Slate 300 */
  --ai-radius: 12px;
  
  color: var(--ai-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

/* --- Section Headings (Unique Deep Indigo & Bottom Border) --- */
.category-app-ideas .post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #312e81; /* Deep Indigo Variant */
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--ai-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Subheadings (Unique Teal/Cyan Accent) --- */
.category-app-ideas .post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0e7490; /* Deep Cyan Variant */
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- General Key-Value Specs (App Overview, Problem, Solution, Tech, Database, etc.) --- */
.category-app-ideas .post-content p {
  margin-bottom: 0.6rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ai-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Key label formatting (Slate Gray Accent) */
.category-app-ideas .post-content p > strong:first-child {
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 35%;
}

/* Value content formatting (Dark, High Contrast) */
.category-app-ideas .post-content p > strong:first-child + * {
  flex: 1;
  color: #0f172a;
  font-weight: 600;
}

/* Fallback for pure narrative paragraphs */
.category-app-ideas .post-content p:not(:has(> strong:first-child)) {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: block;
  color: #334155;
  font-weight: 400;
}

/* --- 5. Core Features (Card Grid Layout) --- */
/* Groups lists inside Section 5 into modern interactive cards */
.category-app-ideas .post-content h2:nth-of-type(5) ~ ul,
.category-app-ideas .post-content h2:nth-of-type(5) ~ h3 + ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.category-app-ideas .post-content h2:nth-of-type(5) ~ ul li,
.category-app-ideas .post-content h2:nth-of-type(5) ~ h3 + ul li {
  background: linear-gradient(135deg, #ffffff 0%, var(--ai-light) 100%);
  border: 1px solid var(--ai-border);
  border-left: 4px solid var(--ai-primary);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ai-dark);
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.category-app-ideas .post-content h2:nth-of-type(5) ~ ul li::before {
  content: "✦ ";
  color: var(--ai-secondary);
}

/* --- 8. Individual Screen UI Concepts (Sleek Container Cards) --- */
/* Automatically styles screen concepts into distinctive structured cards */
.category-app-ideas .post-content h2:nth-of-type(8) ~ h3 {
  background: #e9f96f;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid var(--ai-secondary);
  color: #0369a1;
}

.category-app-ideas .post-content h2:nth-of-type(8) ~ h3 + p {
  background: #ffffff;
  border-left: 3px solid #cbd5e1;
  margin-bottom: 1.25rem;
  font-style: italic;
  color: #334155;
}

/* --- 13. MVP Development Plan & 14. Developer Tasks (Timeline Cards) --- */
.category-app-ideas .post-content h2:nth-of-type(13) ~ h3,
.category-app-ideas .post-content h2:nth-of-type(14) ~ h3 {
  background: var(--ai-primary-light);
  color: var(--ai-primary);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border-left: 5px solid var(--ai-primary);
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

.category-app-ideas .post-content h2:nth-of-type(13) ~ h3 + p,
.category-app-ideas .post-content h2:nth-of-type(14) ~ h3 + p {
  background: #ffffff;
  border: 1px dashed var(--ai-border);
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1e293b;
}

/* --- Diagrams & Preformatted Architecture Blocks --- */
.category-app-ideas .post-content pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 1.25rem;
  border-radius: var(--ai-radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--ai-secondary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   MODERN APP HERO SECTION STYLING
   ========================================================== */
.category-app-ideas .app-hero-section {
  position: relative;
  background: linear-gradient(35deg, #f8fafc 0%, #ffffff 40%, #f98ce0 100%);
  /* border-bottom: 1px solid var(--ai-border); */
  padding: 4rem 0 3rem 0;
  overflow: hidden;
}




/* Optional glowing background ambient blur elements for modern UI flair */
.category-app-ideas .app-hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.1); /* Cyan glow */
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
}

.category-app-ideas .app-hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: rgba(79, 70, 229, 0.08); /* Indigo glow */
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
}

/* Ensure container content sits above background blur blobs */
.category-app-ideas .app-hero-section .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   MODERN POST NAVIGATION STYLING
   ========================================================== */
.category-app-ideas .post-navigation {
  background: linear-gradient(135deg, #ffffff 0%, var(--ai-light) 100%);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Individual navigation links */
.category-app-ideas .post-navigation a {
  text-decoration: none;
  color: var(--ai-dark);
  display: inline-block;
  transition: all 0.2s ease;
  max-width: 100%;
}

/* Subtext (Previous / Next arrows and small labels) */
.category-app-ideas .post-navigation .nav-previous span,
.category-app-ideas .post-navigation .nav-next span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.category-app-ideas .post-navigation .nav-next span {
  justify-content: flex-end;
}

/* Post title text inside navigation */
.category-app-ideas .post-navigation strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* Hover effects for interactive feedback */
.category-app-ideas .post-navigation a:hover strong {
  color: var(--ai-primary);
}

.category-app-ideas .post-navigation .nav-previous a:hover {
  transform: translateX(-4px);
}

.category-app-ideas .post-navigation .nav-next a:hover {
  transform: translateX(4px);
}