.article-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e8e8e8;
}

.article-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  background: #6b7280; /* 기본 회색 */
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 20px 0;
}

.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 40px;
  display: block;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 50px;
}

/* Quill 에디터 스타일 적용 */
.article-content .ql-editor {
  padding: 0;
}

.article-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: #1a1a1a;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.3em 0 0.5em;
  color: #1a1a1a;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.2em 0 0.5em;
  color: #2a2a2a;
}

.article-content p {
  margin: 1em 0;
}

.article-content ul,
.article-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.article-content li {
  margin: 0.5em 0;
}

.article-content blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 16px;
  margin: 1.5em 0;
  color: #525252;
  font-style: italic;
}

.article-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5em 0;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
}

.article-attachment {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
}

.attachment-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #525252;
  margin-bottom: 12px;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.attachment-link:hover {
  background: #fafafa;
  border-color: #a3a3a3;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f5f5f5;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-back:hover {
  background: #e8e8e8;
  border-color: #a3a3a3;
}

.article-actions {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.admin-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-edit,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid;
  font-family: inherit;
  box-sizing: border-box;
  height: 36px;
}

.btn-edit {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.btn-edit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-delete {
  background: white;
  border-color: #dc2626;
  color: #dc2626;
}

.btn-delete:hover {
  background: #fef2f2;
}

.btn-edit i,
.btn-delete i {
  font-size: 0.875rem;
  width: 14px;
  text-align: center;
}

.delete-form {
  margin: 0;
}

@media (max-width: 768px) {
  .article-detail-container {
    padding: 80px 16px 60px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .article-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-buttons {
    margin-left: 0;
    width: 100%;
  }

  .btn-edit,
  .btn-delete {
    flex: 1;
    justify-content: center;
  }
}

