/* ZipLyne Blog Article Styling - Dark Theme */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgb(203 213 225); /* slate-300 */
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.article-body * {
  max-width: 100%;
}

/* Headings with ZipLyne gradient (violet to purple to cyan) */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  background: linear-gradient(135deg, rgb(167 139 250), rgb(192 132 252), rgb(103 232 249));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.article-body h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.article-body h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(167, 139, 250, 0.2);
}

.article-body h3 {
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.article-body h4 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
}

.article-body p {
  margin-bottom: 1.5rem;
  color: rgb(203 213 225); /* slate-300 */
}

/* Links with violet/purple hover */
.article-body a {
  color: rgb(167 139 250); /* violet-400 */
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
}

.article-body a:hover {
  color: rgb(192 132 252); /* purple-400 */
  border-bottom-color: rgb(192 132 252);
}

/* Strong and emphasis */
.article-body strong {
  color: rgb(241 245 249); /* slate-100 */
  font-weight: 700;
}

.article-body em {
  color: rgb(192 132 252); /* purple-400 */
  font-style: italic;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body ul li {
  list-style-type: disc;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: rgb(203 213 225); /* slate-300 */
}

.article-body ol li {
  list-style-type: decimal;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: rgb(203 213 225); /* slate-300 */
}

.article-body li::marker {
  color: rgb(167 139 250); /* violet-400 */
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid rgb(167 139 250); /* violet-400 */
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(103, 232, 249, 0.05));
  padding: 1.5rem;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgb(226 232 240); /* slate-200 */
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code blocks */
.article-body code {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgb(192 132 252); /* purple-400 */
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body pre {
  background-color: rgb(15 23 42); /* slate-900 */
  color: rgb(226 232 240); /* slate-200 */
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
  border: none;
}

/* Images */
.article-body img {
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  margin: 2.5rem auto;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: rgba(15, 23, 42, 0.5); /* slate-900/50 */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body th {
  background: linear-gradient(135deg, rgb(139 92 246), rgb(168 85 247)); /* violet-500 to purple-500 */
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgb(203 213 225); /* slate-300 */
}

.article-body tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.article-body tr:hover {
  background-color: rgba(167, 139, 250, 0.05);
}

/* Horizontal rules */
.article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3rem 0;
}

/* Callout boxes - CRITICAL for SEObot content */
.article-body .sb,
.article-body .callout,
.article-body .note,
.article-body .tip,
.article-body .warning,
.article-body .info,
.article-body aside,
.article-body .kg-callout-card,
.article-body [class*="callout"],
.article-body [class*="note"],
.article-body [class*="highlight"] {
  color: rgb(226 232 240) !important; /* slate-200 */
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(103, 232, 249, 0.1)) !important;
  border-left: 4px solid rgb(167 139 250) !important; /* violet-400 */
  padding: 1.5rem 2rem !important;
  border-radius: 0.875rem !important;
  margin: 2.5rem 0 !important;
  box-shadow: 0 10px 15px -3px rgba(167, 139, 250, 0.1) !important;
  font-style: normal !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  border-left-width: 4px !important;
}

/* Fix text inside callouts */
.article-body .sb *,
.article-body .callout *,
.article-body .note *,
.article-body aside *,
.article-body [class*="callout"] *,
.article-body [class*="note"] *,
.article-body [class*="highlight"] * {
  color: rgb(226 232 240) !important; /* slate-200 */
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: unset !important;
  text-fill-color: currentColor !important;
}

/* CRITICAL: Headings inside callouts */
.article-body h1.sb,
.article-body h2.sb,
.article-body h3.sb,
.article-body h4.sb,
.article-body h5.sb,
.article-body h6.sb,
.article-body h1[class*="sbb"],
.article-body h2[class*="sbb"],
.article-body h3[class*="sbb"],
.article-body h4[class*="sbb"],
.article-body h5[class*="sbb"],
.article-body h6[class*="sbb"],
.article-body .sb h1,
.article-body .sb h2,
.article-body .sb h3,
.article-body .sb h4,
.article-body .sb h5,
.article-body .sb h6,
.article-body .callout h1,
.article-body .callout h2,
.article-body .callout h3,
.article-body .callout h4,
.article-body .callout h5,
.article-body .callout h6,
.article-body .note h1,
.article-body .note h2,
.article-body .note h3,
.article-body .note h4,
.article-body .note h5,
.article-body .note h6,
.article-body aside h1,
.article-body aside h2,
.article-body aside h3,
.article-body aside h4,
.article-body aside h5,
.article-body aside h6,
.article-body [class*="callout"] h1,
.article-body [class*="callout"] h2,
.article-body [class*="callout"] h3,
.article-body [class*="callout"] h4,
.article-body [class*="callout"] h5,
.article-body [class*="callout"] h6 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: rgb(192 132 252) !important; /* purple-400 */
  text-fill-color: rgb(192 132 252) !important;
  color: rgb(192 132 252) !important;
  border-bottom: none !important;
  padding: 0.5rem 0.75rem !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
}

/* Links inside callout headings */
.article-body .sb h1 a,
.article-body .sb h2 a,
.article-body .sb h3 a,
.article-body .sb h4 a,
.article-body .sb h5 a,
.article-body .sb h6 a,
.article-body .callout h1 a,
.article-body .callout h2 a,
.article-body .callout h3 a,
.article-body .callout h4 a,
.article-body .callout h5 a,
.article-body .callout h6 a,
.article-body .note h1 a,
.article-body .note h2 a,
.article-body .note h3 a,
.article-body .note h4 a,
.article-body .note h5 a,
.article-body .note h6 a,
.article-body aside h1 a,
.article-body aside h2 a,
.article-body aside h3 a,
.article-body aside h4 a,
.article-body aside h5 a,
.article-body aside h6 a,
.article-body [class*="callout"] h1 a,
.article-body [class*="callout"] h2 a,
.article-body [class*="callout"] h3 a,
.article-body [class*="callout"] h4 a,
.article-body [class*="callout"] h5 a,
.article-body [class*="callout"] h6 a {
  color: rgb(103 232 249) !important; /* cyan-400 */
  -webkit-text-fill-color: rgb(103 232 249) !important;
  -webkit-background-clip: text !important;
  text-decoration: underline;
  background: none !important;
  background-image: none !important;
}

/* Fix paragraphs and divs inside callouts */
.article-body .sb p,
.article-body .sb div,
.article-body .callout p,
.article-body .callout div,
.article-body .note p,
.article-body .note div,
.article-body aside p,
.article-body aside div,
.article-body [class*="callout"] p,
.article-body [class*="callout"] div {
  color: rgb(226 232 240) !important; /* slate-200 */
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Links inside callout text */
.article-body .sb a,
.article-body .callout a,
.article-body .note a,
.article-body aside a {
  color: rgb(103 232 249) !important; /* cyan-400 */
  font-weight: 600 !important;
  border-bottom-color: rgba(103, 232, 249, 0.3) !important;
}

/* Strong text inside callouts */
.article-body .sb strong,
.article-body .callout strong,
.article-body .note strong,
.article-body aside strong {
  color: rgb(241 245 249) !important; /* slate-100 */
  font-weight: 700 !important;
}

/* Warning/Alert callouts - orange/amber theme */
.article-body .warning,
.article-body .alert,
.article-body [class*="warning"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
  border-left-color: rgb(251 191 36) !important; /* amber-400 */
  border-color: rgba(251, 191, 36, 0.2) !important;
}

/* Info/Tip callouts - cyan theme */
.article-body .tip,
.article-body .info,
.article-body [class*="tip"],
.article-body [class*="info"] {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.15), rgba(34, 211, 238, 0.1)) !important;
  border-left-color: rgb(103 232 249) !important; /* cyan-400 */
  border-color: rgba(103, 232, 249, 0.2) !important;
}

/* Success callouts - green theme */
.article-body .success,
.article-body [class*="success"] {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.1)) !important;
  border-left-color: rgb(74 222 128) !important; /* green-400 */
  border-color: rgba(74, 222, 128, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
  }
  
  .article-body h1 {
    font-size: 2rem;
  }
  
  .article-body h2 {
    font-size: 1.75rem;
  }
  
  .article-body h3 {
    font-size: 1.5rem;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection color */
.article-body ::selection {
  background-color: rgba(167, 139, 250, 0.3);
  color: rgb(241 245 249);
}
