/* Container & Grid Setup */
.view-wiki-view .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Base Wiki Card Styling */
.wiki-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Card Header & Title */
.wiki-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wiki-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

/* Action Buttons (Edit / Delete) */
.wiki-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wiki-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.wiki-btn--edit {
  color: #2563eb;
  background-color: #eff6ff;
}

.wiki-btn--edit:hover {
  background-color: #dbeafe;
}

.wiki-btn--delete {
  color: #dc2626;
  background-color: #fef2f2;
}

.wiki-btn--delete:hover {
  background-color: #fee2e2;
}

/* Body Content */
.wiki-card__body {
  color: #475569;
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.wiki-card__body p {
  margin: 0 0 0.5rem 0;
}

/* File Attachment Section */
.wiki-card__footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: auto;
}

.wiki-attachment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  background-color: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.wiki-attachment a {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-attachment a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Footer "+ Add Content" Button */
.view-wiki-view .view-footer {
  margin-top: 1.5rem;
}

.view-wiki-view .view-footer button {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.view-wiki-view .view-footer button:hover {
  background-color: #1d4ed8;
}
