/* ==========================================================================
   PhoenixSuit Technical Blog Stylesheet
   Modern, readable, responsive typography and layout enhancements
   ========================================================================== */

:root {
  --primary-color: #0f172a;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --bg-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --success-color: #10b981;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --info-bg: #eff6ff;
  --info-border: #3b82f6;
  --card-radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Breadcrumbs & Article Header
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: 0.875rem;
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--text-muted);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.75rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-meta .meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Content Typography & Body Elements
   -------------------------------------------------------------------------- */
.content-body {
  font-size: 1.0625rem;
  color: #334155;
}

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.content-body h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

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

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  color: #0f172a;
  background-color: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.content-body kbd {
  font-family: inherit;
  background: #1e293b;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   Callout Alert Boxes
   -------------------------------------------------------------------------- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--card-radius);
  margin: 1.75rem 0;
  border-left: 4px solid;
}

.callout-info {
  background-color: var(--info-bg);
  border-color: var(--info-border);
  color: #1e40af;
}

.callout-warning {
  background-color: var(--warning-bg);
  border-color: var(--warning-border);
  color: #92400e;
}

.callout-success {
  background-color: #f0fdf4;
  border-color: var(--success-color);
  color: #166534;
}

.callout strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Step-by-Step Guide Elements
   -------------------------------------------------------------------------- */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.step-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
}

.step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-responsive {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #0f172a;
  color: #ffffff;
}

.table thead th {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem;
  border: none;
}

.table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Blog Hub Cards
   -------------------------------------------------------------------------- */
.blog-card {
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

.blog-card .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4em 0.8em;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Author & Related Guides Boxes
   -------------------------------------------------------------------------- */
.author-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.related-guides-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}

.related-guides-card a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.related-guides-card a:hover {
  color: var(--accent-color);
}
