/* vJoy Blog & Knowledge Base Modern Styling */

:root {
  --blog-primary: #0d6efd;
  --blog-dark: #1e293b;
  --blog-gray-bg: #f8fafc;
  --blog-border: #e2e8f0;
  --blog-text: #334155;
}

body {
  color: var(--blog-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
}

/* Header & Navbar adjustments */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Breadcrumbs */
.breadcrumb {
  background: var(--blog-gray-bg);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.breadcrumb-item a {
  color: var(--blog-primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item.active {
  color: #64748b;
  font-weight: 600;
}

/* Blog Cards */
.blog-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--blog-border) !important;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}
.blog-card .card-body {
  padding: 1.75rem;
}
.blog-card .card-title {
  font-weight: 700;
  line-height: 1.35;
}
.blog-card .card-title a {
  color: var(--blog-dark);
  transition: color 0.2s ease;
}
.blog-card .card-title a:hover {
  color: var(--blog-primary);
}

/* Badges */
.badge-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 0.4em 0.8em;
  border-radius: 6px;
}

/* Article Page Typography */
.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
@media (min-width: 992px) {
  .article-header h1 {
    font-size: 2.75rem;
  }
}

.article-meta {
  font-size: 0.92rem;
  color: #64748b;
}

.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}
.content-body p {
  margin-bottom: 1.4rem;
}
.content-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2e8f0;
}
.content-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.content-body ul, .content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.content-body li {
  margin-bottom: 0.5rem;
}

/* Code & Pre Blocks */
pre, code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
pre {
  background: #0f172a !important;
  color: #f8fafc !important;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.95rem;
  border: 1px solid #334155;
}
p code, li code {
  background-color: #f1f5f9;
  color: #e11d48;
  padding: 0.2em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid #e2e8f0;
}

/* Physical Keyboard Keys */
kbd {
  display: inline-block;
  background-color: #f8fafc;
  color: #1e293b;
  font-size: 0.82em;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 0 #94a3b8;
  vertical-align: middle;
  font-family: inherit;
}

/* Callout Alert Boxes */
.callout {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
  border-radius: 6px;
  background-color: #f8fafc;
}
.callout-info {
  border-left-color: #0284c7;
  background-color: #f0f9ff;
}
.callout-warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}
.callout-danger {
  border-left-color: #ef4444;
  background-color: #fef2f2;
}
.callout-success {
  border-left-color: #10b981;
  background-color: #f0fdf4;
}

/* Tables */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.table {
  margin-bottom: 0;
}
.table thead th {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
  border-color: #334155;
  padding: 0.85rem 1rem;
}
.table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

/* Author Box */
.author-box {
  background: var(--blog-gray-bg);
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 3rem;
}

/* Related Guides Grid */
.related-guides-box {
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}
