/* Non-critical styles loaded after initial paint to reduce render-blocking CSS */

.blog-editor-content .ProseMirror {
  outline: none;
  min-height: 280px;
}

.blog-editor-content .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  height: 0;
  float: left;
}

.blog-editor-content .ProseMirror h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.blog-editor-content .ProseMirror h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.blog-editor-content .ProseMirror p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.blog-editor-content .ProseMirror ul,
.blog-editor-content .ProseMirror ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-editor-content .ProseMirror li {
  margin-bottom: 0.25rem;
}

.blog-editor-content .ProseMirror code {
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  font-family: var(--font-mono);
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
}

.blog-editor-content .ProseMirror pre {
  margin: 1rem 0;
  padding: 1rem;
  background: #0d1117;
  border-radius: 0.5rem;
  border: 1px solid #30363d;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.blog-editor-content .ProseMirror pre code {
  color: #c9d1d9;
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

.blog-editor-content .ProseMirror hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid hsl(var(--border));
}

.blog-editor-content .ProseMirror blockquote {
  border-left: 3px solid hsl(var(--primary));
  margin: 1rem 0;
  padding-left: 1rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.code-block-wrapper {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid #30363d;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  font-size: 0.75rem;
}

.code-block-lang {
  color: #8b949e;
  font-family: var(--font-mono);
  font-weight: 500;
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 0.25rem;
  color: #8b949e;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: #21262d;
  color: #c9d1d9;
  border-color: #484f58;
}

.code-block-wrapper .code-block {
  margin: 0;
  padding: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow-x: auto;
}

.code-block-wrapper .code-block code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.status-dot {
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
}

.status-dot-online {
  background-color: rgb(34 197 94);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-dot-offline {
  background-color: rgb(239 68 68);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.status-dot-pending {
  background-color: rgb(234 179 8);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}

.status-dot-pulse {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.stats-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0.25rem;
  height: 100%;
  background: linear-gradient(to bottom, hsl(var(--primary)), hsl(var(--primary) / 0.3));
}

.stats-card:hover {
  transform: translateY(-2px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.3);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.admin-table tr:hover td {
  background: hsl(var(--muted) / 0.2);
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.375rem;
  pointer-events: none;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), transparent);
}
