/*--------------------------------------------------------------
  Blog Single — article body, author box, sidebar widgets, progress bar
--------------------------------------------------------------*/

/* Blog single */
.post-content h2 { margin-top: var(--space-10); }
.post-content h3 { margin-top: var(--space-8); }
.post-content p { line-height: 1.8; margin-bottom: var(--space-5); }
.post-content img { border-radius: var(--radius); margin-block: var(--space-6); }
.post-content blockquote {
  padding: var(--space-6) var(--space-8);
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-heading);
  margin: var(--space-8) 0;
}

[data-theme="dark"] .post-content blockquote {
  background: rgba(255, 87, 34, 0.1);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--t);
}

.tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Sidebar */
.sidebar-widget {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

/* The dark variant has to live beside the base rule, not in the services
   module — that file loads earlier, so its background lost to this one and the
   white text ended up on a white card. */
/* Contact widget: dark card in an otherwise light sidebar. */
.sidebar-widget--dark {
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}

.sidebar-widget--dark h4 { color: var(--color-white); }

.sidebar-widget--dark p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-small);
  margin-bottom: var(--space-4);
}

.sidebar-widget--dark .service-icon {
  margin: 0 auto var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.sidebar-widget h4 {
  margin-bottom: var(--space-5);
  font-size: 1.125rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: all var(--t);
}

.category-list li:last-child { border-bottom: none; }

.category-list li:hover {
  color: var(--color-primary);
  padding-left: var(--space-2);
}

/* On the service pages this list is real navigation between the six service
   pages, so the row is a link. The li keeps the padding and the rule; the
   anchor takes over the layout so the whole row is the target rather than
   just the words. */
.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.category-list li.is-current {
  color: var(--color-primary);
  font-weight: 600;
}

.category-list .count {
  background: var(--color-bg);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

/* Feature block (about page) */
.feature-block {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--t);
}

.feature-block:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.feature-block .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

[data-theme="dark"] .feature-block .icon {
  background: rgba(255, 87, 34, 0.15);
}

.feature-block h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.feature-block p {
  color: var(--color-muted);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* Progress bar */
.progress {
  height: 8px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}
