.dashboard-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: inherit;
}
.dashboard-link:hover {
  background: rgb(243 244 246);
}
.dark .dashboard-link:hover {
  background: rgb(31 41 55);
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(209 213 219);
  background: white;
  padding: 0.5rem 0.75rem;
}
.dark .form-input {
  border-color: rgb(55 65 81);
  background: rgb(17 24 39);
  color: rgb(243 244 246);
}

.stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235);
  padding: 1rem;
  background: white;
}
.dark .stat-card {
  border-color: rgb(31 41 55);
  background: rgb(17 24 39);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(209 213 219);
  font-size: 0.875rem;
  font-weight: 500;
}
.dark .share-btn {
  border-color: rgb(55 65 81);
}
.share-btn:hover {
  background: rgb(243 244 246);
}
.dark .share-btn:hover {
  background: rgb(31 41 55);
}

.article-prose img.gallery-image {
  max-width: 100%;
  max-height: 24rem;
  object-fit: contain;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}
.gallery-modal.hidden {
  display: none;
}
.gallery-image-full {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}
.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  padding: 0.5rem 1rem;
  opacity: 0.8;
}
.gallery-nav:hover {
  opacity: 1;
}
.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.article-prose h1, .article-prose h2, .article-prose h3 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.article-prose p { margin-bottom: 1rem; line-height: 1.7; }
.article-prose a { color: #2563eb; text-decoration: underline; }
.dark .article-prose a { color: #60a5fa; }
.article-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgb(243 244 246);
  margin-bottom: 1rem;
}
.dark .article-prose pre { background: rgb(31 41 55); }
.article-prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.article-prose blockquote {
  border-left: 4px solid rgb(209 213 219);
  padding-left: 1rem;
  color: rgb(107 114 128);
  margin-bottom: 1rem;
}
