/* ===================================================
   Paint Tool SAI 2 Blog & Guide Master Stylesheet
   Theme: Creative Studio / Dark Accent & Modern Clean UI
   =================================================== */

:root {
  --sai-primary: #212529;
  --sai-secondary: #495057;
  --sai-accent-blue: #0d6efd;
  --sai-accent-purple: #6f42c1;
  --sai-accent-teal: #20c997;
  --sai-accent-orange: #fd7e14;
  --sai-bg-soft: #f8f9fa;
  --sai-card-border: #e9ecef;
  --sai-card-hover-border: #0d6efd;
  --sai-text-main: #212529;
  --sai-text-muted: #6c757d;
  --sai-radius: 12px;
}

/* Base Article Typography & Spacing */
article.blog-article,
.blog-article-content {
  color: var(--sai-text-main);
  line-height: 1.8;
  font-size: 1.06rem;
}

.blog-article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
}

.blog-article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.blog-article-content p {
  margin-bottom: 1.25rem;
  color: #374151;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.blog-article-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

/* Blog Hero Header */
.blog-hero {
  background: linear-gradient(135deg, #1f2937 0%, #111827 60%, #0d6efd 100%);
  color: #ffffff;
  padding: 70px 0 50px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.blog-hero h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.blog-hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto;
}

/* Blog Post Header */
.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}

.article-meta {
  color: var(--sai-text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 0.75rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
}

/* Cards & Grid */
.blog-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-radius: var(--sai-radius);
  border: 1px solid var(--sai-card-border);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1;
}

.blog-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.blog-card .card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card .card-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card .card-title a:hover {
  color: var(--sai-accent-blue);
}

.blog-card .card-text {
  color: #64748b;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.blog-badge {
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

/* Callouts & Info Boxes */
.callout-box {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin: 1.75rem 0;
  border-left: 5px solid;
  background: #f8fafc;
}

.callout-box.callout-info {
  border-color: #0d6efd;
  background: #eff6ff;
  color: #1e3a8a;
}

.callout-box.callout-warning {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.callout-box.callout-success {
  border-color: #10b981;
  background: #f0fdf4;
  color: #065f46;
}

.callout-box.callout-danger {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.callout-box h4,
.callout-box h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Step By Step Guide Cards */
.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.step-number {
  background: #212529;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111827;
}

.step-content p {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 0.98rem;
}

/* Comparison & Feature Tables */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.blog-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.blog-table th {
  background: #1f2937;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
}

.blog-table td {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #374151;
}

.blog-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Author Box */
.author-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #212529;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  flex-shrink: 0;
}

.author-info h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #111827;
}

.author-info .author-role {
  color: var(--sai-accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: #64748b;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #0d6efd;
}

.breadcrumb-item.active {
  color: #111827;
  font-weight: 600;
}

/* CTA Card */
.download-cta-box {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.download-cta-box h3 {
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.download-cta-box p {
  color: #ced4da;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
  .step-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .article-header h1 {
    font-size: 1.75rem;
  }
}
